$product = {"id":7407903965283,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-黑白條紋","handle":"iphone-14-pro-mod-nx-printable-pb20","description":null,"published_at":"2024-06-11T16:26:06+08:00","created_at":"2024-05-03T11:12:57+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":41880324210787,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31470661828707,"product_id":7407903965283,"position":5,"created_at":"2024-05-03T11:13:08+08:00","updated_at":"2024-05-03T11:13:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdbbd222cdf2b69d3b68c9df6cc5aa40aa20ca12_def4fa65-1ef9-4c53-9dc1-ec0b6999e21b.webp?v=1714705988","variant_ids":[41880324210787]},"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-PB20","featured_media":{"alt":null,"id":23875564896355,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdbbd222cdf2b69d3b68c9df6cc5aa40aa20ca12_def4fa65-1ef9-4c53-9dc1-ec0b6999e21b.webp?v=1714705988"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880324276323,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31470665760867,"product_id":7407903965283,"position":8,"created_at":"2024-05-03T11:13:16+08:00","updated_at":"2024-05-03T11:13:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37a0323e7db887909cfcb94d21cea23a235cb6f5_d2b6b2ae-01e8-46e1-8654-4840c5cb79ce.webp?v=1714705996","variant_ids":[41880324276323]},"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-PB20","featured_media":{"alt":null,"id":23875569746019,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37a0323e7db887909cfcb94d21cea23a235cb6f5_d2b6b2ae-01e8-46e1-8654-4840c5cb79ce.webp?v=1714705996"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880324505699,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31470666612835,"product_id":7407903965283,"position":10,"created_at":"2024-05-03T11:13:20+08:00","updated_at":"2024-05-03T11:13:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29d0ac32f78469b7e145245446712deae2e9a1c1_b8dbfbce-955e-4ad7-911b-3d8fd0f62a63.webp?v=1714706000","variant_ids":[41880324505699]},"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-PB20","featured_media":{"alt":null,"id":23875570597987,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29d0ac32f78469b7e145245446712deae2e9a1c1_b8dbfbce-955e-4ad7-911b-3d8fd0f62a63.webp?v=1714706000"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3197a3917402e7c8cc8b3ca2ddb6881b1c77fcc7_150c6b80-210e-469f-8e81-ce5405f67034.webp?v=1714705979","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30e9a0d7674ea36e0dd9825c77378a8e91311eba_ceb89acf-579b-4953-9f13-d82a6a3da94c.webp?v=1714705981","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4407d5e3ac67c3446e132e21f7c7e4b4d5c0ac2b_ddaf606a-812d-42cf-829c-a6c84eed1529.webp?v=1714705984","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c9520f77a993c6c44990d8fa2ab8f9c18dc41f4_be2d6e78-6688-4de4-a02e-6d2c903d88dc.webp?v=1714705986","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdbbd222cdf2b69d3b68c9df6cc5aa40aa20ca12_def4fa65-1ef9-4c53-9dc1-ec0b6999e21b.webp?v=1714705988","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f286a067c370ed709393cd87cdadc36e2134e34c_3cbb11f3-4551-43c9-a66b-3094e529b1de.webp?v=1714705991","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76662e3258d6bc280cef8fa199ae727c6c8c1106_1d78fb79-496e-4f06-82f4-78b2d550125a.webp?v=1714705993","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37a0323e7db887909cfcb94d21cea23a235cb6f5_d2b6b2ae-01e8-46e1-8654-4840c5cb79ce.webp?v=1714705996","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/360705977bcf8af474ffbf971fa7642097465c3e_b87cb422-5168-4963-b2d4-1251e87c3749.webp?v=1714705998","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29d0ac32f78469b7e145245446712deae2e9a1c1_b8dbfbce-955e-4ad7-911b-3d8fd0f62a63.webp?v=1714706000"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3197a3917402e7c8cc8b3ca2ddb6881b1c77fcc7_150c6b80-210e-469f-8e81-ce5405f67034.webp?v=1714705979","options":["color"],"media":[{"alt":null,"id":23875563356259,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3197a3917402e7c8cc8b3ca2ddb6881b1c77fcc7_150c6b80-210e-469f-8e81-ce5405f67034.webp?v=1714705979"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3197a3917402e7c8cc8b3ca2ddb6881b1c77fcc7_150c6b80-210e-469f-8e81-ce5405f67034.webp?v=1714705979","width":2000},{"alt":null,"id":23875563683939,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30e9a0d7674ea36e0dd9825c77378a8e91311eba_ceb89acf-579b-4953-9f13-d82a6a3da94c.webp?v=1714705981"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30e9a0d7674ea36e0dd9825c77378a8e91311eba_ceb89acf-579b-4953-9f13-d82a6a3da94c.webp?v=1714705981","width":2000},{"alt":null,"id":23875564077155,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4407d5e3ac67c3446e132e21f7c7e4b4d5c0ac2b_ddaf606a-812d-42cf-829c-a6c84eed1529.webp?v=1714705984"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4407d5e3ac67c3446e132e21f7c7e4b4d5c0ac2b_ddaf606a-812d-42cf-829c-a6c84eed1529.webp?v=1714705984","width":2000},{"alt":null,"id":23875564503139,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c9520f77a993c6c44990d8fa2ab8f9c18dc41f4_be2d6e78-6688-4de4-a02e-6d2c903d88dc.webp?v=1714705986"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c9520f77a993c6c44990d8fa2ab8f9c18dc41f4_be2d6e78-6688-4de4-a02e-6d2c903d88dc.webp?v=1714705986","width":2000},{"alt":null,"id":23875564896355,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdbbd222cdf2b69d3b68c9df6cc5aa40aa20ca12_def4fa65-1ef9-4c53-9dc1-ec0b6999e21b.webp?v=1714705988"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdbbd222cdf2b69d3b68c9df6cc5aa40aa20ca12_def4fa65-1ef9-4c53-9dc1-ec0b6999e21b.webp?v=1714705988","width":2000},{"alt":null,"id":23875568074851,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f286a067c370ed709393cd87cdadc36e2134e34c_3cbb11f3-4551-43c9-a66b-3094e529b1de.webp?v=1714705991"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f286a067c370ed709393cd87cdadc36e2134e34c_3cbb11f3-4551-43c9-a66b-3094e529b1de.webp?v=1714705991","width":2000},{"alt":null,"id":23875569287267,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76662e3258d6bc280cef8fa199ae727c6c8c1106_1d78fb79-496e-4f06-82f4-78b2d550125a.webp?v=1714705993"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76662e3258d6bc280cef8fa199ae727c6c8c1106_1d78fb79-496e-4f06-82f4-78b2d550125a.webp?v=1714705993","width":2000},{"alt":null,"id":23875569746019,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37a0323e7db887909cfcb94d21cea23a235cb6f5_d2b6b2ae-01e8-46e1-8654-4840c5cb79ce.webp?v=1714705996"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37a0323e7db887909cfcb94d21cea23a235cb6f5_d2b6b2ae-01e8-46e1-8654-4840c5cb79ce.webp?v=1714705996","width":2000},{"alt":null,"id":23875570106467,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/360705977bcf8af474ffbf971fa7642097465c3e_b87cb422-5168-4963-b2d4-1251e87c3749.webp?v=1714705998"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/360705977bcf8af474ffbf971fa7642097465c3e_b87cb422-5168-4963-b2d4-1251e87c3749.webp?v=1714705998","width":2000},{"alt":null,"id":23875570597987,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29d0ac32f78469b7e145245446712deae2e9a1c1_b8dbfbce-955e-4ad7-911b-3d8fd0f62a63.webp?v=1714706000"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29d0ac32f78469b7e145245446712deae2e9a1c1_b8dbfbce-955e-4ad7-911b-3d8fd0f62a63.webp?v=1714706000","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41880324210787,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31470661828707,"product_id":7407903965283,"position":5,"created_at":"2024-05-03T11:13:08+08:00","updated_at":"2024-05-03T11:13:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdbbd222cdf2b69d3b68c9df6cc5aa40aa20ca12_def4fa65-1ef9-4c53-9dc1-ec0b6999e21b.webp?v=1714705988","variant_ids":[41880324210787]},"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-PB20","featured_media":{"alt":null,"id":23875564896355,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdbbd222cdf2b69d3b68c9df6cc5aa40aa20ca12_def4fa65-1ef9-4c53-9dc1-ec0b6999e21b.webp?v=1714705988"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880324276323,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31470665760867,"product_id":7407903965283,"position":8,"created_at":"2024-05-03T11:13:16+08:00","updated_at":"2024-05-03T11:13:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37a0323e7db887909cfcb94d21cea23a235cb6f5_d2b6b2ae-01e8-46e1-8654-4840c5cb79ce.webp?v=1714705996","variant_ids":[41880324276323]},"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-PB20","featured_media":{"alt":null,"id":23875569746019,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37a0323e7db887909cfcb94d21cea23a235cb6f5_d2b6b2ae-01e8-46e1-8654-4840c5cb79ce.webp?v=1714705996"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880324505699,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31470666612835,"product_id":7407903965283,"position":10,"created_at":"2024-05-03T11:13:20+08:00","updated_at":"2024-05-03T11:13:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29d0ac32f78469b7e145245446712deae2e9a1c1_b8dbfbce-955e-4ad7-911b-3d8fd0f62a63.webp?v=1714706000","variant_ids":[41880324505699]},"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-PB20","featured_media":{"alt":null,"id":23875570597987,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29d0ac32f78469b7e145245446712deae2e9a1c1_b8dbfbce-955e-4ad7-911b-3d8fd0f62a63.webp?v=1714706000"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41880324210787,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31470661828707,"product_id":7407903965283,"position":5,"created_at":"2024-05-03T11:13:08+08:00","updated_at":"2024-05-03T11:13:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdbbd222cdf2b69d3b68c9df6cc5aa40aa20ca12_def4fa65-1ef9-4c53-9dc1-ec0b6999e21b.webp?v=1714705988","variant_ids":[41880324210787]},"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-PB20","featured_media":{"alt":null,"id":23875564896355,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdbbd222cdf2b69d3b68c9df6cc5aa40aa20ca12_def4fa65-1ef9-4c53-9dc1-ec0b6999e21b.webp?v=1714705988"}},"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: "停產" }