$product = {"id":7956985643107,"title":"iPhone 14 Clear 迪士尼-玩具總動員 玩具總動員 - 跳舞的熊抱哥","handle":"iphone-14-jellytint-pa113","description":null,"published_at":"2026-01-28T16:38:48+08:00","created_at":"2026-01-28T16:03:55+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-toy-story","device-iPhone 14","merge","reseller-toy-story"],"price":118000,"price_min":118000,"price_max":118000,"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":43972415291491,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012600I-PA113","requires_shipping":true,"taxable":true,"featured_image":{"id":35563056857187,"product_id":7956985643107,"position":8,"created_at":"2026-03-30T16:56:55+08:00","updated_at":"2026-03-30T16:56:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdd0b6c7ce13a6251298b0cec618d1ef36c72873_9dd0f00b-4053-4ef9-8339-b8a6a4a19f20.webp?v=1774861017","variant_ids":[43972415291491]},"available":true,"name":"iPhone 14 Clear 迪士尼-玩具總動員 玩具總動員 - 跳舞的熊抱哥 - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":118000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012600I-PA113","featured_media":{"alt":null,"id":27096617746531,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdd0b6c7ce13a6251298b0cec618d1ef36c72873_9dd0f00b-4053-4ef9-8339-b8a6a4a19f20.webp?v=1774861017"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43972421943395,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012600J-PA113","requires_shipping":true,"taxable":true,"featured_image":{"id":35563056332899,"product_id":7956985643107,"position":5,"created_at":"2026-03-30T16:56:53+08:00","updated_at":"2026-03-30T16:56:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1c4f264770595a6ef142dbf73caca5089a2f22d_9ccb7f2f-6636-4ae1-a38b-6cf578be3adc.webp?v=1774861015","variant_ids":[43972421943395]},"available":true,"name":"iPhone 14 Clear 迪士尼-玩具總動員 玩具總動員 - 跳舞的熊抱哥 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":118000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012600J-PA113","featured_media":{"alt":null,"id":27096617222243,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1c4f264770595a6ef142dbf73caca5089a2f22d_9ccb7f2f-6636-4ae1-a38b-6cf578be3adc.webp?v=1774861015"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43972422074467,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"CCN012600H-PA113","requires_shipping":true,"taxable":true,"featured_image":{"id":35563056693347,"product_id":7956985643107,"position":7,"created_at":"2026-03-30T16:56:54+08:00","updated_at":"2026-03-30T16:56:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0d2e6fcffa014b9d28945174484e8ac426e7519_0ce4a8fc-ecbf-4fd9-a2b7-addccb204528.webp?v=1774861016","variant_ids":[43972422074467]},"available":true,"name":"iPhone 14 Clear 迪士尼-玩具總動員 玩具總動員 - 跳舞的熊抱哥 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":118000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012600H-PA113","featured_media":{"alt":null,"id":27096617582691,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0d2e6fcffa014b9d28945174484e8ac426e7519_0ce4a8fc-ecbf-4fd9-a2b7-addccb204528.webp?v=1774861016"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43972422303843,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012600G-PA113","requires_shipping":true,"taxable":true,"featured_image":{"id":35563056496739,"product_id":7956985643107,"position":6,"created_at":"2026-03-30T16:56:54+08:00","updated_at":"2026-03-30T16:56:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6941f1898117c4caa170ddf40a6217cfabd00b9f_00b2da97-1e52-4973-aeea-dfa8de074b43.webp?v=1774861016","variant_ids":[43972422303843]},"available":true,"name":"iPhone 14 Clear 迪士尼-玩具總動員 玩具總動員 - 跳舞的熊抱哥 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":118000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012600G-PA113","featured_media":{"alt":null,"id":27096617386083,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6941f1898117c4caa170ddf40a6217cfabd00b9f_00b2da97-1e52-4973-aeea-dfa8de074b43.webp?v=1774861016"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0d2e6fcffa014b9d28945174484e8ac426e7519_210f1032-2952-47dc-892c-e7fb7cf64899.webp?v=1769587451","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1c4f264770595a6ef142dbf73caca5089a2f22d_36b4a8c7-91ac-48bd-a528-26f4064a3b7a.webp?v=1769587452","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdd0b6c7ce13a6251298b0cec618d1ef36c72873_405ac408-583f-4dcf-ae70-8f5c273fd98d.webp?v=1769587452","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6941f1898117c4caa170ddf40a6217cfabd00b9f_a3675dad-1e4e-40a8-9396-df0e6213a3d2.webp?v=1769587452","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1c4f264770595a6ef142dbf73caca5089a2f22d_9ccb7f2f-6636-4ae1-a38b-6cf578be3adc.webp?v=1774861015","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6941f1898117c4caa170ddf40a6217cfabd00b9f_00b2da97-1e52-4973-aeea-dfa8de074b43.webp?v=1774861016","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0d2e6fcffa014b9d28945174484e8ac426e7519_0ce4a8fc-ecbf-4fd9-a2b7-addccb204528.webp?v=1774861016","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdd0b6c7ce13a6251298b0cec618d1ef36c72873_9dd0f00b-4053-4ef9-8339-b8a6a4a19f20.webp?v=1774861017"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0d2e6fcffa014b9d28945174484e8ac426e7519_210f1032-2952-47dc-892c-e7fb7cf64899.webp?v=1769587451","options":["color"],"media":[{"alt":null,"id":26713007358051,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0d2e6fcffa014b9d28945174484e8ac426e7519_210f1032-2952-47dc-892c-e7fb7cf64899.webp?v=1769587451"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0d2e6fcffa014b9d28945174484e8ac426e7519_210f1032-2952-47dc-892c-e7fb7cf64899.webp?v=1769587451","width":2000},{"alt":null,"id":26713007489123,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1c4f264770595a6ef142dbf73caca5089a2f22d_36b4a8c7-91ac-48bd-a528-26f4064a3b7a.webp?v=1769587452"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1c4f264770595a6ef142dbf73caca5089a2f22d_36b4a8c7-91ac-48bd-a528-26f4064a3b7a.webp?v=1769587452","width":2000},{"alt":null,"id":26713007587427,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdd0b6c7ce13a6251298b0cec618d1ef36c72873_405ac408-583f-4dcf-ae70-8f5c273fd98d.webp?v=1769587452"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdd0b6c7ce13a6251298b0cec618d1ef36c72873_405ac408-583f-4dcf-ae70-8f5c273fd98d.webp?v=1769587452","width":2000},{"alt":null,"id":26713007751267,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6941f1898117c4caa170ddf40a6217cfabd00b9f_a3675dad-1e4e-40a8-9396-df0e6213a3d2.webp?v=1769587452"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6941f1898117c4caa170ddf40a6217cfabd00b9f_a3675dad-1e4e-40a8-9396-df0e6213a3d2.webp?v=1769587452","width":2000},{"alt":null,"id":27096617222243,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1c4f264770595a6ef142dbf73caca5089a2f22d_9ccb7f2f-6636-4ae1-a38b-6cf578be3adc.webp?v=1774861015"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1c4f264770595a6ef142dbf73caca5089a2f22d_9ccb7f2f-6636-4ae1-a38b-6cf578be3adc.webp?v=1774861015","width":2000},{"alt":null,"id":27096617386083,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6941f1898117c4caa170ddf40a6217cfabd00b9f_00b2da97-1e52-4973-aeea-dfa8de074b43.webp?v=1774861016"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6941f1898117c4caa170ddf40a6217cfabd00b9f_00b2da97-1e52-4973-aeea-dfa8de074b43.webp?v=1774861016","width":2000},{"alt":null,"id":27096617582691,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0d2e6fcffa014b9d28945174484e8ac426e7519_0ce4a8fc-ecbf-4fd9-a2b7-addccb204528.webp?v=1774861016"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0d2e6fcffa014b9d28945174484e8ac426e7519_0ce4a8fc-ecbf-4fd9-a2b7-addccb204528.webp?v=1774861016","width":2000},{"alt":null,"id":27096617746531,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdd0b6c7ce13a6251298b0cec618d1ef36c72873_9dd0f00b-4053-4ef9-8339-b8a6a4a19f20.webp?v=1774861017"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdd0b6c7ce13a6251298b0cec618d1ef36c72873_9dd0f00b-4053-4ef9-8339-b8a6a4a19f20.webp?v=1774861017","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43972415291491,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012600I-PA113","requires_shipping":true,"taxable":true,"featured_image":{"id":35563056857187,"product_id":7956985643107,"position":8,"created_at":"2026-03-30T16:56:55+08:00","updated_at":"2026-03-30T16:56:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdd0b6c7ce13a6251298b0cec618d1ef36c72873_9dd0f00b-4053-4ef9-8339-b8a6a4a19f20.webp?v=1774861017","variant_ids":[43972415291491]},"available":true,"name":"iPhone 14 Clear 迪士尼-玩具總動員 玩具總動員 - 跳舞的熊抱哥 - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":118000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012600I-PA113","featured_media":{"alt":null,"id":27096617746531,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdd0b6c7ce13a6251298b0cec618d1ef36c72873_9dd0f00b-4053-4ef9-8339-b8a6a4a19f20.webp?v=1774861017"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43972421943395,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012600J-PA113","requires_shipping":true,"taxable":true,"featured_image":{"id":35563056332899,"product_id":7956985643107,"position":5,"created_at":"2026-03-30T16:56:53+08:00","updated_at":"2026-03-30T16:56:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1c4f264770595a6ef142dbf73caca5089a2f22d_9ccb7f2f-6636-4ae1-a38b-6cf578be3adc.webp?v=1774861015","variant_ids":[43972421943395]},"available":true,"name":"iPhone 14 Clear 迪士尼-玩具總動員 玩具總動員 - 跳舞的熊抱哥 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":118000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012600J-PA113","featured_media":{"alt":null,"id":27096617222243,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1c4f264770595a6ef142dbf73caca5089a2f22d_9ccb7f2f-6636-4ae1-a38b-6cf578be3adc.webp?v=1774861015"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43972422074467,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"CCN012600H-PA113","requires_shipping":true,"taxable":true,"featured_image":{"id":35563056693347,"product_id":7956985643107,"position":7,"created_at":"2026-03-30T16:56:54+08:00","updated_at":"2026-03-30T16:56:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0d2e6fcffa014b9d28945174484e8ac426e7519_0ce4a8fc-ecbf-4fd9-a2b7-addccb204528.webp?v=1774861016","variant_ids":[43972422074467]},"available":true,"name":"iPhone 14 Clear 迪士尼-玩具總動員 玩具總動員 - 跳舞的熊抱哥 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":118000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012600H-PA113","featured_media":{"alt":null,"id":27096617582691,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0d2e6fcffa014b9d28945174484e8ac426e7519_0ce4a8fc-ecbf-4fd9-a2b7-addccb204528.webp?v=1774861016"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43972422303843,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012600G-PA113","requires_shipping":true,"taxable":true,"featured_image":{"id":35563056496739,"product_id":7956985643107,"position":6,"created_at":"2026-03-30T16:56:54+08:00","updated_at":"2026-03-30T16:56:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6941f1898117c4caa170ddf40a6217cfabd00b9f_00b2da97-1e52-4973-aeea-dfa8de074b43.webp?v=1774861016","variant_ids":[43972422303843]},"available":true,"name":"iPhone 14 Clear 迪士尼-玩具總動員 玩具總動員 - 跳舞的熊抱哥 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":118000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012600G-PA113","featured_media":{"alt":null,"id":27096617386083,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6941f1898117c4caa170ddf40a6217cfabd00b9f_00b2da97-1e52-4973-aeea-dfa8de074b43.webp?v=1774861016"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43972415291491,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012600I-PA113","requires_shipping":true,"taxable":true,"featured_image":{"id":35563056857187,"product_id":7956985643107,"position":8,"created_at":"2026-03-30T16:56:55+08:00","updated_at":"2026-03-30T16:56:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdd0b6c7ce13a6251298b0cec618d1ef36c72873_9dd0f00b-4053-4ef9-8339-b8a6a4a19f20.webp?v=1774861017","variant_ids":[43972415291491]},"available":true,"name":"iPhone 14 Clear 迪士尼-玩具總動員 玩具總動員 - 跳舞的熊抱哥 - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":118000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012600I-PA113","featured_media":{"alt":null,"id":27096617746531,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdd0b6c7ce13a6251298b0cec618d1ef36c72873_9dd0f00b-4053-4ef9-8339-b8a6a4a19f20.webp?v=1774861017"}},"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: "停產" }