$product = {"id":7413948645475,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 風暴兵-剪紙系列","handle":"iphone-13-mini-mod-nx-magsafe-printable-pb56","description":null,"published_at":"2024-06-11T17:45:51+08:00","created_at":"2024-05-05T13:48:17+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":41902569390179,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB56","requires_shipping":true,"taxable":true,"featured_image":{"id":31484296233059,"product_id":7413948645475,"position":2,"created_at":"2024-05-05T13:48:22+08:00","updated_at":"2024-05-05T13:48:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72b557dc14fa51a55757e787ac0f03290df060e8_6bc73d80-db1d-4adb-8452-d511a75d8da2.webp?v=1714888102","variant_ids":[41902569390179]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 風暴兵-剪紙系列 - 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-PB56","featured_media":{"alt":null,"id":23889589796963,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72b557dc14fa51a55757e787ac0f03290df060e8_6bc73d80-db1d-4adb-8452-d511a75d8da2.webp?v=1714888102"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902569586787,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB56","requires_shipping":true,"taxable":true,"featured_image":{"id":31484295708771,"product_id":7413948645475,"position":1,"created_at":"2024-05-05T13:48:20+08:00","updated_at":"2024-05-05T13:48:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e31bc4470b232c7f356dca96a81d71b65861a72_c9796593-e136-4975-93c9-ec6025dd3d9c.webp?v=1714888100","variant_ids":[41902569586787]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 風暴兵-剪紙系列 - 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-PB56","featured_media":{"alt":null,"id":23889589305443,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e31bc4470b232c7f356dca96a81d71b65861a72_c9796593-e136-4975-93c9-ec6025dd3d9c.webp?v=1714888100"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902570143843,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB56","requires_shipping":true,"taxable":true,"featured_image":{"id":31484300329059,"product_id":7413948645475,"position":9,"created_at":"2024-05-05T13:48:39+08:00","updated_at":"2024-05-05T13:48:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e82ed82ff1799bd556647985871d13e4caa1944_f2feff99-305a-46fe-ad43-46cd941e20a5.webp?v=1714888119","variant_ids":[41902570143843]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 風暴兵-剪紙系列 - 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-PB56","featured_media":{"alt":null,"id":23889593925731,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e82ed82ff1799bd556647985871d13e4caa1944_f2feff99-305a-46fe-ad43-46cd941e20a5.webp?v=1714888119"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e31bc4470b232c7f356dca96a81d71b65861a72_c9796593-e136-4975-93c9-ec6025dd3d9c.webp?v=1714888100","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72b557dc14fa51a55757e787ac0f03290df060e8_6bc73d80-db1d-4adb-8452-d511a75d8da2.webp?v=1714888102","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98ee0e50bced5e2b5d1d00e06fdde8619009d7ac_b8b69cc4-f66f-4f33-9ee4-8ed0c1f7def4.webp?v=1714888104","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd25bcba3f9d133c530e36b4f1d36a062db2cf62_5721be25-70b0-4146-8184-348ad872131a.webp?v=1714888107","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88da7df3ca5ea2dd6507f0385d5a85145e0be588_d95d5c5d-661e-47d5-afad-69d0ba46b960.webp?v=1714888110","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01b2b413b4b606849f77012c9291eceacd1a2e4b_f6448490-9947-4036-bd65-d6091ba6e2e1.webp?v=1714888113","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11810693811435a6e413dcdf887ef48a09ff7279_b57e9452-f31f-4088-a01d-1dc57852245f.webp?v=1714888115","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74a34f93041b0455d45115d556a9f1ac319a8128_d8501cd3-15b0-48e6-b4be-1c6d3a42bbb1.webp?v=1714888117","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e82ed82ff1799bd556647985871d13e4caa1944_f2feff99-305a-46fe-ad43-46cd941e20a5.webp?v=1714888119","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b23fed27c206b1450e5caf973dd32ff5f050884_005e39b9-cf74-4c92-801c-9ad4b08485db.webp?v=1714888122"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e31bc4470b232c7f356dca96a81d71b65861a72_c9796593-e136-4975-93c9-ec6025dd3d9c.webp?v=1714888100","options":["color"],"media":[{"alt":null,"id":23889589305443,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e31bc4470b232c7f356dca96a81d71b65861a72_c9796593-e136-4975-93c9-ec6025dd3d9c.webp?v=1714888100"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e31bc4470b232c7f356dca96a81d71b65861a72_c9796593-e136-4975-93c9-ec6025dd3d9c.webp?v=1714888100","width":2000},{"alt":null,"id":23889589796963,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72b557dc14fa51a55757e787ac0f03290df060e8_6bc73d80-db1d-4adb-8452-d511a75d8da2.webp?v=1714888102"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72b557dc14fa51a55757e787ac0f03290df060e8_6bc73d80-db1d-4adb-8452-d511a75d8da2.webp?v=1714888102","width":2000},{"alt":null,"id":23889590452323,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98ee0e50bced5e2b5d1d00e06fdde8619009d7ac_b8b69cc4-f66f-4f33-9ee4-8ed0c1f7def4.webp?v=1714888104"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98ee0e50bced5e2b5d1d00e06fdde8619009d7ac_b8b69cc4-f66f-4f33-9ee4-8ed0c1f7def4.webp?v=1714888104","width":2000},{"alt":null,"id":23889591205987,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd25bcba3f9d133c530e36b4f1d36a062db2cf62_5721be25-70b0-4146-8184-348ad872131a.webp?v=1714888107"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd25bcba3f9d133c530e36b4f1d36a062db2cf62_5721be25-70b0-4146-8184-348ad872131a.webp?v=1714888107","width":2000},{"alt":null,"id":23889591926883,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88da7df3ca5ea2dd6507f0385d5a85145e0be588_d95d5c5d-661e-47d5-afad-69d0ba46b960.webp?v=1714888110"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88da7df3ca5ea2dd6507f0385d5a85145e0be588_d95d5c5d-661e-47d5-afad-69d0ba46b960.webp?v=1714888110","width":2000},{"alt":null,"id":23889592549475,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01b2b413b4b606849f77012c9291eceacd1a2e4b_f6448490-9947-4036-bd65-d6091ba6e2e1.webp?v=1714888113"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01b2b413b4b606849f77012c9291eceacd1a2e4b_f6448490-9947-4036-bd65-d6091ba6e2e1.webp?v=1714888113","width":2000},{"alt":null,"id":23889593172067,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11810693811435a6e413dcdf887ef48a09ff7279_b57e9452-f31f-4088-a01d-1dc57852245f.webp?v=1714888115"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11810693811435a6e413dcdf887ef48a09ff7279_b57e9452-f31f-4088-a01d-1dc57852245f.webp?v=1714888115","width":2000},{"alt":null,"id":23889593532515,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74a34f93041b0455d45115d556a9f1ac319a8128_d8501cd3-15b0-48e6-b4be-1c6d3a42bbb1.webp?v=1714888117"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74a34f93041b0455d45115d556a9f1ac319a8128_d8501cd3-15b0-48e6-b4be-1c6d3a42bbb1.webp?v=1714888117","width":2000},{"alt":null,"id":23889593925731,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e82ed82ff1799bd556647985871d13e4caa1944_f2feff99-305a-46fe-ad43-46cd941e20a5.webp?v=1714888119"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e82ed82ff1799bd556647985871d13e4caa1944_f2feff99-305a-46fe-ad43-46cd941e20a5.webp?v=1714888119","width":2000},{"alt":null,"id":23889594253411,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b23fed27c206b1450e5caf973dd32ff5f050884_005e39b9-cf74-4c92-801c-9ad4b08485db.webp?v=1714888122"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b23fed27c206b1450e5caf973dd32ff5f050884_005e39b9-cf74-4c92-801c-9ad4b08485db.webp?v=1714888122","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":41902569390179,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB56","requires_shipping":true,"taxable":true,"featured_image":{"id":31484296233059,"product_id":7413948645475,"position":2,"created_at":"2024-05-05T13:48:22+08:00","updated_at":"2024-05-05T13:48:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72b557dc14fa51a55757e787ac0f03290df060e8_6bc73d80-db1d-4adb-8452-d511a75d8da2.webp?v=1714888102","variant_ids":[41902569390179]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 風暴兵-剪紙系列 - 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-PB56","featured_media":{"alt":null,"id":23889589796963,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72b557dc14fa51a55757e787ac0f03290df060e8_6bc73d80-db1d-4adb-8452-d511a75d8da2.webp?v=1714888102"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902569586787,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB56","requires_shipping":true,"taxable":true,"featured_image":{"id":31484295708771,"product_id":7413948645475,"position":1,"created_at":"2024-05-05T13:48:20+08:00","updated_at":"2024-05-05T13:48:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e31bc4470b232c7f356dca96a81d71b65861a72_c9796593-e136-4975-93c9-ec6025dd3d9c.webp?v=1714888100","variant_ids":[41902569586787]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 風暴兵-剪紙系列 - 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-PB56","featured_media":{"alt":null,"id":23889589305443,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e31bc4470b232c7f356dca96a81d71b65861a72_c9796593-e136-4975-93c9-ec6025dd3d9c.webp?v=1714888100"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902570143843,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB56","requires_shipping":true,"taxable":true,"featured_image":{"id":31484300329059,"product_id":7413948645475,"position":9,"created_at":"2024-05-05T13:48:39+08:00","updated_at":"2024-05-05T13:48:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e82ed82ff1799bd556647985871d13e4caa1944_f2feff99-305a-46fe-ad43-46cd941e20a5.webp?v=1714888119","variant_ids":[41902570143843]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 風暴兵-剪紙系列 - 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-PB56","featured_media":{"alt":null,"id":23889593925731,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e82ed82ff1799bd556647985871d13e4caa1944_f2feff99-305a-46fe-ad43-46cd941e20a5.webp?v=1714888119"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41902569390179,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB56","requires_shipping":true,"taxable":true,"featured_image":{"id":31484296233059,"product_id":7413948645475,"position":2,"created_at":"2024-05-05T13:48:22+08:00","updated_at":"2024-05-05T13:48:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72b557dc14fa51a55757e787ac0f03290df060e8_6bc73d80-db1d-4adb-8452-d511a75d8da2.webp?v=1714888102","variant_ids":[41902569390179]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 風暴兵-剪紙系列 - 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-PB56","featured_media":{"alt":null,"id":23889589796963,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72b557dc14fa51a55757e787ac0f03290df060e8_6bc73d80-db1d-4adb-8452-d511a75d8da2.webp?v=1714888102"}},"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: "停產" }