$product = {"id":7408535076963,"title":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 經典幾何Pattern","handle":"iphone-12-mini-mod-nx-printable-pc03","description":null,"published_at":"2024-06-11T16:39:58+08:00","created_at":"2024-05-03T15:45:34+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 12 mini","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-star-wars","Top50","type-Mod NX Printable"],"price":90000,"price_min":90000,"price_max":90000,"available":true,"price_varies":false,"compare_at_price":null,"compare_at_price_min":0,"compare_at_price_max":0,"compare_at_price_varies":false,"variants":[{"id":41886593581155,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PC03","requires_shipping":true,"taxable":true,"featured_image":{"id":31472526983267,"product_id":7408535076963,"position":9,"created_at":"2024-05-03T15:45:56+08:00","updated_at":"2024-05-03T15:45:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91d2915df45ba59019fdaf41575c634979e417b0_d10dbe5d-46c8-44fd-aa3b-95a70f2b051e.webp?v=1714722356","variant_ids":[41886593581155]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 經典幾何Pattern - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118424-PC03","featured_media":{"alt":null,"id":23877444272227,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91d2915df45ba59019fdaf41575c634979e417b0_d10dbe5d-46c8-44fd-aa3b-95a70f2b051e.webp?v=1714722356"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a368ef826da875d4345cd7e635ad1569fb41b2b5_1443528d-acbd-4f9b-a7d5-198e200fe63c.webp?v=1714722336","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b24497071b0f0bd72f43b203f1386cbf35e917cc_8c444c07-2e91-4b9e-a26b-1a1204cc2637.webp?v=1714722339","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9646401bcec779c2be123e50076fa76b2a0d5b2_c5a1603e-f769-4a74-bf37-ecaa5db7a41a.webp?v=1714722342","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bc5909eccbcb7441fa40c871576d2cb0ebec86a_f7d5b716-b348-48a1-b876-9ce3a539fb31.webp?v=1714722344","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecbb233574e6c9a027240a929f086eb98946043c_ee0f4437-2032-4e69-b7bd-ba39a4a33263.webp?v=1714722346","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26dcbf19c93445f76020a5c7fb06a713382dc0fc_4068adb9-f403-4aae-95b2-87aca9641b92.webp?v=1714722349","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7526ae1f9ce8f67161fcf1f252db9d2b2faf47a_0529a000-019e-482b-9a82-828f1d2efaff.webp?v=1714722351","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c4999f583387698897d417799292f29138ee1e1_55c928f1-d05a-4865-b961-d5e00ffe60ea.webp?v=1714722354","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91d2915df45ba59019fdaf41575c634979e417b0_d10dbe5d-46c8-44fd-aa3b-95a70f2b051e.webp?v=1714722356","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d45e200acc6bc387709bbb3b718c627680e05da6_c9801ce2-c7e6-44f2-a509-746a5117fda0.webp?v=1714722359","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/900a3f64953f08e93e922d25a9984c2e24f0e80b_95682489-e059-432d-b45c-38d76461245b.webp?v=1714722361"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a368ef826da875d4345cd7e635ad1569fb41b2b5_1443528d-acbd-4f9b-a7d5-198e200fe63c.webp?v=1714722336","options":["color"],"media":[{"alt":null,"id":23877440012387,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a368ef826da875d4345cd7e635ad1569fb41b2b5_1443528d-acbd-4f9b-a7d5-198e200fe63c.webp?v=1714722336"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a368ef826da875d4345cd7e635ad1569fb41b2b5_1443528d-acbd-4f9b-a7d5-198e200fe63c.webp?v=1714722336","width":2000},{"alt":null,"id":23877440634979,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b24497071b0f0bd72f43b203f1386cbf35e917cc_8c444c07-2e91-4b9e-a26b-1a1204cc2637.webp?v=1714722339"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b24497071b0f0bd72f43b203f1386cbf35e917cc_8c444c07-2e91-4b9e-a26b-1a1204cc2637.webp?v=1714722339","width":2000},{"alt":null,"id":23877441159267,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9646401bcec779c2be123e50076fa76b2a0d5b2_c5a1603e-f769-4a74-bf37-ecaa5db7a41a.webp?v=1714722342"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9646401bcec779c2be123e50076fa76b2a0d5b2_c5a1603e-f769-4a74-bf37-ecaa5db7a41a.webp?v=1714722342","width":2000},{"alt":null,"id":23877441650787,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bc5909eccbcb7441fa40c871576d2cb0ebec86a_f7d5b716-b348-48a1-b876-9ce3a539fb31.webp?v=1714722344"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bc5909eccbcb7441fa40c871576d2cb0ebec86a_f7d5b716-b348-48a1-b876-9ce3a539fb31.webp?v=1714722344","width":2000},{"alt":null,"id":23877442044003,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecbb233574e6c9a027240a929f086eb98946043c_ee0f4437-2032-4e69-b7bd-ba39a4a33263.webp?v=1714722346"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecbb233574e6c9a027240a929f086eb98946043c_ee0f4437-2032-4e69-b7bd-ba39a4a33263.webp?v=1714722346","width":2000},{"alt":null,"id":23877442797667,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26dcbf19c93445f76020a5c7fb06a713382dc0fc_4068adb9-f403-4aae-95b2-87aca9641b92.webp?v=1714722349"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26dcbf19c93445f76020a5c7fb06a713382dc0fc_4068adb9-f403-4aae-95b2-87aca9641b92.webp?v=1714722349","width":2000},{"alt":null,"id":23877443321955,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7526ae1f9ce8f67161fcf1f252db9d2b2faf47a_0529a000-019e-482b-9a82-828f1d2efaff.webp?v=1714722351"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7526ae1f9ce8f67161fcf1f252db9d2b2faf47a_0529a000-019e-482b-9a82-828f1d2efaff.webp?v=1714722351","width":2000},{"alt":null,"id":23877443747939,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c4999f583387698897d417799292f29138ee1e1_55c928f1-d05a-4865-b961-d5e00ffe60ea.webp?v=1714722354"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c4999f583387698897d417799292f29138ee1e1_55c928f1-d05a-4865-b961-d5e00ffe60ea.webp?v=1714722354","width":2000},{"alt":null,"id":23877444272227,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91d2915df45ba59019fdaf41575c634979e417b0_d10dbe5d-46c8-44fd-aa3b-95a70f2b051e.webp?v=1714722356"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91d2915df45ba59019fdaf41575c634979e417b0_d10dbe5d-46c8-44fd-aa3b-95a70f2b051e.webp?v=1714722356","width":2000},{"alt":null,"id":23877444698211,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d45e200acc6bc387709bbb3b718c627680e05da6_c9801ce2-c7e6-44f2-a509-746a5117fda0.webp?v=1714722359"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d45e200acc6bc387709bbb3b718c627680e05da6_c9801ce2-c7e6-44f2-a509-746a5117fda0.webp?v=1714722359","width":2000},{"alt":null,"id":23877445615715,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/900a3f64953f08e93e922d25a9984c2e24f0e80b_95682489-e059-432d-b45c-38d76461245b.webp?v=1714722361"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/900a3f64953f08e93e922d25a9984c2e24f0e80b_95682489-e059-432d-b45c-38d76461245b.webp?v=1714722361","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41886593581155,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PC03","requires_shipping":true,"taxable":true,"featured_image":{"id":31472526983267,"product_id":7408535076963,"position":9,"created_at":"2024-05-03T15:45:56+08:00","updated_at":"2024-05-03T15:45:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91d2915df45ba59019fdaf41575c634979e417b0_d10dbe5d-46c8-44fd-aa3b-95a70f2b051e.webp?v=1714722356","variant_ids":[41886593581155]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 經典幾何Pattern - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118424-PC03","featured_media":{"alt":null,"id":23877444272227,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91d2915df45ba59019fdaf41575c634979e417b0_d10dbe5d-46c8-44fd-aa3b-95a70f2b051e.webp?v=1714722356"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41886593581155,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PC03","requires_shipping":true,"taxable":true,"featured_image":{"id":31472526983267,"product_id":7408535076963,"position":9,"created_at":"2024-05-03T15:45:56+08:00","updated_at":"2024-05-03T15:45:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91d2915df45ba59019fdaf41575c634979e417b0_d10dbe5d-46c8-44fd-aa3b-95a70f2b051e.webp?v=1714722356","variant_ids":[41886593581155]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 經典幾何Pattern - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118424-PC03","featured_media":{"alt":null,"id":23877444272227,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91d2915df45ba59019fdaf41575c634979e417b0_d10dbe5d-46c8-44fd-aa3b-95a70f2b051e.webp?v=1714722356"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $brand_handle = null; $type = ""; var sellingStatus // 只有設計款(SKU 含 '-')才需要合圖 if ($isMerge && $defaultVariant.sku.includes('-')) { $(document).ready(function() { var productImg = $product.images[0]; var bumperImg = window.getProductImageUrl($defaultVariant.sku.split('-')[0]); var layers = ($type === 'mod-nx-backplate' || $type === 'mod-backplate') ? [productImg, bumperImg] : [bumperImg, productImg]; window.mergeProductImages(layers).then(function (mergedImg) { $('.merged-img').attr('src', mergedImg); }); }); }; var sellingStatusData window.fetchSellingStatus().then(data => { try { sellingStatusData = data; } catch (error) { sellingStatusData = null console.error('Unable to parse selling status', error) } $(document).ready(function() { handleSellingStatus($defaultVariant.sku); }); }) function handleSellingStatus(currentSku) { if (!sellingStatusData) { console.error('No selling status available!') return } const sellingStatusElement = document.getElementById('selling-status') const addToCartButton = document.getElementById('AddToCart-product-template') const currentProductSku = currentSku.replace(/-(.*)$/, '-') if ($variants) { const flattenedSellingStatus = [...sellingStatusData.pending, ...sellingStatusData.preorder] const matchSellingStatusProduct = flattenedSellingStatus.filter(product => currentProductSku === product.sku) if (matchSellingStatusProduct.length > 0) { const isProductPending = matchSellingStatusProduct[0].status === 'pending' const matchDate = matchSellingStatusProduct[0].date sellingStatus = isProductPending ? "缺貨中" : "預購完成出貨日:" + matchDate sellingStatusElement.textContent = sellingStatus if (sellingStatus.includes("缺貨中")){ addToCartButton.disabled ='true'; addToCartButton.textContent = "缺貨中無法加入購物車" } else { addToCartButton.textContent = "加到購物車" } } else { sellingStatusElement.textContent = '' addToCartButton.textContent = "加到購物車" }; }; }; document.addEventListener('DOMContentLoaded', function () { var currentVariantSelect = document.getElementById('SingleOptionSelector-0') currentVariantSelect.addEventListener('change', function() { var currentSku = $('#current_sku').text() var skuElement = document.getElementById('current-sku') skuElement.textContent = currentSku handleSellingStatus(currentSku) }); });
// Override default values of shop.strings for each template. // Alternate product templates can change values of // add to cart button, sold out, and unavailable states here. theme.productStrings = { addToCart: "加到購物車", soldOut: "售完", unavailable: "停產" }