$product = {"id":7414384558179,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 千年鷹-美式復古","handle":"iphone-13-mini-mod-nx-magsafe-printable-pb99","description":null,"published_at":"2024-06-11T17:51:02+08:00","created_at":"2024-05-05T14:23:47+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":41906095751267,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB99","requires_shipping":true,"taxable":true,"featured_image":{"id":31485308010595,"product_id":7414384558179,"position":3,"created_at":"2024-05-05T14:23:54+08:00","updated_at":"2024-05-05T14:23:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6d7f153985a6758879cea702f8932805e08eb10_44f5a5c6-099a-4935-9d3a-cd0458f88097.webp?v=1714890234","variant_ids":[41906095751267]},"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-PB99","featured_media":{"alt":null,"id":23890624741475,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6d7f153985a6758879cea702f8932805e08eb10_44f5a5c6-099a-4935-9d3a-cd0458f88097.webp?v=1714890234"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906095915107,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB99","requires_shipping":true,"taxable":true,"featured_image":{"id":31485323083875,"product_id":7414384558179,"position":8,"created_at":"2024-05-05T14:24:05+08:00","updated_at":"2024-05-05T14:24:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9e6b676016bab7c8341d8bdb125696d9e6c9c8a_8c5de10d-bc32-460b-8fd1-04dcd4aaf640.webp?v=1714890245","variant_ids":[41906095915107]},"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-PB99","featured_media":{"alt":null,"id":23890640273507,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9e6b676016bab7c8341d8bdb125696d9e6c9c8a_8c5de10d-bc32-460b-8fd1-04dcd4aaf640.webp?v=1714890245"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906097061987,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB99","requires_shipping":true,"taxable":true,"featured_image":{"id":31485305159779,"product_id":7414384558179,"position":2,"created_at":"2024-05-05T14:23:51+08:00","updated_at":"2024-05-05T14:23:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab6d910e2e2fc2c6358de2545df24aa7caebc6e7_07977c04-838d-4694-a66b-311421bc7ee0.webp?v=1714890231","variant_ids":[41906097061987]},"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-PB99","featured_media":{"alt":null,"id":23890621890659,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab6d910e2e2fc2c6358de2545df24aa7caebc6e7_07977c04-838d-4694-a66b-311421bc7ee0.webp?v=1714890231"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bb5021440f3eb77b5e44c098a91181c29fddaea_186979cc-21ea-460f-97ed-a8df37d61a28.webp?v=1714890229","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab6d910e2e2fc2c6358de2545df24aa7caebc6e7_07977c04-838d-4694-a66b-311421bc7ee0.webp?v=1714890231","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6d7f153985a6758879cea702f8932805e08eb10_44f5a5c6-099a-4935-9d3a-cd0458f88097.webp?v=1714890234","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ebb76a795b3141c4b9c7379c9ed3a8ea02964880_cd0b6b9a-b17a-4cce-b4e1-2e82e25bd192.webp?v=1714890236","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/237da1f43f0a80e47997b60c0821ac8b0783dd13_965f6642-7838-4224-bdd7-8c3c70608758.webp?v=1714890238","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ecfa7b9bb23a161e14d2204270987063afa6ddf_11ca0415-f8b6-4590-949e-abf419bbb2b2.webp?v=1714890240","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f6731353fb4d3a037d8a187b609f0ecb1253347_837bcb27-8f93-47b2-a36d-5cd0ded42e61.webp?v=1714890243","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9e6b676016bab7c8341d8bdb125696d9e6c9c8a_8c5de10d-bc32-460b-8fd1-04dcd4aaf640.webp?v=1714890245","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5026299a125850d8e60999897ec6f5a449bd7e7_b95624cb-410e-4e0a-bd45-e18e4f45d777.webp?v=1714890247","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e1f5042720ce7f407ba9aaf45cc3fd78d2c3354_220f099b-5fef-48e4-9dd6-22f4532b5c78.webp?v=1714890249"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bb5021440f3eb77b5e44c098a91181c29fddaea_186979cc-21ea-460f-97ed-a8df37d61a28.webp?v=1714890229","options":["color"],"media":[{"alt":null,"id":23890618974307,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bb5021440f3eb77b5e44c098a91181c29fddaea_186979cc-21ea-460f-97ed-a8df37d61a28.webp?v=1714890229"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bb5021440f3eb77b5e44c098a91181c29fddaea_186979cc-21ea-460f-97ed-a8df37d61a28.webp?v=1714890229","width":2000},{"alt":null,"id":23890621890659,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab6d910e2e2fc2c6358de2545df24aa7caebc6e7_07977c04-838d-4694-a66b-311421bc7ee0.webp?v=1714890231"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab6d910e2e2fc2c6358de2545df24aa7caebc6e7_07977c04-838d-4694-a66b-311421bc7ee0.webp?v=1714890231","width":2000},{"alt":null,"id":23890624741475,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6d7f153985a6758879cea702f8932805e08eb10_44f5a5c6-099a-4935-9d3a-cd0458f88097.webp?v=1714890234"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6d7f153985a6758879cea702f8932805e08eb10_44f5a5c6-099a-4935-9d3a-cd0458f88097.webp?v=1714890234","width":2000},{"alt":null,"id":23890627723363,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ebb76a795b3141c4b9c7379c9ed3a8ea02964880_cd0b6b9a-b17a-4cce-b4e1-2e82e25bd192.webp?v=1714890236"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ebb76a795b3141c4b9c7379c9ed3a8ea02964880_cd0b6b9a-b17a-4cce-b4e1-2e82e25bd192.webp?v=1714890236","width":2000},{"alt":null,"id":23890630639715,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/237da1f43f0a80e47997b60c0821ac8b0783dd13_965f6642-7838-4224-bdd7-8c3c70608758.webp?v=1714890238"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/237da1f43f0a80e47997b60c0821ac8b0783dd13_965f6642-7838-4224-bdd7-8c3c70608758.webp?v=1714890238","width":2000},{"alt":null,"id":23890633752675,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ecfa7b9bb23a161e14d2204270987063afa6ddf_11ca0415-f8b6-4590-949e-abf419bbb2b2.webp?v=1714890240"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ecfa7b9bb23a161e14d2204270987063afa6ddf_11ca0415-f8b6-4590-949e-abf419bbb2b2.webp?v=1714890240","width":2000},{"alt":null,"id":23890636898403,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f6731353fb4d3a037d8a187b609f0ecb1253347_837bcb27-8f93-47b2-a36d-5cd0ded42e61.webp?v=1714890243"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f6731353fb4d3a037d8a187b609f0ecb1253347_837bcb27-8f93-47b2-a36d-5cd0ded42e61.webp?v=1714890243","width":2000},{"alt":null,"id":23890640273507,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9e6b676016bab7c8341d8bdb125696d9e6c9c8a_8c5de10d-bc32-460b-8fd1-04dcd4aaf640.webp?v=1714890245"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9e6b676016bab7c8341d8bdb125696d9e6c9c8a_8c5de10d-bc32-460b-8fd1-04dcd4aaf640.webp?v=1714890245","width":2000},{"alt":null,"id":23890643517539,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5026299a125850d8e60999897ec6f5a449bd7e7_b95624cb-410e-4e0a-bd45-e18e4f45d777.webp?v=1714890247"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5026299a125850d8e60999897ec6f5a449bd7e7_b95624cb-410e-4e0a-bd45-e18e4f45d777.webp?v=1714890247","width":2000},{"alt":null,"id":23890647023715,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e1f5042720ce7f407ba9aaf45cc3fd78d2c3354_220f099b-5fef-48e4-9dd6-22f4532b5c78.webp?v=1714890249"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e1f5042720ce7f407ba9aaf45cc3fd78d2c3354_220f099b-5fef-48e4-9dd6-22f4532b5c78.webp?v=1714890249","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":41906095751267,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB99","requires_shipping":true,"taxable":true,"featured_image":{"id":31485308010595,"product_id":7414384558179,"position":3,"created_at":"2024-05-05T14:23:54+08:00","updated_at":"2024-05-05T14:23:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6d7f153985a6758879cea702f8932805e08eb10_44f5a5c6-099a-4935-9d3a-cd0458f88097.webp?v=1714890234","variant_ids":[41906095751267]},"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-PB99","featured_media":{"alt":null,"id":23890624741475,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6d7f153985a6758879cea702f8932805e08eb10_44f5a5c6-099a-4935-9d3a-cd0458f88097.webp?v=1714890234"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906095915107,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB99","requires_shipping":true,"taxable":true,"featured_image":{"id":31485323083875,"product_id":7414384558179,"position":8,"created_at":"2024-05-05T14:24:05+08:00","updated_at":"2024-05-05T14:24:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9e6b676016bab7c8341d8bdb125696d9e6c9c8a_8c5de10d-bc32-460b-8fd1-04dcd4aaf640.webp?v=1714890245","variant_ids":[41906095915107]},"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-PB99","featured_media":{"alt":null,"id":23890640273507,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9e6b676016bab7c8341d8bdb125696d9e6c9c8a_8c5de10d-bc32-460b-8fd1-04dcd4aaf640.webp?v=1714890245"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906097061987,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB99","requires_shipping":true,"taxable":true,"featured_image":{"id":31485305159779,"product_id":7414384558179,"position":2,"created_at":"2024-05-05T14:23:51+08:00","updated_at":"2024-05-05T14:23:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab6d910e2e2fc2c6358de2545df24aa7caebc6e7_07977c04-838d-4694-a66b-311421bc7ee0.webp?v=1714890231","variant_ids":[41906097061987]},"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-PB99","featured_media":{"alt":null,"id":23890621890659,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab6d910e2e2fc2c6358de2545df24aa7caebc6e7_07977c04-838d-4694-a66b-311421bc7ee0.webp?v=1714890231"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41906095751267,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB99","requires_shipping":true,"taxable":true,"featured_image":{"id":31485308010595,"product_id":7414384558179,"position":3,"created_at":"2024-05-05T14:23:54+08:00","updated_at":"2024-05-05T14:23:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6d7f153985a6758879cea702f8932805e08eb10_44f5a5c6-099a-4935-9d3a-cd0458f88097.webp?v=1714890234","variant_ids":[41906095751267]},"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-PB99","featured_media":{"alt":null,"id":23890624741475,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6d7f153985a6758879cea702f8932805e08eb10_44f5a5c6-099a-4935-9d3a-cd0458f88097.webp?v=1714890234"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null var sellingStatus if ($bumper) { $(document).ready(function() { var productImg = $product.images[0] var bumperVariants = $bumper.variants; var bumperColors = new Object(); var currentVariant = ''; var productType = ''; bumperVariants.forEach(variant => { bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src; }); if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') { mergeImages( [productImg, bumperColors[currentVariant]], { crossOrigin: 'anonymous' } ).then(mergedImg => { $('.merged-img').attr('src', mergedImg); }); } else { mergeImages( [bumperColors[currentVariant], productImg], { crossOrigin: 'anonymous' } ).then(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: "停產" }