$product = {"id":7408021536867,"title":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-日文字系列","handle":"iphone-13-mini-mod-nx-printable-pb62","description":null,"published_at":"2024-06-11T16:29:18+08:00","created_at":"2024-05-03T11:43:01+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 13 mini","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-star-wars","Top50","type-Mod NX Printable"],"price":90000,"price_min":90000,"price_max":90000,"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":41881804800099,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB62","requires_shipping":true,"taxable":true,"featured_image":{"id":31470989967459,"product_id":7408021536867,"position":1,"created_at":"2024-05-03T11:43:04+08:00","updated_at":"2024-05-03T11:43:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84415da0e8d246bda747f4ad2eaa3b134a2e1ccb_e3c5ed00-e86a-4b3e-ab84-3e52f4a649fa.webp?v=1714707784","variant_ids":[41881804800099]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-日文字系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0122824-PB62","featured_media":{"alt":null,"id":23875894902883,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84415da0e8d246bda747f4ad2eaa3b134a2e1ccb_e3c5ed00-e86a-4b3e-ab84-3e52f4a649fa.webp?v=1714707784"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881804865635,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB62","requires_shipping":true,"taxable":true,"featured_image":{"id":31470991442019,"product_id":7408021536867,"position":4,"created_at":"2024-05-03T11:43:11+08:00","updated_at":"2024-05-03T11:43:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/535c33c18acc7f63857238c294f3f847c8b029bd_edf2f011-cf70-48bc-9e17-c639854aec0f.webp?v=1714707791","variant_ids":[41881804865635]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-日文字系列 - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0122804-PB62","featured_media":{"alt":null,"id":23875896377443,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/535c33c18acc7f63857238c294f3f847c8b029bd_edf2f011-cf70-48bc-9e17-c639854aec0f.webp?v=1714707791"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881805095011,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB62","requires_shipping":true,"taxable":true,"featured_image":{"id":31470992883811,"product_id":7408021536867,"position":7,"created_at":"2024-05-03T11:43:18+08:00","updated_at":"2024-05-03T11:43:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9dc871a4ad93d8a62aac21e4742c3f86a15c24c_3ac17ec4-d016-489d-9664-7bfaa72605b7.webp?v=1714707798","variant_ids":[41881805095011]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-日文字系列 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01228J5-PB62","featured_media":{"alt":null,"id":23875897819235,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9dc871a4ad93d8a62aac21e4742c3f86a15c24c_3ac17ec4-d016-489d-9664-7bfaa72605b7.webp?v=1714707798"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84415da0e8d246bda747f4ad2eaa3b134a2e1ccb_e3c5ed00-e86a-4b3e-ab84-3e52f4a649fa.webp?v=1714707784","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1948e7497c2c31504d38414b07dd5d71a737c9c3_84ec1b36-4ee9-4113-99e9-3df90527f35c.webp?v=1714707786","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65574ccbdd48c22f0a8b703fa8ea7e686ae1b9a9_6540c4db-9700-4a5c-8304-e8c595548978.webp?v=1714707789","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/535c33c18acc7f63857238c294f3f847c8b029bd_edf2f011-cf70-48bc-9e17-c639854aec0f.webp?v=1714707791","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e606196ae0ce76b3cdfa24bd5a0cd56f7110d87_373a743e-6484-4838-b546-6de289252a79.webp?v=1714707793","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67b88aedaafd1b95c1f007bc8bd8a884c3e8677a_e018143c-0fb0-4b47-9ddb-5dc070842368.webp?v=1714707796","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9dc871a4ad93d8a62aac21e4742c3f86a15c24c_3ac17ec4-d016-489d-9664-7bfaa72605b7.webp?v=1714707798","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0c83ce60399c289ab87966261e09f33af8d7be0_cb3f0f51-2fdb-454e-b0ee-574eb6e9db24.webp?v=1714707801","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0622c4134ac10e30cd97eb1cb4a80e4c8c33cbd2_0f93744a-a907-4148-8140-476a7c6c2925.webp?v=1714707804","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/279c35c064a9a25feb962aaadbc9b676997b78e7_e04ec2a4-4b54-4313-bc23-50128b88355b.webp?v=1714707806"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84415da0e8d246bda747f4ad2eaa3b134a2e1ccb_e3c5ed00-e86a-4b3e-ab84-3e52f4a649fa.webp?v=1714707784","options":["color"],"media":[{"alt":null,"id":23875894902883,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84415da0e8d246bda747f4ad2eaa3b134a2e1ccb_e3c5ed00-e86a-4b3e-ab84-3e52f4a649fa.webp?v=1714707784"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84415da0e8d246bda747f4ad2eaa3b134a2e1ccb_e3c5ed00-e86a-4b3e-ab84-3e52f4a649fa.webp?v=1714707784","width":2000},{"alt":null,"id":23875895394403,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1948e7497c2c31504d38414b07dd5d71a737c9c3_84ec1b36-4ee9-4113-99e9-3df90527f35c.webp?v=1714707786"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1948e7497c2c31504d38414b07dd5d71a737c9c3_84ec1b36-4ee9-4113-99e9-3df90527f35c.webp?v=1714707786","width":2000},{"alt":null,"id":23875895918691,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65574ccbdd48c22f0a8b703fa8ea7e686ae1b9a9_6540c4db-9700-4a5c-8304-e8c595548978.webp?v=1714707789"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65574ccbdd48c22f0a8b703fa8ea7e686ae1b9a9_6540c4db-9700-4a5c-8304-e8c595548978.webp?v=1714707789","width":2000},{"alt":null,"id":23875896377443,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/535c33c18acc7f63857238c294f3f847c8b029bd_edf2f011-cf70-48bc-9e17-c639854aec0f.webp?v=1714707791"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/535c33c18acc7f63857238c294f3f847c8b029bd_edf2f011-cf70-48bc-9e17-c639854aec0f.webp?v=1714707791","width":2000},{"alt":null,"id":23875896836195,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e606196ae0ce76b3cdfa24bd5a0cd56f7110d87_373a743e-6484-4838-b546-6de289252a79.webp?v=1714707793"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e606196ae0ce76b3cdfa24bd5a0cd56f7110d87_373a743e-6484-4838-b546-6de289252a79.webp?v=1714707793","width":2000},{"alt":null,"id":23875897426019,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67b88aedaafd1b95c1f007bc8bd8a884c3e8677a_e018143c-0fb0-4b47-9ddb-5dc070842368.webp?v=1714707796"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67b88aedaafd1b95c1f007bc8bd8a884c3e8677a_e018143c-0fb0-4b47-9ddb-5dc070842368.webp?v=1714707796","width":2000},{"alt":null,"id":23875897819235,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9dc871a4ad93d8a62aac21e4742c3f86a15c24c_3ac17ec4-d016-489d-9664-7bfaa72605b7.webp?v=1714707798"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9dc871a4ad93d8a62aac21e4742c3f86a15c24c_3ac17ec4-d016-489d-9664-7bfaa72605b7.webp?v=1714707798","width":2000},{"alt":null,"id":23875898277987,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0c83ce60399c289ab87966261e09f33af8d7be0_cb3f0f51-2fdb-454e-b0ee-574eb6e9db24.webp?v=1714707801"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0c83ce60399c289ab87966261e09f33af8d7be0_cb3f0f51-2fdb-454e-b0ee-574eb6e9db24.webp?v=1714707801","width":2000},{"alt":null,"id":23875899392099,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0622c4134ac10e30cd97eb1cb4a80e4c8c33cbd2_0f93744a-a907-4148-8140-476a7c6c2925.webp?v=1714707804"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0622c4134ac10e30cd97eb1cb4a80e4c8c33cbd2_0f93744a-a907-4148-8140-476a7c6c2925.webp?v=1714707804","width":2000},{"alt":null,"id":23875899850851,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/279c35c064a9a25feb962aaadbc9b676997b78e7_e04ec2a4-4b54-4313-bc23-50128b88355b.webp?v=1714707806"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/279c35c064a9a25feb962aaadbc9b676997b78e7_e04ec2a4-4b54-4313-bc23-50128b88355b.webp?v=1714707806","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41881804800099,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB62","requires_shipping":true,"taxable":true,"featured_image":{"id":31470989967459,"product_id":7408021536867,"position":1,"created_at":"2024-05-03T11:43:04+08:00","updated_at":"2024-05-03T11:43:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84415da0e8d246bda747f4ad2eaa3b134a2e1ccb_e3c5ed00-e86a-4b3e-ab84-3e52f4a649fa.webp?v=1714707784","variant_ids":[41881804800099]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-日文字系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0122824-PB62","featured_media":{"alt":null,"id":23875894902883,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84415da0e8d246bda747f4ad2eaa3b134a2e1ccb_e3c5ed00-e86a-4b3e-ab84-3e52f4a649fa.webp?v=1714707784"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881804865635,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB62","requires_shipping":true,"taxable":true,"featured_image":{"id":31470991442019,"product_id":7408021536867,"position":4,"created_at":"2024-05-03T11:43:11+08:00","updated_at":"2024-05-03T11:43:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/535c33c18acc7f63857238c294f3f847c8b029bd_edf2f011-cf70-48bc-9e17-c639854aec0f.webp?v=1714707791","variant_ids":[41881804865635]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-日文字系列 - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0122804-PB62","featured_media":{"alt":null,"id":23875896377443,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/535c33c18acc7f63857238c294f3f847c8b029bd_edf2f011-cf70-48bc-9e17-c639854aec0f.webp?v=1714707791"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881805095011,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB62","requires_shipping":true,"taxable":true,"featured_image":{"id":31470992883811,"product_id":7408021536867,"position":7,"created_at":"2024-05-03T11:43:18+08:00","updated_at":"2024-05-03T11:43:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9dc871a4ad93d8a62aac21e4742c3f86a15c24c_3ac17ec4-d016-489d-9664-7bfaa72605b7.webp?v=1714707798","variant_ids":[41881805095011]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-日文字系列 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01228J5-PB62","featured_media":{"alt":null,"id":23875897819235,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9dc871a4ad93d8a62aac21e4742c3f86a15c24c_3ac17ec4-d016-489d-9664-7bfaa72605b7.webp?v=1714707798"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41881804800099,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB62","requires_shipping":true,"taxable":true,"featured_image":{"id":31470989967459,"product_id":7408021536867,"position":1,"created_at":"2024-05-03T11:43:04+08:00","updated_at":"2024-05-03T11:43:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84415da0e8d246bda747f4ad2eaa3b134a2e1ccb_e3c5ed00-e86a-4b3e-ab84-3e52f4a649fa.webp?v=1714707784","variant_ids":[41881804800099]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-日文字系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0122824-PB62","featured_media":{"alt":null,"id":23875894902883,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84415da0e8d246bda747f4ad2eaa3b134a2e1ccb_e3c5ed00-e86a-4b3e-ab84-3e52f4a649fa.webp?v=1714707784"}},"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: "停產" }