$product = {"id":7414457827427,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 鈦戰機-線條白","handle":"iphone-13-mini-mod-nx-magsafe-printable-pb18","description":null,"published_at":"2024-06-11T17:51:26+08:00","created_at":"2024-05-05T14:26:27+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":41906643239011,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB18","requires_shipping":true,"taxable":true,"featured_image":{"id":31485540892771,"product_id":7414457827427,"position":9,"created_at":"2024-05-05T14:26:48+08:00","updated_at":"2024-05-05T14:26:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5d1bf6a3e3cfce5b20d89e67d4720b0f77efce0_af8b0368-fe76-4ca0-b906-f512497623dd.webp?v=1714890408","variant_ids":[41906643239011]},"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-PB18","featured_media":{"alt":null,"id":23890858344547,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5d1bf6a3e3cfce5b20d89e67d4720b0f77efce0_af8b0368-fe76-4ca0-b906-f512497623dd.webp?v=1714890408"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906643304547,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB18","requires_shipping":true,"taxable":true,"featured_image":{"id":31485517529187,"product_id":7414457827427,"position":1,"created_at":"2024-05-05T14:26:29+08:00","updated_at":"2024-05-05T14:26:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b285217ffbfadc74e76141bdb43f28273525bf51_c0df26bc-3968-48a0-b7f6-b88b0bdb3d55.webp?v=1714890389","variant_ids":[41906643304547]},"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-PB18","featured_media":{"alt":null,"id":23890833997923,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b285217ffbfadc74e76141bdb43f28273525bf51_c0df26bc-3968-48a0-b7f6-b88b0bdb3d55.webp?v=1714890389"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906643632227,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB18","requires_shipping":true,"taxable":true,"featured_image":{"id":31485537747043,"product_id":7414457827427,"position":8,"created_at":"2024-05-05T14:26:45+08:00","updated_at":"2024-05-05T14:26:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bf836604db6dab22552f5ec15e2a9df8da0e444_38d4555c-d547-461e-9c51-46f2b4ef47cc.webp?v=1714890405","variant_ids":[41906643632227]},"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-PB18","featured_media":{"alt":null,"id":23890855002211,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bf836604db6dab22552f5ec15e2a9df8da0e444_38d4555c-d547-461e-9c51-46f2b4ef47cc.webp?v=1714890405"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b285217ffbfadc74e76141bdb43f28273525bf51_c0df26bc-3968-48a0-b7f6-b88b0bdb3d55.webp?v=1714890389","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84eab5f96e0f28ef2758b7030e3e9579b344f883_acfcf460-9c44-4b02-9b4d-ca06295ff380.webp?v=1714890392","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2c34b34368cd520751cb81976f0d7641e34ebca_52e71978-9bb9-4668-8011-7c6c9a32028b.webp?v=1714890394","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33a7b236f684b7bc810009a49c3c85eea2c07909_51c6ecf8-836e-456f-ab20-827c681a7999.webp?v=1714890396","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87713e7e9ab7e72e6c46eb678b8808da1bb4e3c0_962ab116-0965-4434-b8bf-ddbf145441e2.webp?v=1714890399","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90febcf62bdd573558f0efbbebec1f12b8637ee3_95f5365d-c8a5-4969-ab95-c61981bb8f8f.webp?v=1714890401","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f86c8f95f940f13d4d94c5bd20ca6cdfa98645fc_90278040-79ca-4b81-b30c-6e73a07a48ea.webp?v=1714890403","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bf836604db6dab22552f5ec15e2a9df8da0e444_38d4555c-d547-461e-9c51-46f2b4ef47cc.webp?v=1714890405","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5d1bf6a3e3cfce5b20d89e67d4720b0f77efce0_af8b0368-fe76-4ca0-b906-f512497623dd.webp?v=1714890408","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cb6823d5fe64daf2fca9a9880d50637d626169f_7fe96d13-9f7e-489b-a3e8-bca3c17778ef.webp?v=1714890410"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b285217ffbfadc74e76141bdb43f28273525bf51_c0df26bc-3968-48a0-b7f6-b88b0bdb3d55.webp?v=1714890389","options":["color"],"media":[{"alt":null,"id":23890833997923,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b285217ffbfadc74e76141bdb43f28273525bf51_c0df26bc-3968-48a0-b7f6-b88b0bdb3d55.webp?v=1714890389"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b285217ffbfadc74e76141bdb43f28273525bf51_c0df26bc-3968-48a0-b7f6-b88b0bdb3d55.webp?v=1714890389","width":2000},{"alt":null,"id":23890836095075,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84eab5f96e0f28ef2758b7030e3e9579b344f883_acfcf460-9c44-4b02-9b4d-ca06295ff380.webp?v=1714890392"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84eab5f96e0f28ef2758b7030e3e9579b344f883_acfcf460-9c44-4b02-9b4d-ca06295ff380.webp?v=1714890392","width":2000},{"alt":null,"id":23890838945891,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2c34b34368cd520751cb81976f0d7641e34ebca_52e71978-9bb9-4668-8011-7c6c9a32028b.webp?v=1714890394"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2c34b34368cd520751cb81976f0d7641e34ebca_52e71978-9bb9-4668-8011-7c6c9a32028b.webp?v=1714890394","width":2000},{"alt":null,"id":23890842320995,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33a7b236f684b7bc810009a49c3c85eea2c07909_51c6ecf8-836e-456f-ab20-827c681a7999.webp?v=1714890396"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33a7b236f684b7bc810009a49c3c85eea2c07909_51c6ecf8-836e-456f-ab20-827c681a7999.webp?v=1714890396","width":2000},{"alt":null,"id":23890845401187,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87713e7e9ab7e72e6c46eb678b8808da1bb4e3c0_962ab116-0965-4434-b8bf-ddbf145441e2.webp?v=1714890399"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87713e7e9ab7e72e6c46eb678b8808da1bb4e3c0_962ab116-0965-4434-b8bf-ddbf145441e2.webp?v=1714890399","width":2000},{"alt":null,"id":23890848481379,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90febcf62bdd573558f0efbbebec1f12b8637ee3_95f5365d-c8a5-4969-ab95-c61981bb8f8f.webp?v=1714890401"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90febcf62bdd573558f0efbbebec1f12b8637ee3_95f5365d-c8a5-4969-ab95-c61981bb8f8f.webp?v=1714890401","width":2000},{"alt":null,"id":23890851922019,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f86c8f95f940f13d4d94c5bd20ca6cdfa98645fc_90278040-79ca-4b81-b30c-6e73a07a48ea.webp?v=1714890403"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f86c8f95f940f13d4d94c5bd20ca6cdfa98645fc_90278040-79ca-4b81-b30c-6e73a07a48ea.webp?v=1714890403","width":2000},{"alt":null,"id":23890855002211,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bf836604db6dab22552f5ec15e2a9df8da0e444_38d4555c-d547-461e-9c51-46f2b4ef47cc.webp?v=1714890405"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bf836604db6dab22552f5ec15e2a9df8da0e444_38d4555c-d547-461e-9c51-46f2b4ef47cc.webp?v=1714890405","width":2000},{"alt":null,"id":23890858344547,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5d1bf6a3e3cfce5b20d89e67d4720b0f77efce0_af8b0368-fe76-4ca0-b906-f512497623dd.webp?v=1714890408"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5d1bf6a3e3cfce5b20d89e67d4720b0f77efce0_af8b0368-fe76-4ca0-b906-f512497623dd.webp?v=1714890408","width":2000},{"alt":null,"id":23890861457507,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cb6823d5fe64daf2fca9a9880d50637d626169f_7fe96d13-9f7e-489b-a3e8-bca3c17778ef.webp?v=1714890410"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cb6823d5fe64daf2fca9a9880d50637d626169f_7fe96d13-9f7e-489b-a3e8-bca3c17778ef.webp?v=1714890410","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41906643239011,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB18","requires_shipping":true,"taxable":true,"featured_image":{"id":31485540892771,"product_id":7414457827427,"position":9,"created_at":"2024-05-05T14:26:48+08:00","updated_at":"2024-05-05T14:26:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5d1bf6a3e3cfce5b20d89e67d4720b0f77efce0_af8b0368-fe76-4ca0-b906-f512497623dd.webp?v=1714890408","variant_ids":[41906643239011]},"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-PB18","featured_media":{"alt":null,"id":23890858344547,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5d1bf6a3e3cfce5b20d89e67d4720b0f77efce0_af8b0368-fe76-4ca0-b906-f512497623dd.webp?v=1714890408"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906643304547,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB18","requires_shipping":true,"taxable":true,"featured_image":{"id":31485517529187,"product_id":7414457827427,"position":1,"created_at":"2024-05-05T14:26:29+08:00","updated_at":"2024-05-05T14:26:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b285217ffbfadc74e76141bdb43f28273525bf51_c0df26bc-3968-48a0-b7f6-b88b0bdb3d55.webp?v=1714890389","variant_ids":[41906643304547]},"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-PB18","featured_media":{"alt":null,"id":23890833997923,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b285217ffbfadc74e76141bdb43f28273525bf51_c0df26bc-3968-48a0-b7f6-b88b0bdb3d55.webp?v=1714890389"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906643632227,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB18","requires_shipping":true,"taxable":true,"featured_image":{"id":31485537747043,"product_id":7414457827427,"position":8,"created_at":"2024-05-05T14:26:45+08:00","updated_at":"2024-05-05T14:26:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bf836604db6dab22552f5ec15e2a9df8da0e444_38d4555c-d547-461e-9c51-46f2b4ef47cc.webp?v=1714890405","variant_ids":[41906643632227]},"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-PB18","featured_media":{"alt":null,"id":23890855002211,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bf836604db6dab22552f5ec15e2a9df8da0e444_38d4555c-d547-461e-9c51-46f2b4ef47cc.webp?v=1714890405"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41906643239011,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB18","requires_shipping":true,"taxable":true,"featured_image":{"id":31485540892771,"product_id":7414457827427,"position":9,"created_at":"2024-05-05T14:26:48+08:00","updated_at":"2024-05-05T14:26:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5d1bf6a3e3cfce5b20d89e67d4720b0f77efce0_af8b0368-fe76-4ca0-b906-f512497623dd.webp?v=1714890408","variant_ids":[41906643239011]},"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-PB18","featured_media":{"alt":null,"id":23890858344547,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5d1bf6a3e3cfce5b20d89e67d4720b0f77efce0_af8b0368-fe76-4ca0-b906-f512497623dd.webp?v=1714890408"}},"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: "停產"
}