$product = {"id":7413973188707,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 黑武士-經典","handle":"iphone-13-mini-mod-nx-magsafe-printable-pb23","description":null,"published_at":"2024-06-11T17:46:35+08:00","created_at":"2024-05-05T13:53:17+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":41902863515747,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB23","requires_shipping":true,"taxable":true,"featured_image":{"id":31484363604067,"product_id":7413973188707,"position":7,"created_at":"2024-05-05T13:53:34+08:00","updated_at":"2024-05-05T13:53:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b15c2a602f39c1cbd095aa54dd2e620d4d57db83_ac4c4996-3291-4da8-b9e6-6c2479a35291.webp?v=1714888414","variant_ids":[41902863515747]},"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-PB23","featured_media":{"alt":null,"id":23889657299043,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b15c2a602f39c1cbd095aa54dd2e620d4d57db83_ac4c4996-3291-4da8-b9e6-6c2479a35291.webp?v=1714888414"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902863581283,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB23","requires_shipping":true,"taxable":true,"featured_image":{"id":31484363178083,"product_id":7413973188707,"position":6,"created_at":"2024-05-05T13:53:32+08:00","updated_at":"2024-05-05T13:53:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09eafe00f87df400ee6e8924ef3608d0a235017a_cb4471f7-df16-4b12-b9f4-ec4a6d811248.webp?v=1714888412","variant_ids":[41902863581283]},"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-PB23","featured_media":{"alt":null,"id":23889656873059,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09eafe00f87df400ee6e8924ef3608d0a235017a_cb4471f7-df16-4b12-b9f4-ec4a6d811248.webp?v=1714888412"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902863810659,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB23","requires_shipping":true,"taxable":true,"featured_image":{"id":31484360949859,"product_id":7413973188707,"position":2,"created_at":"2024-05-05T13:53:22+08:00","updated_at":"2024-05-05T13:53:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8a92e3047ca417044e0bdf9eedeca70f0db6d87_ed693267-72b5-4ff1-a39f-ece1dffec3ff.webp?v=1714888402","variant_ids":[41902863810659]},"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-PB23","featured_media":{"alt":null,"id":23889654644835,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8a92e3047ca417044e0bdf9eedeca70f0db6d87_ed693267-72b5-4ff1-a39f-ece1dffec3ff.webp?v=1714888402"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed27c46721bce8559a468e5ca7b9b77904284d5f_db96a86e-efa7-488e-ac5e-af574cd7132c.webp?v=1714888400","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8a92e3047ca417044e0bdf9eedeca70f0db6d87_ed693267-72b5-4ff1-a39f-ece1dffec3ff.webp?v=1714888402","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25ca635d7527681368cd4e14bfc55beab1c8b855_65923b35-22cc-4611-943f-7fc00f93be55.webp?v=1714888404","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c1a41ed2eeb0fc2af8275a9c9a86c02f686eabe_874dbac9-845d-4604-a322-5ff40c2a420a.webp?v=1714888407","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6af9313de87f61327fb7ca1dbe2aadf16d8ae8c1_b5ed135c-9ab0-4411-9a1c-a606ed82f269.webp?v=1714888409","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09eafe00f87df400ee6e8924ef3608d0a235017a_cb4471f7-df16-4b12-b9f4-ec4a6d811248.webp?v=1714888412","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b15c2a602f39c1cbd095aa54dd2e620d4d57db83_ac4c4996-3291-4da8-b9e6-6c2479a35291.webp?v=1714888414","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f542966c8451c1001500c9970fe9607d09f54545_56da80f7-d6fb-4715-9f8f-b24bcf380a44.webp?v=1714888416","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db9c1cba5c785e9cee6646aaa2bdd721f400e9dd_29d870af-40ad-4f44-a8fd-4bc96dc33f8e.webp?v=1714888418","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d20f89ecbade9017aee4af82cbf81e9a92363a95_2167b0f3-3fbf-4580-aa4d-2779f6a997dc.webp?v=1714888420"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed27c46721bce8559a468e5ca7b9b77904284d5f_db96a86e-efa7-488e-ac5e-af574cd7132c.webp?v=1714888400","options":["color"],"media":[{"alt":null,"id":23889653858403,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed27c46721bce8559a468e5ca7b9b77904284d5f_db96a86e-efa7-488e-ac5e-af574cd7132c.webp?v=1714888400"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed27c46721bce8559a468e5ca7b9b77904284d5f_db96a86e-efa7-488e-ac5e-af574cd7132c.webp?v=1714888400","width":2000},{"alt":null,"id":23889654644835,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8a92e3047ca417044e0bdf9eedeca70f0db6d87_ed693267-72b5-4ff1-a39f-ece1dffec3ff.webp?v=1714888402"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8a92e3047ca417044e0bdf9eedeca70f0db6d87_ed693267-72b5-4ff1-a39f-ece1dffec3ff.webp?v=1714888402","width":2000},{"alt":null,"id":23889655234659,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25ca635d7527681368cd4e14bfc55beab1c8b855_65923b35-22cc-4611-943f-7fc00f93be55.webp?v=1714888404"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25ca635d7527681368cd4e14bfc55beab1c8b855_65923b35-22cc-4611-943f-7fc00f93be55.webp?v=1714888404","width":2000},{"alt":null,"id":23889655693411,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c1a41ed2eeb0fc2af8275a9c9a86c02f686eabe_874dbac9-845d-4604-a322-5ff40c2a420a.webp?v=1714888407"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c1a41ed2eeb0fc2af8275a9c9a86c02f686eabe_874dbac9-845d-4604-a322-5ff40c2a420a.webp?v=1714888407","width":2000},{"alt":null,"id":23889656316003,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6af9313de87f61327fb7ca1dbe2aadf16d8ae8c1_b5ed135c-9ab0-4411-9a1c-a606ed82f269.webp?v=1714888409"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6af9313de87f61327fb7ca1dbe2aadf16d8ae8c1_b5ed135c-9ab0-4411-9a1c-a606ed82f269.webp?v=1714888409","width":2000},{"alt":null,"id":23889656873059,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09eafe00f87df400ee6e8924ef3608d0a235017a_cb4471f7-df16-4b12-b9f4-ec4a6d811248.webp?v=1714888412"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09eafe00f87df400ee6e8924ef3608d0a235017a_cb4471f7-df16-4b12-b9f4-ec4a6d811248.webp?v=1714888412","width":2000},{"alt":null,"id":23889657299043,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b15c2a602f39c1cbd095aa54dd2e620d4d57db83_ac4c4996-3291-4da8-b9e6-6c2479a35291.webp?v=1714888414"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b15c2a602f39c1cbd095aa54dd2e620d4d57db83_ac4c4996-3291-4da8-b9e6-6c2479a35291.webp?v=1714888414","width":2000},{"alt":null,"id":23889657757795,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f542966c8451c1001500c9970fe9607d09f54545_56da80f7-d6fb-4715-9f8f-b24bcf380a44.webp?v=1714888416"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f542966c8451c1001500c9970fe9607d09f54545_56da80f7-d6fb-4715-9f8f-b24bcf380a44.webp?v=1714888416","width":2000},{"alt":null,"id":23889658151011,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db9c1cba5c785e9cee6646aaa2bdd721f400e9dd_29d870af-40ad-4f44-a8fd-4bc96dc33f8e.webp?v=1714888418"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db9c1cba5c785e9cee6646aaa2bdd721f400e9dd_29d870af-40ad-4f44-a8fd-4bc96dc33f8e.webp?v=1714888418","width":2000},{"alt":null,"id":23889658511459,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d20f89ecbade9017aee4af82cbf81e9a92363a95_2167b0f3-3fbf-4580-aa4d-2779f6a997dc.webp?v=1714888420"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d20f89ecbade9017aee4af82cbf81e9a92363a95_2167b0f3-3fbf-4580-aa4d-2779f6a997dc.webp?v=1714888420","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41902863515747,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB23","requires_shipping":true,"taxable":true,"featured_image":{"id":31484363604067,"product_id":7413973188707,"position":7,"created_at":"2024-05-05T13:53:34+08:00","updated_at":"2024-05-05T13:53:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b15c2a602f39c1cbd095aa54dd2e620d4d57db83_ac4c4996-3291-4da8-b9e6-6c2479a35291.webp?v=1714888414","variant_ids":[41902863515747]},"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-PB23","featured_media":{"alt":null,"id":23889657299043,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b15c2a602f39c1cbd095aa54dd2e620d4d57db83_ac4c4996-3291-4da8-b9e6-6c2479a35291.webp?v=1714888414"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902863581283,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB23","requires_shipping":true,"taxable":true,"featured_image":{"id":31484363178083,"product_id":7413973188707,"position":6,"created_at":"2024-05-05T13:53:32+08:00","updated_at":"2024-05-05T13:53:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09eafe00f87df400ee6e8924ef3608d0a235017a_cb4471f7-df16-4b12-b9f4-ec4a6d811248.webp?v=1714888412","variant_ids":[41902863581283]},"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-PB23","featured_media":{"alt":null,"id":23889656873059,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09eafe00f87df400ee6e8924ef3608d0a235017a_cb4471f7-df16-4b12-b9f4-ec4a6d811248.webp?v=1714888412"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902863810659,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB23","requires_shipping":true,"taxable":true,"featured_image":{"id":31484360949859,"product_id":7413973188707,"position":2,"created_at":"2024-05-05T13:53:22+08:00","updated_at":"2024-05-05T13:53:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8a92e3047ca417044e0bdf9eedeca70f0db6d87_ed693267-72b5-4ff1-a39f-ece1dffec3ff.webp?v=1714888402","variant_ids":[41902863810659]},"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-PB23","featured_media":{"alt":null,"id":23889654644835,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8a92e3047ca417044e0bdf9eedeca70f0db6d87_ed693267-72b5-4ff1-a39f-ece1dffec3ff.webp?v=1714888402"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41902863515747,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB23","requires_shipping":true,"taxable":true,"featured_image":{"id":31484363604067,"product_id":7413973188707,"position":7,"created_at":"2024-05-05T13:53:34+08:00","updated_at":"2024-05-05T13:53:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b15c2a602f39c1cbd095aa54dd2e620d4d57db83_ac4c4996-3291-4da8-b9e6-6c2479a35291.webp?v=1714888414","variant_ids":[41902863515747]},"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-PB23","featured_media":{"alt":null,"id":23889657299043,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b15c2a602f39c1cbd095aa54dd2e620d4d57db83_ac4c4996-3291-4da8-b9e6-6c2479a35291.webp?v=1714888414"}},"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: "停產"
}