$product = {"id":7414491086947,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - R2D2 \u0026 C3PO-塗鴉藝術","handle":"iphone-13-mini-mod-nx-magsafe-printable-pb34","description":null,"published_at":"2024-06-11T17:51:37+08:00","created_at":"2024-05-05T14:27:46+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":41906869698659,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB34","requires_shipping":true,"taxable":true,"featured_image":{"id":31485609082979,"product_id":7414491086947,"position":1,"created_at":"2024-05-05T14:27:48+08:00","updated_at":"2024-05-05T14:27:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9636ee27771f56f082f0a197b77552f3e77237f6_1814befe-cc7e-4f01-afa9-ea6a72d09dd7.webp?v=1714890468","variant_ids":[41906869698659]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - R2D2 \u0026 C3PO-塗鴉藝術 - 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-PB34","featured_media":{"alt":null,"id":23890925518947,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9636ee27771f56f082f0a197b77552f3e77237f6_1814befe-cc7e-4f01-afa9-ea6a72d09dd7.webp?v=1714890468"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906869764195,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB34","requires_shipping":true,"taxable":true,"featured_image":{"id":31485618651235,"product_id":7414491086947,"position":6,"created_at":"2024-05-05T14:27:59+08:00","updated_at":"2024-05-05T14:27:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39e7b8c0eec4eed5abb00fe0d8c957fd24af1ad9_dbc3c249-8a7a-4823-8299-235a5f23352f.webp?v=1714890479","variant_ids":[41906869764195]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - R2D2 \u0026 C3PO-塗鴉藝術 - 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-PB34","featured_media":{"alt":null,"id":23890935119971,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39e7b8c0eec4eed5abb00fe0d8c957fd24af1ad9_dbc3c249-8a7a-4823-8299-235a5f23352f.webp?v=1714890479"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906870124643,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB34","requires_shipping":true,"taxable":true,"featured_image":{"id":31485622583395,"product_id":7414491086947,"position":8,"created_at":"2024-05-05T14:28:03+08:00","updated_at":"2024-05-05T14:28:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e7161a3d0ce2baf13a9ab20d3e1854c1e2a69d2_0254f0bb-d928-4ad4-9982-288d4654f0ad.webp?v=1714890483","variant_ids":[41906870124643]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - R2D2 \u0026 C3PO-塗鴉藝術 - 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-PB34","featured_media":{"alt":null,"id":23890939019363,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e7161a3d0ce2baf13a9ab20d3e1854c1e2a69d2_0254f0bb-d928-4ad4-9982-288d4654f0ad.webp?v=1714890483"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9636ee27771f56f082f0a197b77552f3e77237f6_1814befe-cc7e-4f01-afa9-ea6a72d09dd7.webp?v=1714890468","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24d2288da42ab31bdd167fb21402022b56736bb0_69ffba57-3164-4b1e-8b79-699ab39fa8af.webp?v=1714890470","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb2d41aa4789bfccab9ab1eedc9b14339c8b035f_9c835ce5-8d44-4e09-80f2-1db8ee742510.webp?v=1714890472","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/398a0360a020d4f743c335f30725c696888bdd89_be72dbd5-387a-409a-a23c-70cc0dfb4449.webp?v=1714890474","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa1d9503380a03cb398ff33855dfdf767e4d42e6_923d4cbc-0929-4cc4-bbe2-7b516597a1d4.webp?v=1714890477","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39e7b8c0eec4eed5abb00fe0d8c957fd24af1ad9_dbc3c249-8a7a-4823-8299-235a5f23352f.webp?v=1714890479","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db5e502c9e5b611e1ba33a75c7390eb0e6b92c9e_8042362a-3714-42fe-97c7-4e474dbfdeac.webp?v=1714890481","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e7161a3d0ce2baf13a9ab20d3e1854c1e2a69d2_0254f0bb-d928-4ad4-9982-288d4654f0ad.webp?v=1714890483","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6911f6626227d127de3a99c023612a284307856_ca9949ac-9503-4687-9e6b-d0ca2686b814.webp?v=1714890485","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30134df5d33b82044df951d04d21a8db3d34ebac_44ab913e-2b84-47fe-8848-8a3e7873fa01.webp?v=1714890487"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9636ee27771f56f082f0a197b77552f3e77237f6_1814befe-cc7e-4f01-afa9-ea6a72d09dd7.webp?v=1714890468","options":["color"],"media":[{"alt":null,"id":23890925518947,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9636ee27771f56f082f0a197b77552f3e77237f6_1814befe-cc7e-4f01-afa9-ea6a72d09dd7.webp?v=1714890468"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9636ee27771f56f082f0a197b77552f3e77237f6_1814befe-cc7e-4f01-afa9-ea6a72d09dd7.webp?v=1714890468","width":2000},{"alt":null,"id":23890927747171,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24d2288da42ab31bdd167fb21402022b56736bb0_69ffba57-3164-4b1e-8b79-699ab39fa8af.webp?v=1714890470"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24d2288da42ab31bdd167fb21402022b56736bb0_69ffba57-3164-4b1e-8b79-699ab39fa8af.webp?v=1714890470","width":2000},{"alt":null,"id":23890929549411,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb2d41aa4789bfccab9ab1eedc9b14339c8b035f_9c835ce5-8d44-4e09-80f2-1db8ee742510.webp?v=1714890472"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb2d41aa4789bfccab9ab1eedc9b14339c8b035f_9c835ce5-8d44-4e09-80f2-1db8ee742510.webp?v=1714890472","width":2000},{"alt":null,"id":23890931515491,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/398a0360a020d4f743c335f30725c696888bdd89_be72dbd5-387a-409a-a23c-70cc0dfb4449.webp?v=1714890474"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/398a0360a020d4f743c335f30725c696888bdd89_be72dbd5-387a-409a-a23c-70cc0dfb4449.webp?v=1714890474","width":2000},{"alt":null,"id":23890933186659,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa1d9503380a03cb398ff33855dfdf767e4d42e6_923d4cbc-0929-4cc4-bbe2-7b516597a1d4.webp?v=1714890477"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa1d9503380a03cb398ff33855dfdf767e4d42e6_923d4cbc-0929-4cc4-bbe2-7b516597a1d4.webp?v=1714890477","width":2000},{"alt":null,"id":23890935119971,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39e7b8c0eec4eed5abb00fe0d8c957fd24af1ad9_dbc3c249-8a7a-4823-8299-235a5f23352f.webp?v=1714890479"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39e7b8c0eec4eed5abb00fe0d8c957fd24af1ad9_dbc3c249-8a7a-4823-8299-235a5f23352f.webp?v=1714890479","width":2000},{"alt":null,"id":23890936823907,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db5e502c9e5b611e1ba33a75c7390eb0e6b92c9e_8042362a-3714-42fe-97c7-4e474dbfdeac.webp?v=1714890481"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db5e502c9e5b611e1ba33a75c7390eb0e6b92c9e_8042362a-3714-42fe-97c7-4e474dbfdeac.webp?v=1714890481","width":2000},{"alt":null,"id":23890939019363,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e7161a3d0ce2baf13a9ab20d3e1854c1e2a69d2_0254f0bb-d928-4ad4-9982-288d4654f0ad.webp?v=1714890483"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e7161a3d0ce2baf13a9ab20d3e1854c1e2a69d2_0254f0bb-d928-4ad4-9982-288d4654f0ad.webp?v=1714890483","width":2000},{"alt":null,"id":23890940854371,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6911f6626227d127de3a99c023612a284307856_ca9949ac-9503-4687-9e6b-d0ca2686b814.webp?v=1714890485"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6911f6626227d127de3a99c023612a284307856_ca9949ac-9503-4687-9e6b-d0ca2686b814.webp?v=1714890485","width":2000},{"alt":null,"id":23890942328931,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30134df5d33b82044df951d04d21a8db3d34ebac_44ab913e-2b84-47fe-8848-8a3e7873fa01.webp?v=1714890487"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30134df5d33b82044df951d04d21a8db3d34ebac_44ab913e-2b84-47fe-8848-8a3e7873fa01.webp?v=1714890487","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41906869698659,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB34","requires_shipping":true,"taxable":true,"featured_image":{"id":31485609082979,"product_id":7414491086947,"position":1,"created_at":"2024-05-05T14:27:48+08:00","updated_at":"2024-05-05T14:27:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9636ee27771f56f082f0a197b77552f3e77237f6_1814befe-cc7e-4f01-afa9-ea6a72d09dd7.webp?v=1714890468","variant_ids":[41906869698659]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - R2D2 \u0026 C3PO-塗鴉藝術 - 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-PB34","featured_media":{"alt":null,"id":23890925518947,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9636ee27771f56f082f0a197b77552f3e77237f6_1814befe-cc7e-4f01-afa9-ea6a72d09dd7.webp?v=1714890468"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906869764195,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB34","requires_shipping":true,"taxable":true,"featured_image":{"id":31485618651235,"product_id":7414491086947,"position":6,"created_at":"2024-05-05T14:27:59+08:00","updated_at":"2024-05-05T14:27:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39e7b8c0eec4eed5abb00fe0d8c957fd24af1ad9_dbc3c249-8a7a-4823-8299-235a5f23352f.webp?v=1714890479","variant_ids":[41906869764195]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - R2D2 \u0026 C3PO-塗鴉藝術 - 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-PB34","featured_media":{"alt":null,"id":23890935119971,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39e7b8c0eec4eed5abb00fe0d8c957fd24af1ad9_dbc3c249-8a7a-4823-8299-235a5f23352f.webp?v=1714890479"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906870124643,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB34","requires_shipping":true,"taxable":true,"featured_image":{"id":31485622583395,"product_id":7414491086947,"position":8,"created_at":"2024-05-05T14:28:03+08:00","updated_at":"2024-05-05T14:28:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e7161a3d0ce2baf13a9ab20d3e1854c1e2a69d2_0254f0bb-d928-4ad4-9982-288d4654f0ad.webp?v=1714890483","variant_ids":[41906870124643]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - R2D2 \u0026 C3PO-塗鴉藝術 - 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-PB34","featured_media":{"alt":null,"id":23890939019363,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e7161a3d0ce2baf13a9ab20d3e1854c1e2a69d2_0254f0bb-d928-4ad4-9982-288d4654f0ad.webp?v=1714890483"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41906869698659,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB34","requires_shipping":true,"taxable":true,"featured_image":{"id":31485609082979,"product_id":7414491086947,"position":1,"created_at":"2024-05-05T14:27:48+08:00","updated_at":"2024-05-05T14:27:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9636ee27771f56f082f0a197b77552f3e77237f6_1814befe-cc7e-4f01-afa9-ea6a72d09dd7.webp?v=1714890468","variant_ids":[41906869698659]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - R2D2 \u0026 C3PO-塗鴉藝術 - 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-PB34","featured_media":{"alt":null,"id":23890925518947,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9636ee27771f56f082f0a197b77552f3e77237f6_1814befe-cc7e-4f01-afa9-ea6a72d09dd7.webp?v=1714890468"}},"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: "停產" }