$product = {"id":7413966700643,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 星戰角色-漫畫系列","handle":"iphone-13-mini-mod-nx-magsafe-printable-pb84","description":null,"published_at":"2024-06-11T17:46:23+08:00","created_at":"2024-05-05T13:51:59+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 13 mini","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-star-wars","Top50","type-Mod NX Printable MagSafe Printable"],"price":110000,"price_min":110000,"price_max":110000,"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":41902787887203,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB84","requires_shipping":true,"taxable":true,"featured_image":{"id":31484347187299,"product_id":7413966700643,"position":8,"created_at":"2024-05-05T13:52:19+08:00","updated_at":"2024-05-05T13:52:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fd8c336f25fcb71c93c458b316968686b24a60f_4a5e9b85-a73f-4ae5-a1e4-1264d4242018.webp?v=1714888339","variant_ids":[41902787887203]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 星戰角色-漫畫系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122824-PB84","featured_media":{"alt":null,"id":23889640882275,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fd8c336f25fcb71c93c458b316968686b24a60f_4a5e9b85-a73f-4ae5-a1e4-1264d4242018.webp?v=1714888339"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902787952739,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB84","requires_shipping":true,"taxable":true,"featured_image":{"id":31484345614435,"product_id":7413966700643,"position":5,"created_at":"2024-05-05T13:52:11+08:00","updated_at":"2024-05-05T13:52:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c4876a98f3d93c1b86aa7ed85b88bfe79388419_e73c53e8-5359-4591-8f40-6d394100005c.webp?v=1714888331","variant_ids":[41902787952739]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 星戰角色-漫畫系列 - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122804-PB84","featured_media":{"alt":null,"id":23889639342179,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c4876a98f3d93c1b86aa7ed85b88bfe79388419_e73c53e8-5359-4591-8f40-6d394100005c.webp?v=1714888331"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902788182115,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB84","requires_shipping":true,"taxable":true,"featured_image":{"id":31484346171491,"product_id":7413966700643,"position":6,"created_at":"2024-05-05T13:52:14+08:00","updated_at":"2024-05-05T13:52:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9b84d2e3961c3dd97a9cd61068f5caf5cc18b90_bfed440a-c7cc-456f-b2b8-06ab85c4f235.webp?v=1714888334","variant_ids":[41902788182115]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 星戰角色-漫畫系列 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01228J5-PB84","featured_media":{"alt":null,"id":23889639866467,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9b84d2e3961c3dd97a9cd61068f5caf5cc18b90_bfed440a-c7cc-456f-b2b8-06ab85c4f235.webp?v=1714888334"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7706bd25cba76d1fe29958f47c5c571efa4dd91c_d67471a7-d87c-4754-93d1-b5773defc213.webp?v=1714888322","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/401c971ab15e6bf1137115edfe91d424cff3b725_d8fd96e3-8be7-4c3d-971f-f0ed9f43130b.webp?v=1714888324","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a786fd56cf67b342d4d9a40214d3fb7df51adb81_9cc9fca8-90c8-47e8-9254-f4c35abe7bd8.webp?v=1714888327","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63d0a970810a95503b1b5df94ff7d5b76a5ce7e0_d54d15fe-83a6-4ce8-b544-bc7b7148496f.webp?v=1714888329","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c4876a98f3d93c1b86aa7ed85b88bfe79388419_e73c53e8-5359-4591-8f40-6d394100005c.webp?v=1714888331","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9b84d2e3961c3dd97a9cd61068f5caf5cc18b90_bfed440a-c7cc-456f-b2b8-06ab85c4f235.webp?v=1714888334","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36b865382fef16a0db59fa9d4a05a8bd49a2e352_93e313f4-5327-42fc-84ab-56a455f07a10.webp?v=1714888336","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fd8c336f25fcb71c93c458b316968686b24a60f_4a5e9b85-a73f-4ae5-a1e4-1264d4242018.webp?v=1714888339","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84cc1c5151fa28287895b3fec10b2a42a3fa4afc_95ec6640-c206-46cf-a1b7-48e281ac6964.webp?v=1714888342","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e84c0ef2fbe07abfe00a32bf342ec91834258b0e_fba796e7-8cf2-4fa2-9ed9-4a65c9b11d64.webp?v=1714888344"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7706bd25cba76d1fe29958f47c5c571efa4dd91c_d67471a7-d87c-4754-93d1-b5773defc213.webp?v=1714888322","options":["color"],"media":[{"alt":null,"id":23889637212259,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7706bd25cba76d1fe29958f47c5c571efa4dd91c_d67471a7-d87c-4754-93d1-b5773defc213.webp?v=1714888322"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7706bd25cba76d1fe29958f47c5c571efa4dd91c_d67471a7-d87c-4754-93d1-b5773defc213.webp?v=1714888322","width":2000},{"alt":null,"id":23889637671011,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/401c971ab15e6bf1137115edfe91d424cff3b725_d8fd96e3-8be7-4c3d-971f-f0ed9f43130b.webp?v=1714888324"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/401c971ab15e6bf1137115edfe91d424cff3b725_d8fd96e3-8be7-4c3d-971f-f0ed9f43130b.webp?v=1714888324","width":2000},{"alt":null,"id":23889638228067,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a786fd56cf67b342d4d9a40214d3fb7df51adb81_9cc9fca8-90c8-47e8-9254-f4c35abe7bd8.webp?v=1714888327"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a786fd56cf67b342d4d9a40214d3fb7df51adb81_9cc9fca8-90c8-47e8-9254-f4c35abe7bd8.webp?v=1714888327","width":2000},{"alt":null,"id":23889638916195,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63d0a970810a95503b1b5df94ff7d5b76a5ce7e0_d54d15fe-83a6-4ce8-b544-bc7b7148496f.webp?v=1714888329"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63d0a970810a95503b1b5df94ff7d5b76a5ce7e0_d54d15fe-83a6-4ce8-b544-bc7b7148496f.webp?v=1714888329","width":2000},{"alt":null,"id":23889639342179,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c4876a98f3d93c1b86aa7ed85b88bfe79388419_e73c53e8-5359-4591-8f40-6d394100005c.webp?v=1714888331"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c4876a98f3d93c1b86aa7ed85b88bfe79388419_e73c53e8-5359-4591-8f40-6d394100005c.webp?v=1714888331","width":2000},{"alt":null,"id":23889639866467,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9b84d2e3961c3dd97a9cd61068f5caf5cc18b90_bfed440a-c7cc-456f-b2b8-06ab85c4f235.webp?v=1714888334"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9b84d2e3961c3dd97a9cd61068f5caf5cc18b90_bfed440a-c7cc-456f-b2b8-06ab85c4f235.webp?v=1714888334","width":2000},{"alt":null,"id":23889640292451,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36b865382fef16a0db59fa9d4a05a8bd49a2e352_93e313f4-5327-42fc-84ab-56a455f07a10.webp?v=1714888336"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36b865382fef16a0db59fa9d4a05a8bd49a2e352_93e313f4-5327-42fc-84ab-56a455f07a10.webp?v=1714888336","width":2000},{"alt":null,"id":23889640882275,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fd8c336f25fcb71c93c458b316968686b24a60f_4a5e9b85-a73f-4ae5-a1e4-1264d4242018.webp?v=1714888339"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fd8c336f25fcb71c93c458b316968686b24a60f_4a5e9b85-a73f-4ae5-a1e4-1264d4242018.webp?v=1714888339","width":2000},{"alt":null,"id":23889641406563,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84cc1c5151fa28287895b3fec10b2a42a3fa4afc_95ec6640-c206-46cf-a1b7-48e281ac6964.webp?v=1714888342"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84cc1c5151fa28287895b3fec10b2a42a3fa4afc_95ec6640-c206-46cf-a1b7-48e281ac6964.webp?v=1714888342","width":2000},{"alt":null,"id":23889642029155,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e84c0ef2fbe07abfe00a32bf342ec91834258b0e_fba796e7-8cf2-4fa2-9ed9-4a65c9b11d64.webp?v=1714888344"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e84c0ef2fbe07abfe00a32bf342ec91834258b0e_fba796e7-8cf2-4fa2-9ed9-4a65c9b11d64.webp?v=1714888344","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41902787887203,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB84","requires_shipping":true,"taxable":true,"featured_image":{"id":31484347187299,"product_id":7413966700643,"position":8,"created_at":"2024-05-05T13:52:19+08:00","updated_at":"2024-05-05T13:52:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fd8c336f25fcb71c93c458b316968686b24a60f_4a5e9b85-a73f-4ae5-a1e4-1264d4242018.webp?v=1714888339","variant_ids":[41902787887203]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 星戰角色-漫畫系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122824-PB84","featured_media":{"alt":null,"id":23889640882275,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fd8c336f25fcb71c93c458b316968686b24a60f_4a5e9b85-a73f-4ae5-a1e4-1264d4242018.webp?v=1714888339"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902787952739,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB84","requires_shipping":true,"taxable":true,"featured_image":{"id":31484345614435,"product_id":7413966700643,"position":5,"created_at":"2024-05-05T13:52:11+08:00","updated_at":"2024-05-05T13:52:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c4876a98f3d93c1b86aa7ed85b88bfe79388419_e73c53e8-5359-4591-8f40-6d394100005c.webp?v=1714888331","variant_ids":[41902787952739]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 星戰角色-漫畫系列 - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122804-PB84","featured_media":{"alt":null,"id":23889639342179,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c4876a98f3d93c1b86aa7ed85b88bfe79388419_e73c53e8-5359-4591-8f40-6d394100005c.webp?v=1714888331"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902788182115,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB84","requires_shipping":true,"taxable":true,"featured_image":{"id":31484346171491,"product_id":7413966700643,"position":6,"created_at":"2024-05-05T13:52:14+08:00","updated_at":"2024-05-05T13:52:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9b84d2e3961c3dd97a9cd61068f5caf5cc18b90_bfed440a-c7cc-456f-b2b8-06ab85c4f235.webp?v=1714888334","variant_ids":[41902788182115]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 星戰角色-漫畫系列 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01228J5-PB84","featured_media":{"alt":null,"id":23889639866467,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9b84d2e3961c3dd97a9cd61068f5caf5cc18b90_bfed440a-c7cc-456f-b2b8-06ab85c4f235.webp?v=1714888334"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41902787887203,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB84","requires_shipping":true,"taxable":true,"featured_image":{"id":31484347187299,"product_id":7413966700643,"position":8,"created_at":"2024-05-05T13:52:19+08:00","updated_at":"2024-05-05T13:52:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fd8c336f25fcb71c93c458b316968686b24a60f_4a5e9b85-a73f-4ae5-a1e4-1264d4242018.webp?v=1714888339","variant_ids":[41902787887203]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 星戰角色-漫畫系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122824-PB84","featured_media":{"alt":null,"id":23889640882275,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fd8c336f25fcb71c93c458b316968686b24a60f_4a5e9b85-a73f-4ae5-a1e4-1264d4242018.webp?v=1714888339"}},"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: "停產" }