$product = {"id":7407870050403,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 波巴費特-噴漆白","handle":"iphone-14-pro-mod-nx-printable-pb06","description":null,"published_at":"2024-06-11T16:25:08+08:00","created_at":"2024-05-03T11:06:15+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 14 Pro","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":41879869259875,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31470581383267,"product_id":7407870050403,"position":8,"created_at":"2024-05-03T11:06:34+08:00","updated_at":"2024-05-03T11:06:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b55d8da1faee3c7b4b8b00775d8ea13997c77d17_deee40d8-bd56-49ce-8b56-8422d7c84791.webp?v=1714705594","variant_ids":[41879869259875]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0126224-PB06","featured_media":{"alt":null,"id":23875485270115,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b55d8da1faee3c7b4b8b00775d8ea13997c77d17_deee40d8-bd56-49ce-8b56-8422d7c84791.webp?v=1714705594"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41879869325411,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31470578827363,"product_id":7407870050403,"position":3,"created_at":"2024-05-03T11:06:22+08:00","updated_at":"2024-05-03T11:06:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/506c2a1270a461d87dff7848a6315139ec5bc740_f1aa7150-b9be-47ec-a7c2-98d3c740ec74.webp?v=1714705582","variant_ids":[41879869325411]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0126204-PB06","featured_media":{"alt":null,"id":23875482681443,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/506c2a1270a461d87dff7848a6315139ec5bc740_f1aa7150-b9be-47ec-a7c2-98d3c740ec74.webp?v=1714705582"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41879869587555,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31470579351651,"product_id":7407870050403,"position":4,"created_at":"2024-05-03T11:06:25+08:00","updated_at":"2024-05-03T11:06:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88fe1be02e17e287938c01d5a18299dcb622b163_90f1f772-e967-4abd-893b-a5d4978de6da.webp?v=1714705585","variant_ids":[41879869587555]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB01262J5-PB06","featured_media":{"alt":null,"id":23875483205731,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88fe1be02e17e287938c01d5a18299dcb622b163_90f1f772-e967-4abd-893b-a5d4978de6da.webp?v=1714705585"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/936838a2c581c16cfd14eda62e5c3b9caba8f419_9cb5eceb-8a00-4336-906b-7eff5d93d2c1.webp?v=1714705578","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0d93d5a0a4d2239e02f55636d1930d77c862308_26f61e31-883c-405b-bf0a-78d3d032ec01.webp?v=1714705580","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/506c2a1270a461d87dff7848a6315139ec5bc740_f1aa7150-b9be-47ec-a7c2-98d3c740ec74.webp?v=1714705582","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88fe1be02e17e287938c01d5a18299dcb622b163_90f1f772-e967-4abd-893b-a5d4978de6da.webp?v=1714705585","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0110d954298daba425ed8e1eccec7d514b3e05c7_9b8f7ebf-87a3-4dd3-b717-2030ae61b390.webp?v=1714705587","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e04ba9a4e66a4af05c1ebe8e76f4b23d99d99b4_e3499255-3db2-4084-84eb-e85b46a56d49.webp?v=1714705590","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04ca6184b08b769cfb079886c96bb15ade9e656c_54afb245-a9a8-4e05-a896-df9b572d3b1f.webp?v=1714705592","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b55d8da1faee3c7b4b8b00775d8ea13997c77d17_deee40d8-bd56-49ce-8b56-8422d7c84791.webp?v=1714705594","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2f085a394888bd116920e6a0b226dc2c9b3207b_390482b6-a766-4212-9db1-b46c1eb8af30.webp?v=1714705597","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bbe53b2e598bb1446e47e8a972117c46eba4cfd_34dcda8d-fdaf-4533-a823-6bc3ea4d94f7.webp?v=1714705599"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/936838a2c581c16cfd14eda62e5c3b9caba8f419_9cb5eceb-8a00-4336-906b-7eff5d93d2c1.webp?v=1714705578","options":["color"],"media":[{"alt":null,"id":23875481763939,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/936838a2c581c16cfd14eda62e5c3b9caba8f419_9cb5eceb-8a00-4336-906b-7eff5d93d2c1.webp?v=1714705578"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/936838a2c581c16cfd14eda62e5c3b9caba8f419_9cb5eceb-8a00-4336-906b-7eff5d93d2c1.webp?v=1714705578","width":2000},{"alt":null,"id":23875482222691,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0d93d5a0a4d2239e02f55636d1930d77c862308_26f61e31-883c-405b-bf0a-78d3d032ec01.webp?v=1714705580"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0d93d5a0a4d2239e02f55636d1930d77c862308_26f61e31-883c-405b-bf0a-78d3d032ec01.webp?v=1714705580","width":2000},{"alt":null,"id":23875482681443,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/506c2a1270a461d87dff7848a6315139ec5bc740_f1aa7150-b9be-47ec-a7c2-98d3c740ec74.webp?v=1714705582"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/506c2a1270a461d87dff7848a6315139ec5bc740_f1aa7150-b9be-47ec-a7c2-98d3c740ec74.webp?v=1714705582","width":2000},{"alt":null,"id":23875483205731,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88fe1be02e17e287938c01d5a18299dcb622b163_90f1f772-e967-4abd-893b-a5d4978de6da.webp?v=1714705585"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88fe1be02e17e287938c01d5a18299dcb622b163_90f1f772-e967-4abd-893b-a5d4978de6da.webp?v=1714705585","width":2000},{"alt":null,"id":23875483697251,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0110d954298daba425ed8e1eccec7d514b3e05c7_9b8f7ebf-87a3-4dd3-b717-2030ae61b390.webp?v=1714705587"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0110d954298daba425ed8e1eccec7d514b3e05c7_9b8f7ebf-87a3-4dd3-b717-2030ae61b390.webp?v=1714705587","width":2000},{"alt":null,"id":23875484319843,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e04ba9a4e66a4af05c1ebe8e76f4b23d99d99b4_e3499255-3db2-4084-84eb-e85b46a56d49.webp?v=1714705590"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e04ba9a4e66a4af05c1ebe8e76f4b23d99d99b4_e3499255-3db2-4084-84eb-e85b46a56d49.webp?v=1714705590","width":2000},{"alt":null,"id":23875484778595,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04ca6184b08b769cfb079886c96bb15ade9e656c_54afb245-a9a8-4e05-a896-df9b572d3b1f.webp?v=1714705592"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04ca6184b08b769cfb079886c96bb15ade9e656c_54afb245-a9a8-4e05-a896-df9b572d3b1f.webp?v=1714705592","width":2000},{"alt":null,"id":23875485270115,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b55d8da1faee3c7b4b8b00775d8ea13997c77d17_deee40d8-bd56-49ce-8b56-8422d7c84791.webp?v=1714705594"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b55d8da1faee3c7b4b8b00775d8ea13997c77d17_deee40d8-bd56-49ce-8b56-8422d7c84791.webp?v=1714705594","width":2000},{"alt":null,"id":23875485696099,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2f085a394888bd116920e6a0b226dc2c9b3207b_390482b6-a766-4212-9db1-b46c1eb8af30.webp?v=1714705597"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2f085a394888bd116920e6a0b226dc2c9b3207b_390482b6-a766-4212-9db1-b46c1eb8af30.webp?v=1714705597","width":2000},{"alt":null,"id":23875486056547,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bbe53b2e598bb1446e47e8a972117c46eba4cfd_34dcda8d-fdaf-4533-a823-6bc3ea4d94f7.webp?v=1714705599"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bbe53b2e598bb1446e47e8a972117c46eba4cfd_34dcda8d-fdaf-4533-a823-6bc3ea4d94f7.webp?v=1714705599","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":41879869259875,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31470581383267,"product_id":7407870050403,"position":8,"created_at":"2024-05-03T11:06:34+08:00","updated_at":"2024-05-03T11:06:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b55d8da1faee3c7b4b8b00775d8ea13997c77d17_deee40d8-bd56-49ce-8b56-8422d7c84791.webp?v=1714705594","variant_ids":[41879869259875]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0126224-PB06","featured_media":{"alt":null,"id":23875485270115,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b55d8da1faee3c7b4b8b00775d8ea13997c77d17_deee40d8-bd56-49ce-8b56-8422d7c84791.webp?v=1714705594"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41879869325411,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31470578827363,"product_id":7407870050403,"position":3,"created_at":"2024-05-03T11:06:22+08:00","updated_at":"2024-05-03T11:06:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/506c2a1270a461d87dff7848a6315139ec5bc740_f1aa7150-b9be-47ec-a7c2-98d3c740ec74.webp?v=1714705582","variant_ids":[41879869325411]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0126204-PB06","featured_media":{"alt":null,"id":23875482681443,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/506c2a1270a461d87dff7848a6315139ec5bc740_f1aa7150-b9be-47ec-a7c2-98d3c740ec74.webp?v=1714705582"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41879869587555,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31470579351651,"product_id":7407870050403,"position":4,"created_at":"2024-05-03T11:06:25+08:00","updated_at":"2024-05-03T11:06:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88fe1be02e17e287938c01d5a18299dcb622b163_90f1f772-e967-4abd-893b-a5d4978de6da.webp?v=1714705585","variant_ids":[41879869587555]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB01262J5-PB06","featured_media":{"alt":null,"id":23875483205731,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88fe1be02e17e287938c01d5a18299dcb622b163_90f1f772-e967-4abd-893b-a5d4978de6da.webp?v=1714705585"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41879869259875,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31470581383267,"product_id":7407870050403,"position":8,"created_at":"2024-05-03T11:06:34+08:00","updated_at":"2024-05-03T11:06:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b55d8da1faee3c7b4b8b00775d8ea13997c77d17_deee40d8-bd56-49ce-8b56-8422d7c84791.webp?v=1714705594","variant_ids":[41879869259875]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0126224-PB06","featured_media":{"alt":null,"id":23875485270115,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b55d8da1faee3c7b4b8b00775d8ea13997c77d17_deee40d8-bd56-49ce-8b56-8422d7c84791.webp?v=1714705594"}},"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: "停產" }