$product = {"id":7414126575715,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 小圖款-BB8","handle":"iphone-13-mini-mod-nx-magsafe-printable-pc04","description":null,"published_at":"2024-06-11T17:49:11+08:00","created_at":"2024-05-05T14:11:20+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":41904263266403,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PC04","requires_shipping":true,"taxable":true,"featured_image":{"id":31484735127651,"product_id":7414126575715,"position":10,"created_at":"2024-05-05T14:11:43+08:00","updated_at":"2024-05-05T14:11:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7689a7893aa4d2dc0c60eff3c50cf7047d69136e_04f70232-209f-43dc-acdd-4bc81b78a1da.webp?v=1714889503","variant_ids":[41904263266403]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 小圖款-BB8 - 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-PC04","featured_media":{"alt":null,"id":23890029740131,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7689a7893aa4d2dc0c60eff3c50cf7047d69136e_04f70232-209f-43dc-acdd-4bc81b78a1da.webp?v=1714889503"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904263364707,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PC04","requires_shipping":true,"taxable":true,"featured_image":{"id":31484729327715,"product_id":7414126575715,"position":3,"created_at":"2024-05-05T14:11:27+08:00","updated_at":"2024-05-05T14:11:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fd025615c21f5aeda89f335797e8e7c4e90baad_237d4472-d075-417f-bd17-a97df8a5ad4c.webp?v=1714889487","variant_ids":[41904263364707]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 小圖款-BB8 - 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-PC04","featured_media":{"alt":null,"id":23890023940195,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fd025615c21f5aeda89f335797e8e7c4e90baad_237d4472-d075-417f-bd17-a97df8a5ad4c.webp?v=1714889487"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904263921763,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PC04","requires_shipping":true,"taxable":true,"featured_image":{"id":31484730966115,"product_id":7414126575715,"position":5,"created_at":"2024-05-05T14:11:31+08:00","updated_at":"2024-05-05T14:11:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad9e3ad5dc2c8e166a25fae688e26441ace3cb2f_4d6342c9-581c-4f06-9ceb-610d0793b584.webp?v=1714889491","variant_ids":[41904263921763]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 小圖款-BB8 - 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-PC04","featured_media":{"alt":null,"id":23890025775203,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad9e3ad5dc2c8e166a25fae688e26441ace3cb2f_4d6342c9-581c-4f06-9ceb-610d0793b584.webp?v=1714889491"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e448a9d7bb8ccc4d35601c85f2ac4538626d51f_b5800254-97b7-4bc8-9895-c1e03ae99372.webp?v=1714889482","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5650512ca8a433d27262512958b9e56339172e68_9dc7d098-8699-4e35-a2d0-60a6dd2cf433.webp?v=1714889485","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fd025615c21f5aeda89f335797e8e7c4e90baad_237d4472-d075-417f-bd17-a97df8a5ad4c.webp?v=1714889487","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a7e21a7841a85e4a0defceb2a485605cfc2f7fd_f0aee8ad-636e-4f76-b4ce-bc4ed9cc0aed.webp?v=1714889489","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad9e3ad5dc2c8e166a25fae688e26441ace3cb2f_4d6342c9-581c-4f06-9ceb-610d0793b584.webp?v=1714889491","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fab8b97bc5d46debb39d96c36b01f5c4392ed71b_bce8bbac-129d-46c8-b2b1-e5befd79ab66.webp?v=1714889494","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f946c94a919f98195b2a150bd52334519fc30a94_4243832f-d1cb-4af5-a4ca-10bc6ddead0e.webp?v=1714889496","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05bb9908f0d24238db7f553bbb8e236fa172a912_c9df08fe-9946-4928-bf64-3a466a1dc4f2.webp?v=1714889498","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31ecb18d83a4a0f1cbc7710686e3e3f48de8146c_594de55c-6d8e-4710-a1b7-135638ce4ae7.webp?v=1714889500","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7689a7893aa4d2dc0c60eff3c50cf7047d69136e_04f70232-209f-43dc-acdd-4bc81b78a1da.webp?v=1714889503"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e448a9d7bb8ccc4d35601c85f2ac4538626d51f_b5800254-97b7-4bc8-9895-c1e03ae99372.webp?v=1714889482","options":["color"],"media":[{"alt":null,"id":23890022367331,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e448a9d7bb8ccc4d35601c85f2ac4538626d51f_b5800254-97b7-4bc8-9895-c1e03ae99372.webp?v=1714889482"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e448a9d7bb8ccc4d35601c85f2ac4538626d51f_b5800254-97b7-4bc8-9895-c1e03ae99372.webp?v=1714889482","width":2000},{"alt":null,"id":23890023153763,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5650512ca8a433d27262512958b9e56339172e68_9dc7d098-8699-4e35-a2d0-60a6dd2cf433.webp?v=1714889485"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5650512ca8a433d27262512958b9e56339172e68_9dc7d098-8699-4e35-a2d0-60a6dd2cf433.webp?v=1714889485","width":2000},{"alt":null,"id":23890023940195,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fd025615c21f5aeda89f335797e8e7c4e90baad_237d4472-d075-417f-bd17-a97df8a5ad4c.webp?v=1714889487"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fd025615c21f5aeda89f335797e8e7c4e90baad_237d4472-d075-417f-bd17-a97df8a5ad4c.webp?v=1714889487","width":2000},{"alt":null,"id":23890024857699,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a7e21a7841a85e4a0defceb2a485605cfc2f7fd_f0aee8ad-636e-4f76-b4ce-bc4ed9cc0aed.webp?v=1714889489"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a7e21a7841a85e4a0defceb2a485605cfc2f7fd_f0aee8ad-636e-4f76-b4ce-bc4ed9cc0aed.webp?v=1714889489","width":2000},{"alt":null,"id":23890025775203,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad9e3ad5dc2c8e166a25fae688e26441ace3cb2f_4d6342c9-581c-4f06-9ceb-610d0793b584.webp?v=1714889491"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad9e3ad5dc2c8e166a25fae688e26441ace3cb2f_4d6342c9-581c-4f06-9ceb-610d0793b584.webp?v=1714889491","width":2000},{"alt":null,"id":23890026561635,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fab8b97bc5d46debb39d96c36b01f5c4392ed71b_bce8bbac-129d-46c8-b2b1-e5befd79ab66.webp?v=1714889494"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fab8b97bc5d46debb39d96c36b01f5c4392ed71b_bce8bbac-129d-46c8-b2b1-e5befd79ab66.webp?v=1714889494","width":2000},{"alt":null,"id":23890027446371,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f946c94a919f98195b2a150bd52334519fc30a94_4243832f-d1cb-4af5-a4ca-10bc6ddead0e.webp?v=1714889496"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f946c94a919f98195b2a150bd52334519fc30a94_4243832f-d1cb-4af5-a4ca-10bc6ddead0e.webp?v=1714889496","width":2000},{"alt":null,"id":23890028232803,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05bb9908f0d24238db7f553bbb8e236fa172a912_c9df08fe-9946-4928-bf64-3a466a1dc4f2.webp?v=1714889498"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05bb9908f0d24238db7f553bbb8e236fa172a912_c9df08fe-9946-4928-bf64-3a466a1dc4f2.webp?v=1714889498","width":2000},{"alt":null,"id":23890028986467,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31ecb18d83a4a0f1cbc7710686e3e3f48de8146c_594de55c-6d8e-4710-a1b7-135638ce4ae7.webp?v=1714889500"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31ecb18d83a4a0f1cbc7710686e3e3f48de8146c_594de55c-6d8e-4710-a1b7-135638ce4ae7.webp?v=1714889500","width":2000},{"alt":null,"id":23890029740131,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7689a7893aa4d2dc0c60eff3c50cf7047d69136e_04f70232-209f-43dc-acdd-4bc81b78a1da.webp?v=1714889503"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7689a7893aa4d2dc0c60eff3c50cf7047d69136e_04f70232-209f-43dc-acdd-4bc81b78a1da.webp?v=1714889503","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41904263266403,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PC04","requires_shipping":true,"taxable":true,"featured_image":{"id":31484735127651,"product_id":7414126575715,"position":10,"created_at":"2024-05-05T14:11:43+08:00","updated_at":"2024-05-05T14:11:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7689a7893aa4d2dc0c60eff3c50cf7047d69136e_04f70232-209f-43dc-acdd-4bc81b78a1da.webp?v=1714889503","variant_ids":[41904263266403]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 小圖款-BB8 - 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-PC04","featured_media":{"alt":null,"id":23890029740131,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7689a7893aa4d2dc0c60eff3c50cf7047d69136e_04f70232-209f-43dc-acdd-4bc81b78a1da.webp?v=1714889503"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904263364707,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PC04","requires_shipping":true,"taxable":true,"featured_image":{"id":31484729327715,"product_id":7414126575715,"position":3,"created_at":"2024-05-05T14:11:27+08:00","updated_at":"2024-05-05T14:11:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fd025615c21f5aeda89f335797e8e7c4e90baad_237d4472-d075-417f-bd17-a97df8a5ad4c.webp?v=1714889487","variant_ids":[41904263364707]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 小圖款-BB8 - 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-PC04","featured_media":{"alt":null,"id":23890023940195,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fd025615c21f5aeda89f335797e8e7c4e90baad_237d4472-d075-417f-bd17-a97df8a5ad4c.webp?v=1714889487"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904263921763,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PC04","requires_shipping":true,"taxable":true,"featured_image":{"id":31484730966115,"product_id":7414126575715,"position":5,"created_at":"2024-05-05T14:11:31+08:00","updated_at":"2024-05-05T14:11:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad9e3ad5dc2c8e166a25fae688e26441ace3cb2f_4d6342c9-581c-4f06-9ceb-610d0793b584.webp?v=1714889491","variant_ids":[41904263921763]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 小圖款-BB8 - 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-PC04","featured_media":{"alt":null,"id":23890025775203,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad9e3ad5dc2c8e166a25fae688e26441ace3cb2f_4d6342c9-581c-4f06-9ceb-610d0793b584.webp?v=1714889491"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41904263266403,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PC04","requires_shipping":true,"taxable":true,"featured_image":{"id":31484735127651,"product_id":7414126575715,"position":10,"created_at":"2024-05-05T14:11:43+08:00","updated_at":"2024-05-05T14:11:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7689a7893aa4d2dc0c60eff3c50cf7047d69136e_04f70232-209f-43dc-acdd-4bc81b78a1da.webp?v=1714889503","variant_ids":[41904263266403]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 小圖款-BB8 - 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-PC04","featured_media":{"alt":null,"id":23890029740131,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7689a7893aa4d2dc0c60eff3c50cf7047d69136e_04f70232-209f-43dc-acdd-4bc81b78a1da.webp?v=1714889503"}},"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: "停產"
}