$product = {"id":7411216416867,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 爪哇族1-塗鴉藝術","handle":"iphone-14-pro-mod-nx-magsafe-printable-pb35","description":null,"published_at":"2024-06-11T17:39:01+08:00","created_at":"2024-05-04T23:47:09+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 14 Pro","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":41896099577955,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB35","requires_shipping":true,"taxable":true,"featured_image":{"id":31479874584675,"product_id":7411216416867,"position":9,"created_at":"2024-05-04T23:47:30+08:00","updated_at":"2024-05-04T23:47:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/547bd455c057810cd6a43e56b3f6bec8d9db956a_9076acf7-2fdf-4fff-8e13-1c0d749f1ada.webp?v=1714837650","variant_ids":[41896099577955]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 爪哇族1-塗鴉藝術 - 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":"MPB0126224-PB35","featured_media":{"alt":null,"id":23885125058659,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/547bd455c057810cd6a43e56b3f6bec8d9db956a_9076acf7-2fdf-4fff-8e13-1c0d749f1ada.webp?v=1714837650"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41896099643491,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB35","requires_shipping":true,"taxable":true,"featured_image":{"id":31479871930467,"product_id":7411216416867,"position":4,"created_at":"2024-05-04T23:47:18+08:00","updated_at":"2024-05-04T23:47:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20fd51954760c1aac6dc7b53820a04830c89e29d_2fec2e6a-9c85-4e19-94b6-d1bbc0cc9cd3.webp?v=1714837638","variant_ids":[41896099643491]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 爪哇族1-塗鴉藝術 - 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":"MPB0126204-PB35","featured_media":{"alt":null,"id":23885122404451,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20fd51954760c1aac6dc7b53820a04830c89e29d_2fec2e6a-9c85-4e19-94b6-d1bbc0cc9cd3.webp?v=1714837638"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41896099872867,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB35","requires_shipping":true,"taxable":true,"featured_image":{"id":31479873568867,"product_id":7411216416867,"position":7,"created_at":"2024-05-04T23:47:25+08:00","updated_at":"2024-05-04T23:47:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72a07587184f22d8434627b96999fa782154c74a_4fa0486e-3e12-43bf-9b9b-63356b563503.webp?v=1714837645","variant_ids":[41896099872867]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 爪哇族1-塗鴉藝術 - 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":"MPB01262J5-PB35","featured_media":{"alt":null,"id":23885124042851,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72a07587184f22d8434627b96999fa782154c74a_4fa0486e-3e12-43bf-9b9b-63356b563503.webp?v=1714837645"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac01944f881b7706e206d3dabfedf4a43ab4c740_7360e892-8a90-4e61-8ec1-74d56ed7e4b8.webp?v=1714837631","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6c78d55771cf4dbc97f41faf3d259cc6c350b8d_2c547820-cc76-49ff-bca5-faa1398cb2cc.webp?v=1714837633","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3f844f1d89aab0e9057445816a1c6b0c0a55a26_20cbf931-5d75-4af7-9586-939522122dd4.webp?v=1714837636","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20fd51954760c1aac6dc7b53820a04830c89e29d_2fec2e6a-9c85-4e19-94b6-d1bbc0cc9cd3.webp?v=1714837638","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/266d0d5a31ac7cbe6b5df112af8c089d40f89eb3_eb4b5e1e-5627-4147-9d01-feeb323fb9f5.webp?v=1714837640","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b079a92bd809059e21361f9ca309c11237b2130_725ac54e-adc4-404e-bc7d-12f91bd8af29.webp?v=1714837643","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72a07587184f22d8434627b96999fa782154c74a_4fa0486e-3e12-43bf-9b9b-63356b563503.webp?v=1714837645","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b2c5f62df55ee608bc9fc1cd08f432543cd6f03_76f625d8-8f61-46a7-9785-8753e4d5bb47.webp?v=1714837648","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/547bd455c057810cd6a43e56b3f6bec8d9db956a_9076acf7-2fdf-4fff-8e13-1c0d749f1ada.webp?v=1714837650","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87e3ab34df7a3eddc7b0ca7af89c0e7cb70d8fd5_6a5861e2-22b0-4756-88da-bf592013607d.webp?v=1714837652"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac01944f881b7706e206d3dabfedf4a43ab4c740_7360e892-8a90-4e61-8ec1-74d56ed7e4b8.webp?v=1714837631","options":["color"],"media":[{"alt":null,"id":23885120536675,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac01944f881b7706e206d3dabfedf4a43ab4c740_7360e892-8a90-4e61-8ec1-74d56ed7e4b8.webp?v=1714837631"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac01944f881b7706e206d3dabfedf4a43ab4c740_7360e892-8a90-4e61-8ec1-74d56ed7e4b8.webp?v=1714837631","width":2000},{"alt":null,"id":23885121257571,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6c78d55771cf4dbc97f41faf3d259cc6c350b8d_2c547820-cc76-49ff-bca5-faa1398cb2cc.webp?v=1714837633"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6c78d55771cf4dbc97f41faf3d259cc6c350b8d_2c547820-cc76-49ff-bca5-faa1398cb2cc.webp?v=1714837633","width":2000},{"alt":null,"id":23885121847395,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3f844f1d89aab0e9057445816a1c6b0c0a55a26_20cbf931-5d75-4af7-9586-939522122dd4.webp?v=1714837636"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3f844f1d89aab0e9057445816a1c6b0c0a55a26_20cbf931-5d75-4af7-9586-939522122dd4.webp?v=1714837636","width":2000},{"alt":null,"id":23885122404451,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20fd51954760c1aac6dc7b53820a04830c89e29d_2fec2e6a-9c85-4e19-94b6-d1bbc0cc9cd3.webp?v=1714837638"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20fd51954760c1aac6dc7b53820a04830c89e29d_2fec2e6a-9c85-4e19-94b6-d1bbc0cc9cd3.webp?v=1714837638","width":2000},{"alt":null,"id":23885122994275,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/266d0d5a31ac7cbe6b5df112af8c089d40f89eb3_eb4b5e1e-5627-4147-9d01-feeb323fb9f5.webp?v=1714837640"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/266d0d5a31ac7cbe6b5df112af8c089d40f89eb3_eb4b5e1e-5627-4147-9d01-feeb323fb9f5.webp?v=1714837640","width":2000},{"alt":null,"id":23885123387491,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b079a92bd809059e21361f9ca309c11237b2130_725ac54e-adc4-404e-bc7d-12f91bd8af29.webp?v=1714837643"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b079a92bd809059e21361f9ca309c11237b2130_725ac54e-adc4-404e-bc7d-12f91bd8af29.webp?v=1714837643","width":2000},{"alt":null,"id":23885124042851,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72a07587184f22d8434627b96999fa782154c74a_4fa0486e-3e12-43bf-9b9b-63356b563503.webp?v=1714837645"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72a07587184f22d8434627b96999fa782154c74a_4fa0486e-3e12-43bf-9b9b-63356b563503.webp?v=1714837645","width":2000},{"alt":null,"id":23885124567139,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b2c5f62df55ee608bc9fc1cd08f432543cd6f03_76f625d8-8f61-46a7-9785-8753e4d5bb47.webp?v=1714837648"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b2c5f62df55ee608bc9fc1cd08f432543cd6f03_76f625d8-8f61-46a7-9785-8753e4d5bb47.webp?v=1714837648","width":2000},{"alt":null,"id":23885125058659,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/547bd455c057810cd6a43e56b3f6bec8d9db956a_9076acf7-2fdf-4fff-8e13-1c0d749f1ada.webp?v=1714837650"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/547bd455c057810cd6a43e56b3f6bec8d9db956a_9076acf7-2fdf-4fff-8e13-1c0d749f1ada.webp?v=1714837650","width":2000},{"alt":null,"id":23885125681251,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87e3ab34df7a3eddc7b0ca7af89c0e7cb70d8fd5_6a5861e2-22b0-4756-88da-bf592013607d.webp?v=1714837652"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87e3ab34df7a3eddc7b0ca7af89c0e7cb70d8fd5_6a5861e2-22b0-4756-88da-bf592013607d.webp?v=1714837652","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41896099577955,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB35","requires_shipping":true,"taxable":true,"featured_image":{"id":31479874584675,"product_id":7411216416867,"position":9,"created_at":"2024-05-04T23:47:30+08:00","updated_at":"2024-05-04T23:47:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/547bd455c057810cd6a43e56b3f6bec8d9db956a_9076acf7-2fdf-4fff-8e13-1c0d749f1ada.webp?v=1714837650","variant_ids":[41896099577955]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 爪哇族1-塗鴉藝術 - 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":"MPB0126224-PB35","featured_media":{"alt":null,"id":23885125058659,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/547bd455c057810cd6a43e56b3f6bec8d9db956a_9076acf7-2fdf-4fff-8e13-1c0d749f1ada.webp?v=1714837650"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41896099643491,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB35","requires_shipping":true,"taxable":true,"featured_image":{"id":31479871930467,"product_id":7411216416867,"position":4,"created_at":"2024-05-04T23:47:18+08:00","updated_at":"2024-05-04T23:47:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20fd51954760c1aac6dc7b53820a04830c89e29d_2fec2e6a-9c85-4e19-94b6-d1bbc0cc9cd3.webp?v=1714837638","variant_ids":[41896099643491]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 爪哇族1-塗鴉藝術 - 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":"MPB0126204-PB35","featured_media":{"alt":null,"id":23885122404451,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20fd51954760c1aac6dc7b53820a04830c89e29d_2fec2e6a-9c85-4e19-94b6-d1bbc0cc9cd3.webp?v=1714837638"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41896099872867,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB35","requires_shipping":true,"taxable":true,"featured_image":{"id":31479873568867,"product_id":7411216416867,"position":7,"created_at":"2024-05-04T23:47:25+08:00","updated_at":"2024-05-04T23:47:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72a07587184f22d8434627b96999fa782154c74a_4fa0486e-3e12-43bf-9b9b-63356b563503.webp?v=1714837645","variant_ids":[41896099872867]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 爪哇族1-塗鴉藝術 - 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":"MPB01262J5-PB35","featured_media":{"alt":null,"id":23885124042851,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72a07587184f22d8434627b96999fa782154c74a_4fa0486e-3e12-43bf-9b9b-63356b563503.webp?v=1714837645"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41896099577955,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB35","requires_shipping":true,"taxable":true,"featured_image":{"id":31479874584675,"product_id":7411216416867,"position":9,"created_at":"2024-05-04T23:47:30+08:00","updated_at":"2024-05-04T23:47:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/547bd455c057810cd6a43e56b3f6bec8d9db956a_9076acf7-2fdf-4fff-8e13-1c0d749f1ada.webp?v=1714837650","variant_ids":[41896099577955]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 爪哇族1-塗鴉藝術 - 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":"MPB0126224-PB35","featured_media":{"alt":null,"id":23885125058659,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/547bd455c057810cd6a43e56b3f6bec8d9db956a_9076acf7-2fdf-4fff-8e13-1c0d749f1ada.webp?v=1714837650"}},"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: "停產" }