$product = {"id":7408006561891,"title":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - The Adventures of R2-D2 \u0026 C-3PO","handle":"iphone-13-mini-mod-nx-printable-pb82","description":null,"published_at":"2024-06-11T16:28:54+08:00","created_at":"2024-05-03T11:39:33+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 13 mini","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":41881640829027,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB82","requires_shipping":true,"taxable":true,"featured_image":{"id":31470951497827,"product_id":7408006561891,"position":6,"created_at":"2024-05-03T11:39:49+08:00","updated_at":"2024-05-03T11:39:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/244ca532a2578e21465beeb7c2761a609675aa39_f3b925d4-b92c-4934-a688-50f0e25a3aab.webp?v=1714707589","variant_ids":[41881640829027]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - The Adventures of R2-D2 \u0026 C-3PO - 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":"NPB0122824-PB82","featured_media":{"alt":null,"id":23875855188067,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/244ca532a2578e21465beeb7c2761a609675aa39_f3b925d4-b92c-4934-a688-50f0e25a3aab.webp?v=1714707589"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881640894563,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB82","requires_shipping":true,"taxable":true,"featured_image":{"id":31470953398371,"product_id":7408006561891,"position":10,"created_at":"2024-05-03T11:39:59+08:00","updated_at":"2024-05-03T11:39:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1953f77deb5c1ed942c8322b75bcf821ce4f4a81_860fd6eb-70b2-4458-8c1c-f2fe3a0eca32.webp?v=1714707599","variant_ids":[41881640894563]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - The Adventures of R2-D2 \u0026 C-3PO - 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":"NPB0122804-PB82","featured_media":{"alt":null,"id":23875858104419,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1953f77deb5c1ed942c8322b75bcf821ce4f4a81_860fd6eb-70b2-4458-8c1c-f2fe3a0eca32.webp?v=1714707599"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881641287779,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB82","requires_shipping":true,"taxable":true,"featured_image":{"id":31470951956579,"product_id":7408006561891,"position":7,"created_at":"2024-05-03T11:39:51+08:00","updated_at":"2024-05-03T11:39:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bef2e9d79b3ed4e9ffb335da2a33f17ba898abf4_da978279-cfac-435c-b5b8-8012140edc82.webp?v=1714707591","variant_ids":[41881641287779]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - The Adventures of R2-D2 \u0026 C-3PO - 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":"NPB01228J5-PB82","featured_media":{"alt":null,"id":23875856728163,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bef2e9d79b3ed4e9ffb335da2a33f17ba898abf4_da978279-cfac-435c-b5b8-8012140edc82.webp?v=1714707591"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32787b0bfe977db0745545d0d0cb3b8d473d7871_cf2dbb31-561d-4fe3-9b8d-026ee2574249.webp?v=1714707576","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a5caa59c4799d0296c1a698eb66903cc78038a3_5560881d-ae9e-4d1d-b834-8367be43e8c6.webp?v=1714707578","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2059fabfe4d07f73cdc1ea76c0ba10ea661e017a_0b3eea0a-87f8-4081-a2cb-b8d3a7c8c874.webp?v=1714707581","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3736d75e9f33862e86c84f6ace58b87a5843f87_475ef58e-c6f9-4e75-9944-5cc0481b2f10.webp?v=1714707584","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d34252eaf8e198fb4187f32d6942739b02a74c4_d9edf2e4-fe02-4c94-8928-be0aaa49e98b.webp?v=1714707586","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/244ca532a2578e21465beeb7c2761a609675aa39_f3b925d4-b92c-4934-a688-50f0e25a3aab.webp?v=1714707589","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bef2e9d79b3ed4e9ffb335da2a33f17ba898abf4_da978279-cfac-435c-b5b8-8012140edc82.webp?v=1714707591","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/223859fd84d58928ad2b38a4f306c7bb7704dca1_b2190aac-09b7-49be-9c1d-c4fd95729a17.webp?v=1714707594","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b6414e73e94fe24ecfc34f55a9de9a282ac1e8a_f5d50eaa-b6a5-44dc-b670-9d1b8f8e5720.webp?v=1714707597","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1953f77deb5c1ed942c8322b75bcf821ce4f4a81_860fd6eb-70b2-4458-8c1c-f2fe3a0eca32.webp?v=1714707599"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32787b0bfe977db0745545d0d0cb3b8d473d7871_cf2dbb31-561d-4fe3-9b8d-026ee2574249.webp?v=1714707576","options":["color"],"media":[{"alt":null,"id":23875853025379,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32787b0bfe977db0745545d0d0cb3b8d473d7871_cf2dbb31-561d-4fe3-9b8d-026ee2574249.webp?v=1714707576"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32787b0bfe977db0745545d0d0cb3b8d473d7871_cf2dbb31-561d-4fe3-9b8d-026ee2574249.webp?v=1714707576","width":2000},{"alt":null,"id":23875853353059,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a5caa59c4799d0296c1a698eb66903cc78038a3_5560881d-ae9e-4d1d-b834-8367be43e8c6.webp?v=1714707578"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a5caa59c4799d0296c1a698eb66903cc78038a3_5560881d-ae9e-4d1d-b834-8367be43e8c6.webp?v=1714707578","width":2000},{"alt":null,"id":23875853975651,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2059fabfe4d07f73cdc1ea76c0ba10ea661e017a_0b3eea0a-87f8-4081-a2cb-b8d3a7c8c874.webp?v=1714707581"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2059fabfe4d07f73cdc1ea76c0ba10ea661e017a_0b3eea0a-87f8-4081-a2cb-b8d3a7c8c874.webp?v=1714707581","width":2000},{"alt":null,"id":23875854303331,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3736d75e9f33862e86c84f6ace58b87a5843f87_475ef58e-c6f9-4e75-9944-5cc0481b2f10.webp?v=1714707584"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3736d75e9f33862e86c84f6ace58b87a5843f87_475ef58e-c6f9-4e75-9944-5cc0481b2f10.webp?v=1714707584","width":2000},{"alt":null,"id":23875854729315,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d34252eaf8e198fb4187f32d6942739b02a74c4_d9edf2e4-fe02-4c94-8928-be0aaa49e98b.webp?v=1714707586"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d34252eaf8e198fb4187f32d6942739b02a74c4_d9edf2e4-fe02-4c94-8928-be0aaa49e98b.webp?v=1714707586","width":2000},{"alt":null,"id":23875855188067,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/244ca532a2578e21465beeb7c2761a609675aa39_f3b925d4-b92c-4934-a688-50f0e25a3aab.webp?v=1714707589"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/244ca532a2578e21465beeb7c2761a609675aa39_f3b925d4-b92c-4934-a688-50f0e25a3aab.webp?v=1714707589","width":2000},{"alt":null,"id":23875856728163,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bef2e9d79b3ed4e9ffb335da2a33f17ba898abf4_da978279-cfac-435c-b5b8-8012140edc82.webp?v=1714707591"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bef2e9d79b3ed4e9ffb335da2a33f17ba898abf4_da978279-cfac-435c-b5b8-8012140edc82.webp?v=1714707591","width":2000},{"alt":null,"id":23875857186915,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/223859fd84d58928ad2b38a4f306c7bb7704dca1_b2190aac-09b7-49be-9c1d-c4fd95729a17.webp?v=1714707594"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/223859fd84d58928ad2b38a4f306c7bb7704dca1_b2190aac-09b7-49be-9c1d-c4fd95729a17.webp?v=1714707594","width":2000},{"alt":null,"id":23875857580131,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b6414e73e94fe24ecfc34f55a9de9a282ac1e8a_f5d50eaa-b6a5-44dc-b670-9d1b8f8e5720.webp?v=1714707597"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b6414e73e94fe24ecfc34f55a9de9a282ac1e8a_f5d50eaa-b6a5-44dc-b670-9d1b8f8e5720.webp?v=1714707597","width":2000},{"alt":null,"id":23875858104419,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1953f77deb5c1ed942c8322b75bcf821ce4f4a81_860fd6eb-70b2-4458-8c1c-f2fe3a0eca32.webp?v=1714707599"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1953f77deb5c1ed942c8322b75bcf821ce4f4a81_860fd6eb-70b2-4458-8c1c-f2fe3a0eca32.webp?v=1714707599","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41881640829027,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB82","requires_shipping":true,"taxable":true,"featured_image":{"id":31470951497827,"product_id":7408006561891,"position":6,"created_at":"2024-05-03T11:39:49+08:00","updated_at":"2024-05-03T11:39:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/244ca532a2578e21465beeb7c2761a609675aa39_f3b925d4-b92c-4934-a688-50f0e25a3aab.webp?v=1714707589","variant_ids":[41881640829027]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - The Adventures of R2-D2 \u0026 C-3PO - 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":"NPB0122824-PB82","featured_media":{"alt":null,"id":23875855188067,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/244ca532a2578e21465beeb7c2761a609675aa39_f3b925d4-b92c-4934-a688-50f0e25a3aab.webp?v=1714707589"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881640894563,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB82","requires_shipping":true,"taxable":true,"featured_image":{"id":31470953398371,"product_id":7408006561891,"position":10,"created_at":"2024-05-03T11:39:59+08:00","updated_at":"2024-05-03T11:39:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1953f77deb5c1ed942c8322b75bcf821ce4f4a81_860fd6eb-70b2-4458-8c1c-f2fe3a0eca32.webp?v=1714707599","variant_ids":[41881640894563]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - The Adventures of R2-D2 \u0026 C-3PO - 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":"NPB0122804-PB82","featured_media":{"alt":null,"id":23875858104419,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1953f77deb5c1ed942c8322b75bcf821ce4f4a81_860fd6eb-70b2-4458-8c1c-f2fe3a0eca32.webp?v=1714707599"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881641287779,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB82","requires_shipping":true,"taxable":true,"featured_image":{"id":31470951956579,"product_id":7408006561891,"position":7,"created_at":"2024-05-03T11:39:51+08:00","updated_at":"2024-05-03T11:39:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bef2e9d79b3ed4e9ffb335da2a33f17ba898abf4_da978279-cfac-435c-b5b8-8012140edc82.webp?v=1714707591","variant_ids":[41881641287779]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - The Adventures of R2-D2 \u0026 C-3PO - 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":"NPB01228J5-PB82","featured_media":{"alt":null,"id":23875856728163,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bef2e9d79b3ed4e9ffb335da2a33f17ba898abf4_da978279-cfac-435c-b5b8-8012140edc82.webp?v=1714707591"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41881640829027,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB82","requires_shipping":true,"taxable":true,"featured_image":{"id":31470951497827,"product_id":7408006561891,"position":6,"created_at":"2024-05-03T11:39:49+08:00","updated_at":"2024-05-03T11:39:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/244ca532a2578e21465beeb7c2761a609675aa39_f3b925d4-b92c-4934-a688-50f0e25a3aab.webp?v=1714707589","variant_ids":[41881640829027]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - The Adventures of R2-D2 \u0026 C-3PO - 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":"NPB0122824-PB82","featured_media":{"alt":null,"id":23875855188067,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/244ca532a2578e21465beeb7c2761a609675aa39_f3b925d4-b92c-4934-a688-50f0e25a3aab.webp?v=1714707589"}},"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: "停產" }