$product = {"id":7414028664931,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - JEDI ORDER 原力-潮流系列","handle":"iphone-13-mini-mod-nx-magsafe-printable-pb48","description":null,"published_at":"2024-06-11T17:48:09+08:00","created_at":"2024-05-05T14:04:08+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":41903503573091,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB48","requires_shipping":true,"taxable":true,"featured_image":{"id":31484501753955,"product_id":7414028664931,"position":9,"created_at":"2024-05-05T14:04:31+08:00","updated_at":"2024-05-05T14:04:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c03eb905b21f217a4381ddda1a40773f73a23aa_75fe2bf2-dd62-45fe-9713-e6e3a1060e38.webp?v=1714889071","variant_ids":[41903503573091]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - JEDI ORDER 原力-潮流系列 - 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-PB48","featured_media":{"alt":null,"id":23889795874915,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c03eb905b21f217a4381ddda1a40773f73a23aa_75fe2bf2-dd62-45fe-9713-e6e3a1060e38.webp?v=1714889071"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903503638627,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB48","requires_shipping":true,"taxable":true,"featured_image":{"id":31484497920099,"product_id":7414028664931,"position":2,"created_at":"2024-05-05T14:04:13+08:00","updated_at":"2024-05-05T14:04:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14e89b316b7a1d772f6164f2e333598f873f9be5_b01e3806-c8f8-435d-834e-dde09120fca0.webp?v=1714889053","variant_ids":[41903503638627]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - JEDI ORDER 原力-潮流系列 - 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-PB48","featured_media":{"alt":null,"id":23889792073827,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14e89b316b7a1d772f6164f2e333598f873f9be5_b01e3806-c8f8-435d-834e-dde09120fca0.webp?v=1714889053"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903503868003,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB48","requires_shipping":true,"taxable":true,"featured_image":{"id":31484499361891,"product_id":7414028664931,"position":5,"created_at":"2024-05-05T14:04:21+08:00","updated_at":"2024-05-05T14:04:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/419480cb2f2072afcdd860715fd2834100c0c0a7_359b26ce-5042-4bff-9f61-0a6ecee3d487.webp?v=1714889061","variant_ids":[41903503868003]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - JEDI ORDER 原力-潮流系列 - 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-PB48","featured_media":{"alt":null,"id":23889793515619,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/419480cb2f2072afcdd860715fd2834100c0c0a7_359b26ce-5042-4bff-9f61-0a6ecee3d487.webp?v=1714889061"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6f1360cf3ed6f4d6f3b9337a0e8bf7d5b90a8cc_fed4dbb0-55b0-4991-bc36-a5a84021b0b3.webp?v=1714889051","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14e89b316b7a1d772f6164f2e333598f873f9be5_b01e3806-c8f8-435d-834e-dde09120fca0.webp?v=1714889053","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/712731622d6a47b0708add1c8f161460072aeec9_8d9a212d-d325-4d39-bbe5-ae40f757b8d9.webp?v=1714889056","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62caa2b451239d329df7b0a201e0a11247343cff_d8cf702c-0e40-42b1-8594-5df7a13e489a.webp?v=1714889058","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/419480cb2f2072afcdd860715fd2834100c0c0a7_359b26ce-5042-4bff-9f61-0a6ecee3d487.webp?v=1714889061","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25fd55b7131af447e08041080ffe1a3a0e05e040_b8d9b37d-5e1c-46fd-bc55-922b32ceab44.webp?v=1714889064","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05e9b3a0eb417d85eb67c77732e8fa9a7257b02d_af29e42a-7675-4139-8f42-f37fadec2280.webp?v=1714889066","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1ebf22b69a0e6fd39fd08c1deda0adf77d115bf_fc849a3f-03c9-4d7b-92c3-44c2af3733b6.webp?v=1714889068","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c03eb905b21f217a4381ddda1a40773f73a23aa_75fe2bf2-dd62-45fe-9713-e6e3a1060e38.webp?v=1714889071","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0af6285ff05b3d8c0b9e3fffc5a8d20635a5d1fb_2b5ab1e1-3dac-42a5-92f0-2b33db7fb91d.webp?v=1714889073"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6f1360cf3ed6f4d6f3b9337a0e8bf7d5b90a8cc_fed4dbb0-55b0-4991-bc36-a5a84021b0b3.webp?v=1714889051","options":["color"],"media":[{"alt":null,"id":23889791484003,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6f1360cf3ed6f4d6f3b9337a0e8bf7d5b90a8cc_fed4dbb0-55b0-4991-bc36-a5a84021b0b3.webp?v=1714889051"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6f1360cf3ed6f4d6f3b9337a0e8bf7d5b90a8cc_fed4dbb0-55b0-4991-bc36-a5a84021b0b3.webp?v=1714889051","width":2000},{"alt":null,"id":23889792073827,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14e89b316b7a1d772f6164f2e333598f873f9be5_b01e3806-c8f8-435d-834e-dde09120fca0.webp?v=1714889053"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14e89b316b7a1d772f6164f2e333598f873f9be5_b01e3806-c8f8-435d-834e-dde09120fca0.webp?v=1714889053","width":2000},{"alt":null,"id":23889792499811,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/712731622d6a47b0708add1c8f161460072aeec9_8d9a212d-d325-4d39-bbe5-ae40f757b8d9.webp?v=1714889056"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/712731622d6a47b0708add1c8f161460072aeec9_8d9a212d-d325-4d39-bbe5-ae40f757b8d9.webp?v=1714889056","width":2000},{"alt":null,"id":23889793056867,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62caa2b451239d329df7b0a201e0a11247343cff_d8cf702c-0e40-42b1-8594-5df7a13e489a.webp?v=1714889058"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62caa2b451239d329df7b0a201e0a11247343cff_d8cf702c-0e40-42b1-8594-5df7a13e489a.webp?v=1714889058","width":2000},{"alt":null,"id":23889793515619,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/419480cb2f2072afcdd860715fd2834100c0c0a7_359b26ce-5042-4bff-9f61-0a6ecee3d487.webp?v=1714889061"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/419480cb2f2072afcdd860715fd2834100c0c0a7_359b26ce-5042-4bff-9f61-0a6ecee3d487.webp?v=1714889061","width":2000},{"alt":null,"id":23889794105443,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25fd55b7131af447e08041080ffe1a3a0e05e040_b8d9b37d-5e1c-46fd-bc55-922b32ceab44.webp?v=1714889064"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25fd55b7131af447e08041080ffe1a3a0e05e040_b8d9b37d-5e1c-46fd-bc55-922b32ceab44.webp?v=1714889064","width":2000},{"alt":null,"id":23889794728035,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05e9b3a0eb417d85eb67c77732e8fa9a7257b02d_af29e42a-7675-4139-8f42-f37fadec2280.webp?v=1714889066"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05e9b3a0eb417d85eb67c77732e8fa9a7257b02d_af29e42a-7675-4139-8f42-f37fadec2280.webp?v=1714889066","width":2000},{"alt":null,"id":23889795285091,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1ebf22b69a0e6fd39fd08c1deda0adf77d115bf_fc849a3f-03c9-4d7b-92c3-44c2af3733b6.webp?v=1714889068"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1ebf22b69a0e6fd39fd08c1deda0adf77d115bf_fc849a3f-03c9-4d7b-92c3-44c2af3733b6.webp?v=1714889068","width":2000},{"alt":null,"id":23889795874915,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c03eb905b21f217a4381ddda1a40773f73a23aa_75fe2bf2-dd62-45fe-9713-e6e3a1060e38.webp?v=1714889071"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c03eb905b21f217a4381ddda1a40773f73a23aa_75fe2bf2-dd62-45fe-9713-e6e3a1060e38.webp?v=1714889071","width":2000},{"alt":null,"id":23889796366435,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0af6285ff05b3d8c0b9e3fffc5a8d20635a5d1fb_2b5ab1e1-3dac-42a5-92f0-2b33db7fb91d.webp?v=1714889073"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0af6285ff05b3d8c0b9e3fffc5a8d20635a5d1fb_2b5ab1e1-3dac-42a5-92f0-2b33db7fb91d.webp?v=1714889073","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41903503573091,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB48","requires_shipping":true,"taxable":true,"featured_image":{"id":31484501753955,"product_id":7414028664931,"position":9,"created_at":"2024-05-05T14:04:31+08:00","updated_at":"2024-05-05T14:04:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c03eb905b21f217a4381ddda1a40773f73a23aa_75fe2bf2-dd62-45fe-9713-e6e3a1060e38.webp?v=1714889071","variant_ids":[41903503573091]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - JEDI ORDER 原力-潮流系列 - 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-PB48","featured_media":{"alt":null,"id":23889795874915,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c03eb905b21f217a4381ddda1a40773f73a23aa_75fe2bf2-dd62-45fe-9713-e6e3a1060e38.webp?v=1714889071"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903503638627,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB48","requires_shipping":true,"taxable":true,"featured_image":{"id":31484497920099,"product_id":7414028664931,"position":2,"created_at":"2024-05-05T14:04:13+08:00","updated_at":"2024-05-05T14:04:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14e89b316b7a1d772f6164f2e333598f873f9be5_b01e3806-c8f8-435d-834e-dde09120fca0.webp?v=1714889053","variant_ids":[41903503638627]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - JEDI ORDER 原力-潮流系列 - 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-PB48","featured_media":{"alt":null,"id":23889792073827,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14e89b316b7a1d772f6164f2e333598f873f9be5_b01e3806-c8f8-435d-834e-dde09120fca0.webp?v=1714889053"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903503868003,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB48","requires_shipping":true,"taxable":true,"featured_image":{"id":31484499361891,"product_id":7414028664931,"position":5,"created_at":"2024-05-05T14:04:21+08:00","updated_at":"2024-05-05T14:04:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/419480cb2f2072afcdd860715fd2834100c0c0a7_359b26ce-5042-4bff-9f61-0a6ecee3d487.webp?v=1714889061","variant_ids":[41903503868003]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - JEDI ORDER 原力-潮流系列 - 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-PB48","featured_media":{"alt":null,"id":23889793515619,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/419480cb2f2072afcdd860715fd2834100c0c0a7_359b26ce-5042-4bff-9f61-0a6ecee3d487.webp?v=1714889061"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41903503573091,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB48","requires_shipping":true,"taxable":true,"featured_image":{"id":31484501753955,"product_id":7414028664931,"position":9,"created_at":"2024-05-05T14:04:31+08:00","updated_at":"2024-05-05T14:04:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c03eb905b21f217a4381ddda1a40773f73a23aa_75fe2bf2-dd62-45fe-9713-e6e3a1060e38.webp?v=1714889071","variant_ids":[41903503573091]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - JEDI ORDER 原力-潮流系列 - 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-PB48","featured_media":{"alt":null,"id":23889795874915,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c03eb905b21f217a4381ddda1a40773f73a23aa_75fe2bf2-dd62-45fe-9713-e6e3a1060e38.webp?v=1714889071"}},"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: "停產" }