$product = {"id":7414547578979,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 黑武士-黑白條紋","handle":"iphone-13-mini-mod-nx-magsafe-printable-pb20","description":null,"published_at":"2024-06-11T17:51:55+08:00","created_at":"2024-05-05T14:29:41+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":41907262750819,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31485727440995,"product_id":7414547578979,"position":5,"created_at":"2024-05-05T14:29:53+08:00","updated_at":"2024-05-05T14:29:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf7b755edfe9543be3c5d36f014c6731d734b83d_823b193f-ea34-4f11-b89e-9bed3fba9a94.webp?v=1714890593","variant_ids":[41907262750819]},"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-PB20","featured_media":{"alt":null,"id":23891049578595,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf7b755edfe9543be3c5d36f014c6731d734b83d_823b193f-ea34-4f11-b89e-9bed3fba9a94.webp?v=1714890593"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907262849123,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31485730586723,"product_id":7414547578979,"position":7,"created_at":"2024-05-05T14:29:58+08:00","updated_at":"2024-05-05T14:29:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4eae465748d0f98aa551d11b4fed3962801c8f8_7206710e-b757-4314-886c-35a196d8d678.webp?v=1714890598","variant_ids":[41907262849123]},"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-PB20","featured_media":{"alt":null,"id":23891053838435,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4eae465748d0f98aa551d11b4fed3962801c8f8_7206710e-b757-4314-886c-35a196d8d678.webp?v=1714890598"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907263111267,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31485735600227,"product_id":7414547578979,"position":10,"created_at":"2024-05-05T14:30:05+08:00","updated_at":"2024-05-05T14:30:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40146da6ae3dd9423758e103714fb5a44ba7d523_c568d115-2ef6-4baa-9526-4ac656eb74df.webp?v=1714890605","variant_ids":[41907263111267]},"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-PB20","featured_media":{"alt":null,"id":23891059245155,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40146da6ae3dd9423758e103714fb5a44ba7d523_c568d115-2ef6-4baa-9526-4ac656eb74df.webp?v=1714890605"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9378ccfc558c76cab9c55f76256d7a56f4cd64f_1c2e4251-d8b5-45b9-9d31-44e434dd7ac8.webp?v=1714890583","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/beda8360828fb25be8d0a96335a2122ff2ab8dc1_2cab1d54-b943-43b6-8e4c-a78caad28a3b.webp?v=1714890586","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a22ac833b6d03d3f1bee3bbfae704e63035ad63_17508197-a95a-4398-97b2-9de2218049b9.webp?v=1714890588","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e49ec39b1fc28e894bce3eaccd8a23baeb708bd4_8356eb3b-ab4e-4042-af62-2700948a1c09.webp?v=1714890591","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf7b755edfe9543be3c5d36f014c6731d734b83d_823b193f-ea34-4f11-b89e-9bed3fba9a94.webp?v=1714890593","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc349bd717f34466cf0208416574baf50230615e_55316733-c114-448a-9cf8-c4071b02b5f0.webp?v=1714890595","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4eae465748d0f98aa551d11b4fed3962801c8f8_7206710e-b757-4314-886c-35a196d8d678.webp?v=1714890598","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61fb16ae998874c00f1dbf8720bf861ebbaf79de_611a8be1-e5c9-47a6-b53e-ed7b1c6c658d.webp?v=1714890600","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ce1bb51bbffa5c836dbbcf009fb0bb3fc528a01_6ed8c347-0bfc-46d9-9b7b-eb15c844dccd.webp?v=1714890602","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40146da6ae3dd9423758e103714fb5a44ba7d523_c568d115-2ef6-4baa-9526-4ac656eb74df.webp?v=1714890605"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9378ccfc558c76cab9c55f76256d7a56f4cd64f_1c2e4251-d8b5-45b9-9d31-44e434dd7ac8.webp?v=1714890583","options":["color"],"media":[{"alt":null,"id":23891041386595,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9378ccfc558c76cab9c55f76256d7a56f4cd64f_1c2e4251-d8b5-45b9-9d31-44e434dd7ac8.webp?v=1714890583"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9378ccfc558c76cab9c55f76256d7a56f4cd64f_1c2e4251-d8b5-45b9-9d31-44e434dd7ac8.webp?v=1714890583","width":2000},{"alt":null,"id":23891043385443,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/beda8360828fb25be8d0a96335a2122ff2ab8dc1_2cab1d54-b943-43b6-8e4c-a78caad28a3b.webp?v=1714890586"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/beda8360828fb25be8d0a96335a2122ff2ab8dc1_2cab1d54-b943-43b6-8e4c-a78caad28a3b.webp?v=1714890586","width":2000},{"alt":null,"id":23891045417059,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a22ac833b6d03d3f1bee3bbfae704e63035ad63_17508197-a95a-4398-97b2-9de2218049b9.webp?v=1714890588"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a22ac833b6d03d3f1bee3bbfae704e63035ad63_17508197-a95a-4398-97b2-9de2218049b9.webp?v=1714890588","width":2000},{"alt":null,"id":23891047809123,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e49ec39b1fc28e894bce3eaccd8a23baeb708bd4_8356eb3b-ab4e-4042-af62-2700948a1c09.webp?v=1714890591"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e49ec39b1fc28e894bce3eaccd8a23baeb708bd4_8356eb3b-ab4e-4042-af62-2700948a1c09.webp?v=1714890591","width":2000},{"alt":null,"id":23891049578595,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf7b755edfe9543be3c5d36f014c6731d734b83d_823b193f-ea34-4f11-b89e-9bed3fba9a94.webp?v=1714890593"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf7b755edfe9543be3c5d36f014c6731d734b83d_823b193f-ea34-4f11-b89e-9bed3fba9a94.webp?v=1714890593","width":2000},{"alt":null,"id":23891051413603,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc349bd717f34466cf0208416574baf50230615e_55316733-c114-448a-9cf8-c4071b02b5f0.webp?v=1714890595"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc349bd717f34466cf0208416574baf50230615e_55316733-c114-448a-9cf8-c4071b02b5f0.webp?v=1714890595","width":2000},{"alt":null,"id":23891053838435,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4eae465748d0f98aa551d11b4fed3962801c8f8_7206710e-b757-4314-886c-35a196d8d678.webp?v=1714890598"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4eae465748d0f98aa551d11b4fed3962801c8f8_7206710e-b757-4314-886c-35a196d8d678.webp?v=1714890598","width":2000},{"alt":null,"id":23891055607907,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61fb16ae998874c00f1dbf8720bf861ebbaf79de_611a8be1-e5c9-47a6-b53e-ed7b1c6c658d.webp?v=1714890600"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61fb16ae998874c00f1dbf8720bf861ebbaf79de_611a8be1-e5c9-47a6-b53e-ed7b1c6c658d.webp?v=1714890600","width":2000},{"alt":null,"id":23891057573987,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ce1bb51bbffa5c836dbbcf009fb0bb3fc528a01_6ed8c347-0bfc-46d9-9b7b-eb15c844dccd.webp?v=1714890602"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ce1bb51bbffa5c836dbbcf009fb0bb3fc528a01_6ed8c347-0bfc-46d9-9b7b-eb15c844dccd.webp?v=1714890602","width":2000},{"alt":null,"id":23891059245155,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40146da6ae3dd9423758e103714fb5a44ba7d523_c568d115-2ef6-4baa-9526-4ac656eb74df.webp?v=1714890605"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40146da6ae3dd9423758e103714fb5a44ba7d523_c568d115-2ef6-4baa-9526-4ac656eb74df.webp?v=1714890605","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41907262750819,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31485727440995,"product_id":7414547578979,"position":5,"created_at":"2024-05-05T14:29:53+08:00","updated_at":"2024-05-05T14:29:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf7b755edfe9543be3c5d36f014c6731d734b83d_823b193f-ea34-4f11-b89e-9bed3fba9a94.webp?v=1714890593","variant_ids":[41907262750819]},"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-PB20","featured_media":{"alt":null,"id":23891049578595,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf7b755edfe9543be3c5d36f014c6731d734b83d_823b193f-ea34-4f11-b89e-9bed3fba9a94.webp?v=1714890593"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907262849123,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31485730586723,"product_id":7414547578979,"position":7,"created_at":"2024-05-05T14:29:58+08:00","updated_at":"2024-05-05T14:29:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4eae465748d0f98aa551d11b4fed3962801c8f8_7206710e-b757-4314-886c-35a196d8d678.webp?v=1714890598","variant_ids":[41907262849123]},"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-PB20","featured_media":{"alt":null,"id":23891053838435,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4eae465748d0f98aa551d11b4fed3962801c8f8_7206710e-b757-4314-886c-35a196d8d678.webp?v=1714890598"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907263111267,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31485735600227,"product_id":7414547578979,"position":10,"created_at":"2024-05-05T14:30:05+08:00","updated_at":"2024-05-05T14:30:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40146da6ae3dd9423758e103714fb5a44ba7d523_c568d115-2ef6-4baa-9526-4ac656eb74df.webp?v=1714890605","variant_ids":[41907263111267]},"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-PB20","featured_media":{"alt":null,"id":23891059245155,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40146da6ae3dd9423758e103714fb5a44ba7d523_c568d115-2ef6-4baa-9526-4ac656eb74df.webp?v=1714890605"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41907262750819,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31485727440995,"product_id":7414547578979,"position":5,"created_at":"2024-05-05T14:29:53+08:00","updated_at":"2024-05-05T14:29:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf7b755edfe9543be3c5d36f014c6731d734b83d_823b193f-ea34-4f11-b89e-9bed3fba9a94.webp?v=1714890593","variant_ids":[41907262750819]},"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-PB20","featured_media":{"alt":null,"id":23891049578595,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf7b755edfe9543be3c5d36f014c6731d734b83d_823b193f-ea34-4f11-b89e-9bed3fba9a94.webp?v=1714890593"}},"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: "停產"
}