$product = {"id":7931642282083,"title":"iPhone 14 Pro Mod NX (MagSafe 兼容) 產房 • 廢料棲息地 海龜這座城市","handle":"iphone-14-pro-mod-nx-magsafe-bir02","description":null,"published_at":"2026-01-27T14:19:55+08:00","created_at":"2025-11-28T11:23:19+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-everydayishappybirthday","device-iPhone 14 Pro","merge","reseller-everydayishappybirthday"],"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":43861401239651,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-BIR02","requires_shipping":true,"taxable":true,"featured_image":{"id":36348360523875,"product_id":7931642282083,"position":12,"created_at":"2026-07-22T18:43:11+08:00","updated_at":"2026-07-22T18:43:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35a68d27590e6fa79bd7433e04bbae40c4ee0c0f_8a9317f0-3f7d-4a63-9e23-7d69e3ef650f.webp?v=1784716994","variant_ids":[43861401239651]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 產房 • 廢料棲息地 海龜這座城市 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-BIR02","featured_media":{"alt":null,"id":27852216238179,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35a68d27590e6fa79bd7433e04bbae40c4ee0c0f_8a9317f0-3f7d-4a63-9e23-7d69e3ef650f.webp?v=1784716994"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43861401305187,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-BIR02","requires_shipping":true,"taxable":true,"featured_image":{"id":36348360851555,"product_id":7931642282083,"position":13,"created_at":"2026-07-22T18:43:12+08:00","updated_at":"2026-07-22T18:43:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e72473a4d463c6189d7dddf374e2c07e552c45f_71343d0a-e354-4461-bb24-f83fe8e19960.webp?v=1784716994","variant_ids":[43861401305187]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 產房 • 廢料棲息地 海龜這座城市 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-BIR02","featured_media":{"alt":null,"id":27852216533091,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e72473a4d463c6189d7dddf374e2c07e552c45f_71343d0a-e354-4461-bb24-f83fe8e19960.webp?v=1784716994"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43861401534563,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-BIR02","requires_shipping":true,"taxable":true,"featured_image":{"id":36348361212003,"product_id":7931642282083,"position":14,"created_at":"2026-07-22T18:43:13+08:00","updated_at":"2026-07-22T18:43:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c8b4d5556576aa5d6b128e5bf7cc27302a5494f_68203b8e-c924-4eb4-8cf4-9904604ea955.webp?v=1784716995","variant_ids":[43861401534563]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 產房 • 廢料棲息地 海龜這座城市 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01262J5-BIR02","featured_media":{"alt":null,"id":27852216893539,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c8b4d5556576aa5d6b128e5bf7cc27302a5494f_68203b8e-c924-4eb4-8cf4-9904604ea955.webp?v=1784716995"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c8b4d5556576aa5d6b128e5bf7cc27302a5494f.webp?v=1764300205","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e72473a4d463c6189d7dddf374e2c07e552c45f.webp?v=1764300206","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35a68d27590e6fa79bd7433e04bbae40c4ee0c0f.webp?v=1764300206","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9cad366303d9ce8f22c031ce67fd9064b7aaff6b.webp?v=1764300207","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1610aaadb174956649261477962721de4627f37.webp?v=1764300207","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e45552df9c7a83ba588fafc5baddd7daf9bc4ba.webp?v=1764300208","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2fc771e54c6364ba76af8eb5e9e5cfe2a891567c.webp?v=1764300208","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6948cc5e3a9cff600b52fbdc43f2b4f2fef23096.webp?v=1764300209","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/226a5a65bef701c945284784d596daff79fe35af.webp?v=1764300209","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0af4287aa64e09b4bb49b46a25ec1b5b363fafeb.webp?v=1764300209","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9f11c9e5c21d93ad15d0cc87dc68c254f27930e.webp?v=1764300210","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35a68d27590e6fa79bd7433e04bbae40c4ee0c0f_8a9317f0-3f7d-4a63-9e23-7d69e3ef650f.webp?v=1784716994","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e72473a4d463c6189d7dddf374e2c07e552c45f_71343d0a-e354-4461-bb24-f83fe8e19960.webp?v=1784716994","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c8b4d5556576aa5d6b128e5bf7cc27302a5494f_68203b8e-c924-4eb4-8cf4-9904604ea955.webp?v=1784716995"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c8b4d5556576aa5d6b128e5bf7cc27302a5494f.webp?v=1764300205","options":["color"],"media":[{"alt":null,"id":26428157296739,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c8b4d5556576aa5d6b128e5bf7cc27302a5494f.webp?v=1764300205"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c8b4d5556576aa5d6b128e5bf7cc27302a5494f.webp?v=1764300205","width":2000},{"alt":null,"id":26428157427811,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e72473a4d463c6189d7dddf374e2c07e552c45f.webp?v=1764300206"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e72473a4d463c6189d7dddf374e2c07e552c45f.webp?v=1764300206","width":2000},{"alt":null,"id":26428157591651,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35a68d27590e6fa79bd7433e04bbae40c4ee0c0f.webp?v=1764300206"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35a68d27590e6fa79bd7433e04bbae40c4ee0c0f.webp?v=1764300206","width":2000},{"alt":null,"id":26428157722723,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9cad366303d9ce8f22c031ce67fd9064b7aaff6b.webp?v=1764300207"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9cad366303d9ce8f22c031ce67fd9064b7aaff6b.webp?v=1764300207","width":2000},{"alt":null,"id":26428157984867,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1610aaadb174956649261477962721de4627f37.webp?v=1764300207"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1610aaadb174956649261477962721de4627f37.webp?v=1764300207","width":2000},{"alt":null,"id":26428158115939,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e45552df9c7a83ba588fafc5baddd7daf9bc4ba.webp?v=1764300208"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e45552df9c7a83ba588fafc5baddd7daf9bc4ba.webp?v=1764300208","width":2000},{"alt":null,"id":26428158181475,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2fc771e54c6364ba76af8eb5e9e5cfe2a891567c.webp?v=1764300208"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2fc771e54c6364ba76af8eb5e9e5cfe2a891567c.webp?v=1764300208","width":2000},{"alt":null,"id":26428158279779,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6948cc5e3a9cff600b52fbdc43f2b4f2fef23096.webp?v=1764300209"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6948cc5e3a9cff600b52fbdc43f2b4f2fef23096.webp?v=1764300209","width":2000},{"alt":null,"id":26428158378083,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/226a5a65bef701c945284784d596daff79fe35af.webp?v=1764300209"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/226a5a65bef701c945284784d596daff79fe35af.webp?v=1764300209","width":2000},{"alt":null,"id":26428158476387,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0af4287aa64e09b4bb49b46a25ec1b5b363fafeb.webp?v=1764300209"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0af4287aa64e09b4bb49b46a25ec1b5b363fafeb.webp?v=1764300209","width":2000},{"alt":null,"id":26428158640227,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9f11c9e5c21d93ad15d0cc87dc68c254f27930e.webp?v=1764300210"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9f11c9e5c21d93ad15d0cc87dc68c254f27930e.webp?v=1764300210","width":2000},{"alt":null,"id":27852216238179,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35a68d27590e6fa79bd7433e04bbae40c4ee0c0f_8a9317f0-3f7d-4a63-9e23-7d69e3ef650f.webp?v=1784716994"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35a68d27590e6fa79bd7433e04bbae40c4ee0c0f_8a9317f0-3f7d-4a63-9e23-7d69e3ef650f.webp?v=1784716994","width":2000},{"alt":null,"id":27852216533091,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e72473a4d463c6189d7dddf374e2c07e552c45f_71343d0a-e354-4461-bb24-f83fe8e19960.webp?v=1784716994"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e72473a4d463c6189d7dddf374e2c07e552c45f_71343d0a-e354-4461-bb24-f83fe8e19960.webp?v=1784716994","width":2000},{"alt":null,"id":27852216893539,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c8b4d5556576aa5d6b128e5bf7cc27302a5494f_68203b8e-c924-4eb4-8cf4-9904604ea955.webp?v=1784716995"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c8b4d5556576aa5d6b128e5bf7cc27302a5494f_68203b8e-c924-4eb4-8cf4-9904604ea955.webp?v=1784716995","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43861401239651,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-BIR02","requires_shipping":true,"taxable":true,"featured_image":{"id":36348360523875,"product_id":7931642282083,"position":12,"created_at":"2026-07-22T18:43:11+08:00","updated_at":"2026-07-22T18:43:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35a68d27590e6fa79bd7433e04bbae40c4ee0c0f_8a9317f0-3f7d-4a63-9e23-7d69e3ef650f.webp?v=1784716994","variant_ids":[43861401239651]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 產房 • 廢料棲息地 海龜這座城市 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-BIR02","featured_media":{"alt":null,"id":27852216238179,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35a68d27590e6fa79bd7433e04bbae40c4ee0c0f_8a9317f0-3f7d-4a63-9e23-7d69e3ef650f.webp?v=1784716994"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43861401305187,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-BIR02","requires_shipping":true,"taxable":true,"featured_image":{"id":36348360851555,"product_id":7931642282083,"position":13,"created_at":"2026-07-22T18:43:12+08:00","updated_at":"2026-07-22T18:43:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e72473a4d463c6189d7dddf374e2c07e552c45f_71343d0a-e354-4461-bb24-f83fe8e19960.webp?v=1784716994","variant_ids":[43861401305187]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 產房 • 廢料棲息地 海龜這座城市 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-BIR02","featured_media":{"alt":null,"id":27852216533091,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e72473a4d463c6189d7dddf374e2c07e552c45f_71343d0a-e354-4461-bb24-f83fe8e19960.webp?v=1784716994"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43861401534563,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-BIR02","requires_shipping":true,"taxable":true,"featured_image":{"id":36348361212003,"product_id":7931642282083,"position":14,"created_at":"2026-07-22T18:43:13+08:00","updated_at":"2026-07-22T18:43:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c8b4d5556576aa5d6b128e5bf7cc27302a5494f_68203b8e-c924-4eb4-8cf4-9904604ea955.webp?v=1784716995","variant_ids":[43861401534563]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 產房 • 廢料棲息地 海龜這座城市 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01262J5-BIR02","featured_media":{"alt":null,"id":27852216893539,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c8b4d5556576aa5d6b128e5bf7cc27302a5494f_68203b8e-c924-4eb4-8cf4-9904604ea955.webp?v=1784716995"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43861401239651,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-BIR02","requires_shipping":true,"taxable":true,"featured_image":{"id":36348360523875,"product_id":7931642282083,"position":12,"created_at":"2026-07-22T18:43:11+08:00","updated_at":"2026-07-22T18:43:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35a68d27590e6fa79bd7433e04bbae40c4ee0c0f_8a9317f0-3f7d-4a63-9e23-7d69e3ef650f.webp?v=1784716994","variant_ids":[43861401239651]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 產房 • 廢料棲息地 海龜這座城市 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-BIR02","featured_media":{"alt":null,"id":27852216238179,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35a68d27590e6fa79bd7433e04bbae40c4ee0c0f_8a9317f0-3f7d-4a63-9e23-7d69e3ef650f.webp?v=1784716994"}},"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: "停產" }