$product = {"id":7414170124387,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章1-潮流系列","handle":"iphone-13-mini-mod-nx-magsafe-printable-pb46","description":null,"published_at":"2024-06-11T17:49:35+08:00","created_at":"2024-05-05T14:14:03+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":41904583901283,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB46","requires_shipping":true,"taxable":true,"featured_image":{"id":31484833169507,"product_id":7414170124387,"position":8,"created_at":"2024-05-05T14:14:21+08:00","updated_at":"2024-05-05T14:14:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26ac5abb8c399b8b897627d721a10cd98606e49c_a08673f7-8735-4003-86e3-c90245e077e6.webp?v=1714889661","variant_ids":[41904583901283]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章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":"MPB0122824-PB46","featured_media":{"alt":null,"id":23890129354851,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26ac5abb8c399b8b897627d721a10cd98606e49c_a08673f7-8735-4003-86e3-c90245e077e6.webp?v=1714889661"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904584032355,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB46","requires_shipping":true,"taxable":true,"featured_image":{"id":31484831170659,"product_id":7414170124387,"position":7,"created_at":"2024-05-05T14:14:19+08:00","updated_at":"2024-05-05T14:14:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d977a3ec3c0fc3e10e7189d9d5f73dc84de77679_68abd05a-274c-4719-a618-7a5a2f6cbedd.webp?v=1714889659","variant_ids":[41904584032355]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章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":"MPB0122804-PB46","featured_media":{"alt":null,"id":23890127192163,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d977a3ec3c0fc3e10e7189d9d5f73dc84de77679_68abd05a-274c-4719-a618-7a5a2f6cbedd.webp?v=1714889659"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904584261731,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB46","requires_shipping":true,"taxable":true,"featured_image":{"id":31484823339107,"product_id":7414170124387,"position":2,"created_at":"2024-05-05T14:14:07+08:00","updated_at":"2024-05-05T14:14:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fb46a95b7b06f2b83f6b57331495a0aae580d3d_e2176568-c775-4bf0-83f6-b8a812e672ab.webp?v=1714889647","variant_ids":[41904584261731]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章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":"MPB01228J5-PB46","featured_media":{"alt":null,"id":23890118705251,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fb46a95b7b06f2b83f6b57331495a0aae580d3d_e2176568-c775-4bf0-83f6-b8a812e672ab.webp?v=1714889647"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ae8497f75b5cac2a019e2b64ebca80e08a8f477_9868fadd-8c8c-4085-8674-c98f10a6f1cc.webp?v=1714889645","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fb46a95b7b06f2b83f6b57331495a0aae580d3d_e2176568-c775-4bf0-83f6-b8a812e672ab.webp?v=1714889647","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d124f07c5512c6c059360356e50da299ab4410ad_17f56b6d-990e-4162-8c30-d53efdf74bee.webp?v=1714889650","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb0f3f7566d6e95e238f7a467ffa356cbb41228b_83145c58-6b8d-480f-b4a2-5660e9f63012.webp?v=1714889652","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39294c3fd1ebd54404b86a51287aefc5428db09c_fe67db3d-5351-4a18-a4db-ce94a1fff2ed.webp?v=1714889654","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b78c214ab4d250f6f27f7411ffb278bd964b1e39_d61c22c4-9e1d-4d7f-a2cf-219ea79db5e2.webp?v=1714889656","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d977a3ec3c0fc3e10e7189d9d5f73dc84de77679_68abd05a-274c-4719-a618-7a5a2f6cbedd.webp?v=1714889659","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26ac5abb8c399b8b897627d721a10cd98606e49c_a08673f7-8735-4003-86e3-c90245e077e6.webp?v=1714889661","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77f822aa8c2f6e58f9de45c1f1dd4687e6fc111a_9ccabf22-a80e-46cd-937c-38ed9a07768f.webp?v=1714889663","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca13a56998fcd1081f7fe27e692fae36a5f45640_c4c866fd-0d99-4d16-adb2-b969f39bde6e.webp?v=1714889666"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ae8497f75b5cac2a019e2b64ebca80e08a8f477_9868fadd-8c8c-4085-8674-c98f10a6f1cc.webp?v=1714889645","options":["color"],"media":[{"alt":null,"id":23890117099619,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ae8497f75b5cac2a019e2b64ebca80e08a8f477_9868fadd-8c8c-4085-8674-c98f10a6f1cc.webp?v=1714889645"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ae8497f75b5cac2a019e2b64ebca80e08a8f477_9868fadd-8c8c-4085-8674-c98f10a6f1cc.webp?v=1714889645","width":2000},{"alt":null,"id":23890118705251,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fb46a95b7b06f2b83f6b57331495a0aae580d3d_e2176568-c775-4bf0-83f6-b8a812e672ab.webp?v=1714889647"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fb46a95b7b06f2b83f6b57331495a0aae580d3d_e2176568-c775-4bf0-83f6-b8a812e672ab.webp?v=1714889647","width":2000},{"alt":null,"id":23890120343651,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d124f07c5512c6c059360356e50da299ab4410ad_17f56b6d-990e-4162-8c30-d53efdf74bee.webp?v=1714889650"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d124f07c5512c6c059360356e50da299ab4410ad_17f56b6d-990e-4162-8c30-d53efdf74bee.webp?v=1714889650","width":2000},{"alt":null,"id":23890122309731,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb0f3f7566d6e95e238f7a467ffa356cbb41228b_83145c58-6b8d-480f-b4a2-5660e9f63012.webp?v=1714889652"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb0f3f7566d6e95e238f7a467ffa356cbb41228b_83145c58-6b8d-480f-b4a2-5660e9f63012.webp?v=1714889652","width":2000},{"alt":null,"id":23890123489379,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39294c3fd1ebd54404b86a51287aefc5428db09c_fe67db3d-5351-4a18-a4db-ce94a1fff2ed.webp?v=1714889654"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39294c3fd1ebd54404b86a51287aefc5428db09c_fe67db3d-5351-4a18-a4db-ce94a1fff2ed.webp?v=1714889654","width":2000},{"alt":null,"id":23890125422691,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b78c214ab4d250f6f27f7411ffb278bd964b1e39_d61c22c4-9e1d-4d7f-a2cf-219ea79db5e2.webp?v=1714889656"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b78c214ab4d250f6f27f7411ffb278bd964b1e39_d61c22c4-9e1d-4d7f-a2cf-219ea79db5e2.webp?v=1714889656","width":2000},{"alt":null,"id":23890127192163,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d977a3ec3c0fc3e10e7189d9d5f73dc84de77679_68abd05a-274c-4719-a618-7a5a2f6cbedd.webp?v=1714889659"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d977a3ec3c0fc3e10e7189d9d5f73dc84de77679_68abd05a-274c-4719-a618-7a5a2f6cbedd.webp?v=1714889659","width":2000},{"alt":null,"id":23890129354851,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26ac5abb8c399b8b897627d721a10cd98606e49c_a08673f7-8735-4003-86e3-c90245e077e6.webp?v=1714889661"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26ac5abb8c399b8b897627d721a10cd98606e49c_a08673f7-8735-4003-86e3-c90245e077e6.webp?v=1714889661","width":2000},{"alt":null,"id":23890131058787,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77f822aa8c2f6e58f9de45c1f1dd4687e6fc111a_9ccabf22-a80e-46cd-937c-38ed9a07768f.webp?v=1714889663"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77f822aa8c2f6e58f9de45c1f1dd4687e6fc111a_9ccabf22-a80e-46cd-937c-38ed9a07768f.webp?v=1714889663","width":2000},{"alt":null,"id":23890132828259,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca13a56998fcd1081f7fe27e692fae36a5f45640_c4c866fd-0d99-4d16-adb2-b969f39bde6e.webp?v=1714889666"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca13a56998fcd1081f7fe27e692fae36a5f45640_c4c866fd-0d99-4d16-adb2-b969f39bde6e.webp?v=1714889666","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41904583901283,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB46","requires_shipping":true,"taxable":true,"featured_image":{"id":31484833169507,"product_id":7414170124387,"position":8,"created_at":"2024-05-05T14:14:21+08:00","updated_at":"2024-05-05T14:14:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26ac5abb8c399b8b897627d721a10cd98606e49c_a08673f7-8735-4003-86e3-c90245e077e6.webp?v=1714889661","variant_ids":[41904583901283]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章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":"MPB0122824-PB46","featured_media":{"alt":null,"id":23890129354851,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26ac5abb8c399b8b897627d721a10cd98606e49c_a08673f7-8735-4003-86e3-c90245e077e6.webp?v=1714889661"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904584032355,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB46","requires_shipping":true,"taxable":true,"featured_image":{"id":31484831170659,"product_id":7414170124387,"position":7,"created_at":"2024-05-05T14:14:19+08:00","updated_at":"2024-05-05T14:14:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d977a3ec3c0fc3e10e7189d9d5f73dc84de77679_68abd05a-274c-4719-a618-7a5a2f6cbedd.webp?v=1714889659","variant_ids":[41904584032355]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章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":"MPB0122804-PB46","featured_media":{"alt":null,"id":23890127192163,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d977a3ec3c0fc3e10e7189d9d5f73dc84de77679_68abd05a-274c-4719-a618-7a5a2f6cbedd.webp?v=1714889659"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904584261731,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB46","requires_shipping":true,"taxable":true,"featured_image":{"id":31484823339107,"product_id":7414170124387,"position":2,"created_at":"2024-05-05T14:14:07+08:00","updated_at":"2024-05-05T14:14:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fb46a95b7b06f2b83f6b57331495a0aae580d3d_e2176568-c775-4bf0-83f6-b8a812e672ab.webp?v=1714889647","variant_ids":[41904584261731]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章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":"MPB01228J5-PB46","featured_media":{"alt":null,"id":23890118705251,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fb46a95b7b06f2b83f6b57331495a0aae580d3d_e2176568-c775-4bf0-83f6-b8a812e672ab.webp?v=1714889647"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41904583901283,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB46","requires_shipping":true,"taxable":true,"featured_image":{"id":31484833169507,"product_id":7414170124387,"position":8,"created_at":"2024-05-05T14:14:21+08:00","updated_at":"2024-05-05T14:14:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26ac5abb8c399b8b897627d721a10cd98606e49c_a08673f7-8735-4003-86e3-c90245e077e6.webp?v=1714889661","variant_ids":[41904583901283]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章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":"MPB0122824-PB46","featured_media":{"alt":null,"id":23890129354851,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26ac5abb8c399b8b897627d721a10cd98606e49c_a08673f7-8735-4003-86e3-c90245e077e6.webp?v=1714889661"}},"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: "停產" }