$product = {"id":7407881158755,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-氣球布置-幽默系列","handle":"iphone-14-pro-mod-nx-printable-pc10","description":null,"published_at":"2024-06-11T16:25:28+08:00","created_at":"2024-05-03T11:08:27+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":41880019468387,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PC10","requires_shipping":true,"taxable":true,"featured_image":{"id":31470609858659,"product_id":7407881158755,"position":6,"created_at":"2024-05-03T11:08:42+08:00","updated_at":"2024-05-03T11:08:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2db302fba15e655fe642fc734206ef784ab2b95f_37029941-76a7-4085-87b7-0669130222b4.webp?v=1714705722","variant_ids":[41880019468387]},"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-PC10","featured_media":{"alt":null,"id":23875513778275,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2db302fba15e655fe642fc734206ef784ab2b95f_37029941-76a7-4085-87b7-0669130222b4.webp?v=1714705722"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880019533923,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PC10","requires_shipping":true,"taxable":true,"featured_image":{"id":31470610415715,"product_id":7407881158755,"position":7,"created_at":"2024-05-03T11:08:44+08:00","updated_at":"2024-05-03T11:08:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a0ab2784dc913c03b74dab51d1c096ef0ad8291_2f0acc52-80a9-42d6-8a3c-9f11accb5027.webp?v=1714705724","variant_ids":[41880019533923]},"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-PC10","featured_media":{"alt":null,"id":23875514335331,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a0ab2784dc913c03b74dab51d1c096ef0ad8291_2f0acc52-80a9-42d6-8a3c-9f11accb5027.webp?v=1714705724"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880019763299,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PC10","requires_shipping":true,"taxable":true,"featured_image":{"id":31470611103843,"product_id":7407881158755,"position":9,"created_at":"2024-05-03T11:08:49+08:00","updated_at":"2024-05-03T11:08:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0344f986ff61e4cd32c469a6cdd8bc4a047dcacc_6925bb16-42af-4119-8b53-f23178a6f882.webp?v=1714705729","variant_ids":[41880019763299]},"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-PC10","featured_media":{"alt":null,"id":23875515023459,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0344f986ff61e4cd32c469a6cdd8bc4a047dcacc_6925bb16-42af-4119-8b53-f23178a6f882.webp?v=1714705729"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7acc33b92aa87e67c6a3e80aec6b52696b63e10d_91d5f7a1-7a0e-4cd5-a024-72e2ca24ec2a.webp?v=1714705710","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb03dbf9388a98d6c2bcd37629f672abdc4d8a77_8ace1df0-b4f9-4bc2-9aaa-2bc3a93aa4d4.webp?v=1714705712","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcd4ff3735842e096c626c496eadf1ab9028ac08_b0f5cf81-549d-494d-bebb-392b7fbc2cec.webp?v=1714705715","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b568f0ba00c40346816749420883a94a55472b3b_189ee0c5-4f09-4649-aba2-04f2e2c57b4d.webp?v=1714705717","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec989c7e6be370cc5431052d883282e4e189297b_b51b2096-3630-45c6-99bd-a2789dac3b9b.webp?v=1714705720","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2db302fba15e655fe642fc734206ef784ab2b95f_37029941-76a7-4085-87b7-0669130222b4.webp?v=1714705722","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a0ab2784dc913c03b74dab51d1c096ef0ad8291_2f0acc52-80a9-42d6-8a3c-9f11accb5027.webp?v=1714705724","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1138e92014f00645659024a2dc4ebb0a76a8b118_4863d14c-c4c0-48ca-af2a-95a2dade79be.webp?v=1714705727","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0344f986ff61e4cd32c469a6cdd8bc4a047dcacc_6925bb16-42af-4119-8b53-f23178a6f882.webp?v=1714705729","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9597761b695e69dab69124a072a4628acc8fd77d_e6f683dc-9d73-4a79-b0fd-e67d149282c6.webp?v=1714705731"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7acc33b92aa87e67c6a3e80aec6b52696b63e10d_91d5f7a1-7a0e-4cd5-a024-72e2ca24ec2a.webp?v=1714705710","options":["color"],"media":[{"alt":null,"id":23875511255139,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7acc33b92aa87e67c6a3e80aec6b52696b63e10d_91d5f7a1-7a0e-4cd5-a024-72e2ca24ec2a.webp?v=1714705710"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7acc33b92aa87e67c6a3e80aec6b52696b63e10d_91d5f7a1-7a0e-4cd5-a024-72e2ca24ec2a.webp?v=1714705710","width":2000},{"alt":null,"id":23875511681123,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb03dbf9388a98d6c2bcd37629f672abdc4d8a77_8ace1df0-b4f9-4bc2-9aaa-2bc3a93aa4d4.webp?v=1714705712"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb03dbf9388a98d6c2bcd37629f672abdc4d8a77_8ace1df0-b4f9-4bc2-9aaa-2bc3a93aa4d4.webp?v=1714705712","width":2000},{"alt":null,"id":23875512205411,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcd4ff3735842e096c626c496eadf1ab9028ac08_b0f5cf81-549d-494d-bebb-392b7fbc2cec.webp?v=1714705715"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcd4ff3735842e096c626c496eadf1ab9028ac08_b0f5cf81-549d-494d-bebb-392b7fbc2cec.webp?v=1714705715","width":2000},{"alt":null,"id":23875512860771,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b568f0ba00c40346816749420883a94a55472b3b_189ee0c5-4f09-4649-aba2-04f2e2c57b4d.webp?v=1714705717"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b568f0ba00c40346816749420883a94a55472b3b_189ee0c5-4f09-4649-aba2-04f2e2c57b4d.webp?v=1714705717","width":2000},{"alt":null,"id":23875513417827,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec989c7e6be370cc5431052d883282e4e189297b_b51b2096-3630-45c6-99bd-a2789dac3b9b.webp?v=1714705720"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec989c7e6be370cc5431052d883282e4e189297b_b51b2096-3630-45c6-99bd-a2789dac3b9b.webp?v=1714705720","width":2000},{"alt":null,"id":23875513778275,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2db302fba15e655fe642fc734206ef784ab2b95f_37029941-76a7-4085-87b7-0669130222b4.webp?v=1714705722"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2db302fba15e655fe642fc734206ef784ab2b95f_37029941-76a7-4085-87b7-0669130222b4.webp?v=1714705722","width":2000},{"alt":null,"id":23875514335331,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a0ab2784dc913c03b74dab51d1c096ef0ad8291_2f0acc52-80a9-42d6-8a3c-9f11accb5027.webp?v=1714705724"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a0ab2784dc913c03b74dab51d1c096ef0ad8291_2f0acc52-80a9-42d6-8a3c-9f11accb5027.webp?v=1714705724","width":2000},{"alt":null,"id":23875514695779,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1138e92014f00645659024a2dc4ebb0a76a8b118_4863d14c-c4c0-48ca-af2a-95a2dade79be.webp?v=1714705727"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1138e92014f00645659024a2dc4ebb0a76a8b118_4863d14c-c4c0-48ca-af2a-95a2dade79be.webp?v=1714705727","width":2000},{"alt":null,"id":23875515023459,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0344f986ff61e4cd32c469a6cdd8bc4a047dcacc_6925bb16-42af-4119-8b53-f23178a6f882.webp?v=1714705729"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0344f986ff61e4cd32c469a6cdd8bc4a047dcacc_6925bb16-42af-4119-8b53-f23178a6f882.webp?v=1714705729","width":2000},{"alt":null,"id":23875515383907,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9597761b695e69dab69124a072a4628acc8fd77d_e6f683dc-9d73-4a79-b0fd-e67d149282c6.webp?v=1714705731"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9597761b695e69dab69124a072a4628acc8fd77d_e6f683dc-9d73-4a79-b0fd-e67d149282c6.webp?v=1714705731","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41880019468387,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PC10","requires_shipping":true,"taxable":true,"featured_image":{"id":31470609858659,"product_id":7407881158755,"position":6,"created_at":"2024-05-03T11:08:42+08:00","updated_at":"2024-05-03T11:08:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2db302fba15e655fe642fc734206ef784ab2b95f_37029941-76a7-4085-87b7-0669130222b4.webp?v=1714705722","variant_ids":[41880019468387]},"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-PC10","featured_media":{"alt":null,"id":23875513778275,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2db302fba15e655fe642fc734206ef784ab2b95f_37029941-76a7-4085-87b7-0669130222b4.webp?v=1714705722"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880019533923,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PC10","requires_shipping":true,"taxable":true,"featured_image":{"id":31470610415715,"product_id":7407881158755,"position":7,"created_at":"2024-05-03T11:08:44+08:00","updated_at":"2024-05-03T11:08:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a0ab2784dc913c03b74dab51d1c096ef0ad8291_2f0acc52-80a9-42d6-8a3c-9f11accb5027.webp?v=1714705724","variant_ids":[41880019533923]},"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-PC10","featured_media":{"alt":null,"id":23875514335331,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a0ab2784dc913c03b74dab51d1c096ef0ad8291_2f0acc52-80a9-42d6-8a3c-9f11accb5027.webp?v=1714705724"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880019763299,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PC10","requires_shipping":true,"taxable":true,"featured_image":{"id":31470611103843,"product_id":7407881158755,"position":9,"created_at":"2024-05-03T11:08:49+08:00","updated_at":"2024-05-03T11:08:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0344f986ff61e4cd32c469a6cdd8bc4a047dcacc_6925bb16-42af-4119-8b53-f23178a6f882.webp?v=1714705729","variant_ids":[41880019763299]},"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-PC10","featured_media":{"alt":null,"id":23875515023459,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0344f986ff61e4cd32c469a6cdd8bc4a047dcacc_6925bb16-42af-4119-8b53-f23178a6f882.webp?v=1714705729"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41880019468387,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PC10","requires_shipping":true,"taxable":true,"featured_image":{"id":31470609858659,"product_id":7407881158755,"position":6,"created_at":"2024-05-03T11:08:42+08:00","updated_at":"2024-05-03T11:08:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2db302fba15e655fe642fc734206ef784ab2b95f_37029941-76a7-4085-87b7-0669130222b4.webp?v=1714705722","variant_ids":[41880019468387]},"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-PC10","featured_media":{"alt":null,"id":23875513778275,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2db302fba15e655fe642fc734206ef784ab2b95f_37029941-76a7-4085-87b7-0669130222b4.webp?v=1714705722"}},"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: "停產" }