$product = {"id":7414369419363,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - Ewok-Yub Nub!","handle":"iphone-13-mini-mod-nx-magsafe-printable-pb81","description":null,"published_at":"2024-06-11T17:50:58+08:00","created_at":"2024-05-05T14:23:21+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":41905998200931,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB81","requires_shipping":true,"taxable":true,"featured_image":{"id":31485276946531,"product_id":7414369419363,"position":3,"created_at":"2024-05-05T14:23:28+08:00","updated_at":"2024-05-05T14:23:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d516dd0697a642e29b49bf0deb228460ceacf831_bf88b9e9-31c1-4dd3-8606-d8634f47d3c9.webp?v=1714890208","variant_ids":[41905998200931]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - Ewok-Yub Nub! - 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-PB81","featured_media":{"alt":null,"id":23890593087587,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d516dd0697a642e29b49bf0deb228460ceacf831_bf88b9e9-31c1-4dd3-8606-d8634f47d3c9.webp?v=1714890208"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905998332003,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB81","requires_shipping":true,"taxable":true,"featured_image":{"id":31485274325091,"product_id":7414369419363,"position":2,"created_at":"2024-05-05T14:23:26+08:00","updated_at":"2024-05-05T14:23:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/939262a2b48d8086ff7c7545a4491921fdead48d_81529af4-b8a4-4949-8a7c-98206b8e8e13.webp?v=1714890206","variant_ids":[41905998332003]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - Ewok-Yub Nub! - 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-PB81","featured_media":{"alt":null,"id":23890590236771,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/939262a2b48d8086ff7c7545a4491921fdead48d_81529af4-b8a4-4949-8a7c-98206b8e8e13.webp?v=1714890206"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905998757987,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB81","requires_shipping":true,"taxable":true,"featured_image":{"id":31485271310435,"product_id":7414369419363,"position":1,"created_at":"2024-05-05T14:23:24+08:00","updated_at":"2024-05-05T14:23:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/670a5bed7632b125d2d88411b0ef785d64e9b8df_f4690f08-a28f-48a7-9fcf-c5627cdbaa33.webp?v=1714890204","variant_ids":[41905998757987]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - Ewok-Yub Nub! - 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-PB81","featured_media":{"alt":null,"id":23890587353187,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/670a5bed7632b125d2d88411b0ef785d64e9b8df_f4690f08-a28f-48a7-9fcf-c5627cdbaa33.webp?v=1714890204"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/670a5bed7632b125d2d88411b0ef785d64e9b8df_f4690f08-a28f-48a7-9fcf-c5627cdbaa33.webp?v=1714890204","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/939262a2b48d8086ff7c7545a4491921fdead48d_81529af4-b8a4-4949-8a7c-98206b8e8e13.webp?v=1714890206","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d516dd0697a642e29b49bf0deb228460ceacf831_bf88b9e9-31c1-4dd3-8606-d8634f47d3c9.webp?v=1714890208","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5fd4cb3cbb92f75f6366ab7f69818b9f85b30d8_9888ce29-452e-4bdc-bfec-b1912c9ec7f0.webp?v=1714890211","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13fcf9c750752c08641a58a497af650e4ec81e8e_8caadb4a-a56d-4338-9035-3ad57f0e4377.webp?v=1714890213","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/852a5c4fad1a7742c9ddc15a573e9295e25dfde1_fa7db8cb-7203-4f4d-b2b8-087382f7a245.webp?v=1714890216","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0ba08b820374d6c6ec95d7a00027828105e2b4b_71e8e0ef-663c-4a86-9777-78b59e0bad92.webp?v=1714890218","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c987011090b603cb9b16411102eb38c8adda70f_5703d6a6-0e31-4321-b4ff-b6596189212c.webp?v=1714890220","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17aaa86e8c754e8162b40c7bb5aff80b3901362e_a9d29b58-9c78-4e35-8387-d60a2d2c9b98.webp?v=1714890222","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/444cf7bd394db6477614babc08fdabc8fa552e63_714ed356-de6e-4924-8304-fa6036c11f2a.webp?v=1714890225"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/670a5bed7632b125d2d88411b0ef785d64e9b8df_f4690f08-a28f-48a7-9fcf-c5627cdbaa33.webp?v=1714890204","options":["color"],"media":[{"alt":null,"id":23890587353187,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/670a5bed7632b125d2d88411b0ef785d64e9b8df_f4690f08-a28f-48a7-9fcf-c5627cdbaa33.webp?v=1714890204"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/670a5bed7632b125d2d88411b0ef785d64e9b8df_f4690f08-a28f-48a7-9fcf-c5627cdbaa33.webp?v=1714890204","width":2000},{"alt":null,"id":23890590236771,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/939262a2b48d8086ff7c7545a4491921fdead48d_81529af4-b8a4-4949-8a7c-98206b8e8e13.webp?v=1714890206"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/939262a2b48d8086ff7c7545a4491921fdead48d_81529af4-b8a4-4949-8a7c-98206b8e8e13.webp?v=1714890206","width":2000},{"alt":null,"id":23890593087587,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d516dd0697a642e29b49bf0deb228460ceacf831_bf88b9e9-31c1-4dd3-8606-d8634f47d3c9.webp?v=1714890208"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d516dd0697a642e29b49bf0deb228460ceacf831_bf88b9e9-31c1-4dd3-8606-d8634f47d3c9.webp?v=1714890208","width":2000},{"alt":null,"id":23890596036707,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5fd4cb3cbb92f75f6366ab7f69818b9f85b30d8_9888ce29-452e-4bdc-bfec-b1912c9ec7f0.webp?v=1714890211"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5fd4cb3cbb92f75f6366ab7f69818b9f85b30d8_9888ce29-452e-4bdc-bfec-b1912c9ec7f0.webp?v=1714890211","width":2000},{"alt":null,"id":23890599018595,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13fcf9c750752c08641a58a497af650e4ec81e8e_8caadb4a-a56d-4338-9035-3ad57f0e4377.webp?v=1714890213"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13fcf9c750752c08641a58a497af650e4ec81e8e_8caadb4a-a56d-4338-9035-3ad57f0e4377.webp?v=1714890213","width":2000},{"alt":null,"id":23890602033251,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/852a5c4fad1a7742c9ddc15a573e9295e25dfde1_fa7db8cb-7203-4f4d-b2b8-087382f7a245.webp?v=1714890216"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/852a5c4fad1a7742c9ddc15a573e9295e25dfde1_fa7db8cb-7203-4f4d-b2b8-087382f7a245.webp?v=1714890216","width":2000},{"alt":null,"id":23890604916835,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0ba08b820374d6c6ec95d7a00027828105e2b4b_71e8e0ef-663c-4a86-9777-78b59e0bad92.webp?v=1714890218"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0ba08b820374d6c6ec95d7a00027828105e2b4b_71e8e0ef-663c-4a86-9777-78b59e0bad92.webp?v=1714890218","width":2000},{"alt":null,"id":23890607669347,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c987011090b603cb9b16411102eb38c8adda70f_5703d6a6-0e31-4321-b4ff-b6596189212c.webp?v=1714890220"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c987011090b603cb9b16411102eb38c8adda70f_5703d6a6-0e31-4321-b4ff-b6596189212c.webp?v=1714890220","width":2000},{"alt":null,"id":23890610684003,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17aaa86e8c754e8162b40c7bb5aff80b3901362e_a9d29b58-9c78-4e35-8387-d60a2d2c9b98.webp?v=1714890222"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17aaa86e8c754e8162b40c7bb5aff80b3901362e_a9d29b58-9c78-4e35-8387-d60a2d2c9b98.webp?v=1714890222","width":2000},{"alt":null,"id":23890613534819,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/444cf7bd394db6477614babc08fdabc8fa552e63_714ed356-de6e-4924-8304-fa6036c11f2a.webp?v=1714890225"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/444cf7bd394db6477614babc08fdabc8fa552e63_714ed356-de6e-4924-8304-fa6036c11f2a.webp?v=1714890225","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41905998200931,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB81","requires_shipping":true,"taxable":true,"featured_image":{"id":31485276946531,"product_id":7414369419363,"position":3,"created_at":"2024-05-05T14:23:28+08:00","updated_at":"2024-05-05T14:23:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d516dd0697a642e29b49bf0deb228460ceacf831_bf88b9e9-31c1-4dd3-8606-d8634f47d3c9.webp?v=1714890208","variant_ids":[41905998200931]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - Ewok-Yub Nub! - 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-PB81","featured_media":{"alt":null,"id":23890593087587,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d516dd0697a642e29b49bf0deb228460ceacf831_bf88b9e9-31c1-4dd3-8606-d8634f47d3c9.webp?v=1714890208"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905998332003,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB81","requires_shipping":true,"taxable":true,"featured_image":{"id":31485274325091,"product_id":7414369419363,"position":2,"created_at":"2024-05-05T14:23:26+08:00","updated_at":"2024-05-05T14:23:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/939262a2b48d8086ff7c7545a4491921fdead48d_81529af4-b8a4-4949-8a7c-98206b8e8e13.webp?v=1714890206","variant_ids":[41905998332003]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - Ewok-Yub Nub! - 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-PB81","featured_media":{"alt":null,"id":23890590236771,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/939262a2b48d8086ff7c7545a4491921fdead48d_81529af4-b8a4-4949-8a7c-98206b8e8e13.webp?v=1714890206"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905998757987,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB81","requires_shipping":true,"taxable":true,"featured_image":{"id":31485271310435,"product_id":7414369419363,"position":1,"created_at":"2024-05-05T14:23:24+08:00","updated_at":"2024-05-05T14:23:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/670a5bed7632b125d2d88411b0ef785d64e9b8df_f4690f08-a28f-48a7-9fcf-c5627cdbaa33.webp?v=1714890204","variant_ids":[41905998757987]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - Ewok-Yub Nub! - 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-PB81","featured_media":{"alt":null,"id":23890587353187,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/670a5bed7632b125d2d88411b0ef785d64e9b8df_f4690f08-a28f-48a7-9fcf-c5627cdbaa33.webp?v=1714890204"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41905998200931,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB81","requires_shipping":true,"taxable":true,"featured_image":{"id":31485276946531,"product_id":7414369419363,"position":3,"created_at":"2024-05-05T14:23:28+08:00","updated_at":"2024-05-05T14:23:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d516dd0697a642e29b49bf0deb228460ceacf831_bf88b9e9-31c1-4dd3-8606-d8634f47d3c9.webp?v=1714890208","variant_ids":[41905998200931]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - Ewok-Yub Nub! - 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-PB81","featured_media":{"alt":null,"id":23890593087587,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d516dd0697a642e29b49bf0deb228460ceacf831_bf88b9e9-31c1-4dd3-8606-d8634f47d3c9.webp?v=1714890208"}},"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: "停產"
}