$product = {"id":7411394642019,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 風暴兵\u0026光劍-潮流系列","handle":"iphone-14-pro-mod-nx-magsafe-printable-pb44","description":null,"published_at":"2024-06-11T17:43:47+08:00","created_at":"2024-05-05T00:21:27+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":41898339696739,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB44","requires_shipping":true,"taxable":true,"featured_image":{"id":31480317640803,"product_id":7411394642019,"position":1,"created_at":"2024-05-05T00:21:29+08:00","updated_at":"2024-05-05T00:21:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2f99e49f6ad4a345209614d5bff29d6052c8718_c0919d78-1a1e-444b-aa1d-2634cfe6ea86.webp?v=1714839689","variant_ids":[41898339696739]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 風暴兵\u0026光劍-潮流系列 - 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-PB44","featured_media":{"alt":null,"id":23885569163363,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2f99e49f6ad4a345209614d5bff29d6052c8718_c0919d78-1a1e-444b-aa1d-2634cfe6ea86.webp?v=1714839689"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898339762275,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB44","requires_shipping":true,"taxable":true,"featured_image":{"id":31480319737955,"product_id":7411394642019,"position":5,"created_at":"2024-05-05T00:21:39+08:00","updated_at":"2024-05-05T00:21:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11bf79d2f0e0313781f6f3ccdea1f588579356dc_658812da-862d-45fe-841b-c2a2b6254e54.webp?v=1714839699","variant_ids":[41898339762275]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 風暴兵\u0026光劍-潮流系列 - 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-PB44","featured_media":{"alt":null,"id":23885571293283,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11bf79d2f0e0313781f6f3ccdea1f588579356dc_658812da-862d-45fe-841b-c2a2b6254e54.webp?v=1714839699"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898340024419,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB44","requires_shipping":true,"taxable":true,"featured_image":{"id":31480321835107,"product_id":7411394642019,"position":9,"created_at":"2024-05-05T00:21:49+08:00","updated_at":"2024-05-05T00:21:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a879c8f802c637bc834214dc6b2c47d6ad405d5_a7a1acf7-3ead-4afe-8de0-d7fa8860472b.webp?v=1714839709","variant_ids":[41898340024419]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 風暴兵\u0026光劍-潮流系列 - 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-PB44","featured_media":{"alt":null,"id":23885573390435,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a879c8f802c637bc834214dc6b2c47d6ad405d5_a7a1acf7-3ead-4afe-8de0-d7fa8860472b.webp?v=1714839709"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2f99e49f6ad4a345209614d5bff29d6052c8718_c0919d78-1a1e-444b-aa1d-2634cfe6ea86.webp?v=1714839689","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e2214264d9e24949b99d71d21a6832e8b586887_e62ef338-49e0-42b3-941e-24c5e2009bb7.webp?v=1714839692","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/767e1e4c68398a9d3e4b0c62da14f702350f1c10_4ccaf05f-7acd-4d2a-8d81-b601675c6b52.webp?v=1714839694","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d710931750fb56d9a08af24be6509005f6dbc72_88834a7c-04a3-4337-b061-e07a19a89734.webp?v=1714839697","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11bf79d2f0e0313781f6f3ccdea1f588579356dc_658812da-862d-45fe-841b-c2a2b6254e54.webp?v=1714839699","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23bdc00a6e6857652b5e259a8df0fe0c62da915b_d2dfc442-fe61-411d-8189-aa9a53176ecb.webp?v=1714839702","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e003e678d9ecf2be4c8614a8b2b45ebbcac46d1_17f81413-ee81-49a9-95c9-ea069ec6b0dc.webp?v=1714839704","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cba289807a78b51c6e817fa574c71197bc08e37_17c0cd92-e939-482a-beef-d961307c5de4.webp?v=1714839707","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a879c8f802c637bc834214dc6b2c47d6ad405d5_a7a1acf7-3ead-4afe-8de0-d7fa8860472b.webp?v=1714839709","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/907e2798d04251b7de59c3eda1c3577b0cba85c1_91d067b7-65f2-4e85-9abc-b03bfae3982f.webp?v=1714839711"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2f99e49f6ad4a345209614d5bff29d6052c8718_c0919d78-1a1e-444b-aa1d-2634cfe6ea86.webp?v=1714839689","options":["color"],"media":[{"alt":null,"id":23885569163363,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2f99e49f6ad4a345209614d5bff29d6052c8718_c0919d78-1a1e-444b-aa1d-2634cfe6ea86.webp?v=1714839689"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2f99e49f6ad4a345209614d5bff29d6052c8718_c0919d78-1a1e-444b-aa1d-2634cfe6ea86.webp?v=1714839689","width":2000},{"alt":null,"id":23885569785955,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e2214264d9e24949b99d71d21a6832e8b586887_e62ef338-49e0-42b3-941e-24c5e2009bb7.webp?v=1714839692"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e2214264d9e24949b99d71d21a6832e8b586887_e62ef338-49e0-42b3-941e-24c5e2009bb7.webp?v=1714839692","width":2000},{"alt":null,"id":23885570310243,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/767e1e4c68398a9d3e4b0c62da14f702350f1c10_4ccaf05f-7acd-4d2a-8d81-b601675c6b52.webp?v=1714839694"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/767e1e4c68398a9d3e4b0c62da14f702350f1c10_4ccaf05f-7acd-4d2a-8d81-b601675c6b52.webp?v=1714839694","width":2000},{"alt":null,"id":23885570768995,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d710931750fb56d9a08af24be6509005f6dbc72_88834a7c-04a3-4337-b061-e07a19a89734.webp?v=1714839697"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d710931750fb56d9a08af24be6509005f6dbc72_88834a7c-04a3-4337-b061-e07a19a89734.webp?v=1714839697","width":2000},{"alt":null,"id":23885571293283,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11bf79d2f0e0313781f6f3ccdea1f588579356dc_658812da-862d-45fe-841b-c2a2b6254e54.webp?v=1714839699"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11bf79d2f0e0313781f6f3ccdea1f588579356dc_658812da-862d-45fe-841b-c2a2b6254e54.webp?v=1714839699","width":2000},{"alt":null,"id":23885571817571,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23bdc00a6e6857652b5e259a8df0fe0c62da915b_d2dfc442-fe61-411d-8189-aa9a53176ecb.webp?v=1714839702"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23bdc00a6e6857652b5e259a8df0fe0c62da915b_d2dfc442-fe61-411d-8189-aa9a53176ecb.webp?v=1714839702","width":2000},{"alt":null,"id":23885572374627,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e003e678d9ecf2be4c8614a8b2b45ebbcac46d1_17f81413-ee81-49a9-95c9-ea069ec6b0dc.webp?v=1714839704"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e003e678d9ecf2be4c8614a8b2b45ebbcac46d1_17f81413-ee81-49a9-95c9-ea069ec6b0dc.webp?v=1714839704","width":2000},{"alt":null,"id":23885572898915,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cba289807a78b51c6e817fa574c71197bc08e37_17c0cd92-e939-482a-beef-d961307c5de4.webp?v=1714839707"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cba289807a78b51c6e817fa574c71197bc08e37_17c0cd92-e939-482a-beef-d961307c5de4.webp?v=1714839707","width":2000},{"alt":null,"id":23885573390435,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a879c8f802c637bc834214dc6b2c47d6ad405d5_a7a1acf7-3ead-4afe-8de0-d7fa8860472b.webp?v=1714839709"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a879c8f802c637bc834214dc6b2c47d6ad405d5_a7a1acf7-3ead-4afe-8de0-d7fa8860472b.webp?v=1714839709","width":2000},{"alt":null,"id":23885573881955,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/907e2798d04251b7de59c3eda1c3577b0cba85c1_91d067b7-65f2-4e85-9abc-b03bfae3982f.webp?v=1714839711"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/907e2798d04251b7de59c3eda1c3577b0cba85c1_91d067b7-65f2-4e85-9abc-b03bfae3982f.webp?v=1714839711","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41898339696739,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB44","requires_shipping":true,"taxable":true,"featured_image":{"id":31480317640803,"product_id":7411394642019,"position":1,"created_at":"2024-05-05T00:21:29+08:00","updated_at":"2024-05-05T00:21:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2f99e49f6ad4a345209614d5bff29d6052c8718_c0919d78-1a1e-444b-aa1d-2634cfe6ea86.webp?v=1714839689","variant_ids":[41898339696739]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 風暴兵\u0026光劍-潮流系列 - 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-PB44","featured_media":{"alt":null,"id":23885569163363,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2f99e49f6ad4a345209614d5bff29d6052c8718_c0919d78-1a1e-444b-aa1d-2634cfe6ea86.webp?v=1714839689"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898339762275,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB44","requires_shipping":true,"taxable":true,"featured_image":{"id":31480319737955,"product_id":7411394642019,"position":5,"created_at":"2024-05-05T00:21:39+08:00","updated_at":"2024-05-05T00:21:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11bf79d2f0e0313781f6f3ccdea1f588579356dc_658812da-862d-45fe-841b-c2a2b6254e54.webp?v=1714839699","variant_ids":[41898339762275]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 風暴兵\u0026光劍-潮流系列 - 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-PB44","featured_media":{"alt":null,"id":23885571293283,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11bf79d2f0e0313781f6f3ccdea1f588579356dc_658812da-862d-45fe-841b-c2a2b6254e54.webp?v=1714839699"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898340024419,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB44","requires_shipping":true,"taxable":true,"featured_image":{"id":31480321835107,"product_id":7411394642019,"position":9,"created_at":"2024-05-05T00:21:49+08:00","updated_at":"2024-05-05T00:21:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a879c8f802c637bc834214dc6b2c47d6ad405d5_a7a1acf7-3ead-4afe-8de0-d7fa8860472b.webp?v=1714839709","variant_ids":[41898340024419]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 風暴兵\u0026光劍-潮流系列 - 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-PB44","featured_media":{"alt":null,"id":23885573390435,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a879c8f802c637bc834214dc6b2c47d6ad405d5_a7a1acf7-3ead-4afe-8de0-d7fa8860472b.webp?v=1714839709"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41898339696739,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB44","requires_shipping":true,"taxable":true,"featured_image":{"id":31480317640803,"product_id":7411394642019,"position":1,"created_at":"2024-05-05T00:21:29+08:00","updated_at":"2024-05-05T00:21:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2f99e49f6ad4a345209614d5bff29d6052c8718_c0919d78-1a1e-444b-aa1d-2634cfe6ea86.webp?v=1714839689","variant_ids":[41898339696739]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 風暴兵\u0026光劍-潮流系列 - 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-PB44","featured_media":{"alt":null,"id":23885569163363,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2f99e49f6ad4a345209614d5bff29d6052c8718_c0919d78-1a1e-444b-aa1d-2634cfe6ea86.webp?v=1714839689"}},"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: "停產" }