$product = {"id":7407924969571,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-散步-幽默系列","handle":"iphone-14-pro-mod-nx-printable-pc13","description":null,"published_at":"2024-06-11T16:26:42+08:00","created_at":"2024-05-03T11:17:03+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":41880602411107,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PC13","requires_shipping":true,"taxable":true,"featured_image":{"id":31470715011171,"product_id":7407924969571,"position":3,"created_at":"2024-05-03T11:17:10+08:00","updated_at":"2024-05-03T11:17:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e31b0e58dcd25e449380d085fa35f2320c4a356_416eac4f-539a-4145-8fc9-1107027420f3.webp?v=1714706230","variant_ids":[41880602411107]},"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-PC13","featured_media":{"alt":null,"id":23875619061859,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e31b0e58dcd25e449380d085fa35f2320c4a356_416eac4f-539a-4145-8fc9-1107027420f3.webp?v=1714706230"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880602476643,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PC13","requires_shipping":true,"taxable":true,"featured_image":{"id":31470714650723,"product_id":7407924969571,"position":2,"created_at":"2024-05-03T11:17:08+08:00","updated_at":"2024-05-03T11:17:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecc6e362b9a6d5bf089b4e2767e90f789a0ff7be_3a7eddb5-982c-4145-814d-01190dcc5b93.webp?v=1714706228","variant_ids":[41880602476643]},"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-PC13","featured_media":{"alt":null,"id":23875618701411,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecc6e362b9a6d5bf089b4e2767e90f789a0ff7be_3a7eddb5-982c-4145-814d-01190dcc5b93.webp?v=1714706228"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880602706019,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PC13","requires_shipping":true,"taxable":true,"featured_image":{"id":31470716846179,"product_id":7407924969571,"position":7,"created_at":"2024-05-03T11:17:19+08:00","updated_at":"2024-05-03T11:17:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3d46a5febd6a8cc11282517d27f1124aeeac6e0_304c20b0-d4b6-4f6d-8f10-3f15609d3aaf.webp?v=1714706239","variant_ids":[41880602706019]},"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-PC13","featured_media":{"alt":null,"id":23875620929635,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3d46a5febd6a8cc11282517d27f1124aeeac6e0_304c20b0-d4b6-4f6d-8f10-3f15609d3aaf.webp?v=1714706239"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/903e1c938ad9cc362e082be00d0799d42d3f1bf6_a0117844-7426-4eb9-8838-9d2646df0766.webp?v=1714706225","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecc6e362b9a6d5bf089b4e2767e90f789a0ff7be_3a7eddb5-982c-4145-814d-01190dcc5b93.webp?v=1714706228","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e31b0e58dcd25e449380d085fa35f2320c4a356_416eac4f-539a-4145-8fc9-1107027420f3.webp?v=1714706230","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb5d154a9cd9e34011110ee2ba388760e9bd4181_1abc3773-e1ad-49a5-892d-7c39a6efdd1b.webp?v=1714706232","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4979ccbe65df80a0f3fa08afc98ca562eba6c35_d4deb687-515f-4e24-b355-5c97c5fad916.webp?v=1714706235","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc058b58bc90c387092687e0d31c4ca9174d314e_bc0eee88-63cd-4383-972b-32d55468139c.webp?v=1714706237","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3d46a5febd6a8cc11282517d27f1124aeeac6e0_304c20b0-d4b6-4f6d-8f10-3f15609d3aaf.webp?v=1714706239","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28ab12b91707853cbb65ec8b786f8dfa70153e1d_ca60ee8f-5f02-4db1-b891-d6b6ec318284.webp?v=1714706242","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bffb69d3e03b1b6a7cc4de95202e901f8f628fdb_7d06a0a3-64ed-4bcd-a42b-82940cd1f22a.webp?v=1714706244","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/698cdd5936901eac0cda72fc9e61ee0cab253c05_33b1b02a-ab39-488b-84ea-f701aebf0b0f.webp?v=1714706246"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/903e1c938ad9cc362e082be00d0799d42d3f1bf6_a0117844-7426-4eb9-8838-9d2646df0766.webp?v=1714706225","options":["color"],"media":[{"alt":null,"id":23875618275427,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/903e1c938ad9cc362e082be00d0799d42d3f1bf6_a0117844-7426-4eb9-8838-9d2646df0766.webp?v=1714706225"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/903e1c938ad9cc362e082be00d0799d42d3f1bf6_a0117844-7426-4eb9-8838-9d2646df0766.webp?v=1714706225","width":2000},{"alt":null,"id":23875618701411,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecc6e362b9a6d5bf089b4e2767e90f789a0ff7be_3a7eddb5-982c-4145-814d-01190dcc5b93.webp?v=1714706228"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecc6e362b9a6d5bf089b4e2767e90f789a0ff7be_3a7eddb5-982c-4145-814d-01190dcc5b93.webp?v=1714706228","width":2000},{"alt":null,"id":23875619061859,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e31b0e58dcd25e449380d085fa35f2320c4a356_416eac4f-539a-4145-8fc9-1107027420f3.webp?v=1714706230"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e31b0e58dcd25e449380d085fa35f2320c4a356_416eac4f-539a-4145-8fc9-1107027420f3.webp?v=1714706230","width":2000},{"alt":null,"id":23875619553379,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb5d154a9cd9e34011110ee2ba388760e9bd4181_1abc3773-e1ad-49a5-892d-7c39a6efdd1b.webp?v=1714706232"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb5d154a9cd9e34011110ee2ba388760e9bd4181_1abc3773-e1ad-49a5-892d-7c39a6efdd1b.webp?v=1714706232","width":2000},{"alt":null,"id":23875620044899,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4979ccbe65df80a0f3fa08afc98ca562eba6c35_d4deb687-515f-4e24-b355-5c97c5fad916.webp?v=1714706235"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4979ccbe65df80a0f3fa08afc98ca562eba6c35_d4deb687-515f-4e24-b355-5c97c5fad916.webp?v=1714706235","width":2000},{"alt":null,"id":23875620438115,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc058b58bc90c387092687e0d31c4ca9174d314e_bc0eee88-63cd-4383-972b-32d55468139c.webp?v=1714706237"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc058b58bc90c387092687e0d31c4ca9174d314e_bc0eee88-63cd-4383-972b-32d55468139c.webp?v=1714706237","width":2000},{"alt":null,"id":23875620929635,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3d46a5febd6a8cc11282517d27f1124aeeac6e0_304c20b0-d4b6-4f6d-8f10-3f15609d3aaf.webp?v=1714706239"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3d46a5febd6a8cc11282517d27f1124aeeac6e0_304c20b0-d4b6-4f6d-8f10-3f15609d3aaf.webp?v=1714706239","width":2000},{"alt":null,"id":23875621388387,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28ab12b91707853cbb65ec8b786f8dfa70153e1d_ca60ee8f-5f02-4db1-b891-d6b6ec318284.webp?v=1714706242"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28ab12b91707853cbb65ec8b786f8dfa70153e1d_ca60ee8f-5f02-4db1-b891-d6b6ec318284.webp?v=1714706242","width":2000},{"alt":null,"id":23875621781603,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bffb69d3e03b1b6a7cc4de95202e901f8f628fdb_7d06a0a3-64ed-4bcd-a42b-82940cd1f22a.webp?v=1714706244"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bffb69d3e03b1b6a7cc4de95202e901f8f628fdb_7d06a0a3-64ed-4bcd-a42b-82940cd1f22a.webp?v=1714706244","width":2000},{"alt":null,"id":23875622174819,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/698cdd5936901eac0cda72fc9e61ee0cab253c05_33b1b02a-ab39-488b-84ea-f701aebf0b0f.webp?v=1714706246"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/698cdd5936901eac0cda72fc9e61ee0cab253c05_33b1b02a-ab39-488b-84ea-f701aebf0b0f.webp?v=1714706246","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41880602411107,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PC13","requires_shipping":true,"taxable":true,"featured_image":{"id":31470715011171,"product_id":7407924969571,"position":3,"created_at":"2024-05-03T11:17:10+08:00","updated_at":"2024-05-03T11:17:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e31b0e58dcd25e449380d085fa35f2320c4a356_416eac4f-539a-4145-8fc9-1107027420f3.webp?v=1714706230","variant_ids":[41880602411107]},"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-PC13","featured_media":{"alt":null,"id":23875619061859,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e31b0e58dcd25e449380d085fa35f2320c4a356_416eac4f-539a-4145-8fc9-1107027420f3.webp?v=1714706230"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880602476643,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PC13","requires_shipping":true,"taxable":true,"featured_image":{"id":31470714650723,"product_id":7407924969571,"position":2,"created_at":"2024-05-03T11:17:08+08:00","updated_at":"2024-05-03T11:17:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecc6e362b9a6d5bf089b4e2767e90f789a0ff7be_3a7eddb5-982c-4145-814d-01190dcc5b93.webp?v=1714706228","variant_ids":[41880602476643]},"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-PC13","featured_media":{"alt":null,"id":23875618701411,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecc6e362b9a6d5bf089b4e2767e90f789a0ff7be_3a7eddb5-982c-4145-814d-01190dcc5b93.webp?v=1714706228"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880602706019,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PC13","requires_shipping":true,"taxable":true,"featured_image":{"id":31470716846179,"product_id":7407924969571,"position":7,"created_at":"2024-05-03T11:17:19+08:00","updated_at":"2024-05-03T11:17:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3d46a5febd6a8cc11282517d27f1124aeeac6e0_304c20b0-d4b6-4f6d-8f10-3f15609d3aaf.webp?v=1714706239","variant_ids":[41880602706019]},"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-PC13","featured_media":{"alt":null,"id":23875620929635,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3d46a5febd6a8cc11282517d27f1124aeeac6e0_304c20b0-d4b6-4f6d-8f10-3f15609d3aaf.webp?v=1714706239"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41880602411107,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PC13","requires_shipping":true,"taxable":true,"featured_image":{"id":31470715011171,"product_id":7407924969571,"position":3,"created_at":"2024-05-03T11:17:10+08:00","updated_at":"2024-05-03T11:17:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e31b0e58dcd25e449380d085fa35f2320c4a356_416eac4f-539a-4145-8fc9-1107027420f3.webp?v=1714706230","variant_ids":[41880602411107]},"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-PC13","featured_media":{"alt":null,"id":23875619061859,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e31b0e58dcd25e449380d085fa35f2320c4a356_416eac4f-539a-4145-8fc9-1107027420f3.webp?v=1714706230"}},"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: "停產" }