$product = {"id":7408027271267,"title":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-溜溜球炫技-幽默系列","handle":"iphone-13-mini-mod-nx-printable-pc11","description":null,"published_at":"2024-06-11T16:29:27+08:00","created_at":"2024-05-03T11:44:19+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 13 mini","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-star-wars","Top50","type-Mod NX Printable"],"price":90000,"price_min":90000,"price_max":90000,"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":41881869156451,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PC11","requires_shipping":true,"taxable":true,"featured_image":{"id":31471009562723,"product_id":7408027271267,"position":10,"created_at":"2024-05-03T11:44:43+08:00","updated_at":"2024-05-03T11:44:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/257b15af7cb2dff764e9e9d0652c2de972db2529_c3c6c436-1da8-4b09-833d-02cdc12d5e00.webp?v=1714707883","variant_ids":[41881869156451]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-溜溜球炫技-幽默系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0122824-PC11","featured_media":{"alt":null,"id":23875914596451,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/257b15af7cb2dff764e9e9d0652c2de972db2529_c3c6c436-1da8-4b09-833d-02cdc12d5e00.webp?v=1714707883"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881869221987,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PC11","requires_shipping":true,"taxable":true,"featured_image":{"id":31471005859939,"product_id":7408027271267,"position":1,"created_at":"2024-05-03T11:44:22+08:00","updated_at":"2024-05-03T11:44:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89753f7058c5933407cdc43c12ec37189594ceb9_2ba5f2ea-3198-41ba-868d-df0c33be6846.webp?v=1714707862","variant_ids":[41881869221987]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-溜溜球炫技-幽默系列 - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0122804-PC11","featured_media":{"alt":null,"id":23875910893667,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89753f7058c5933407cdc43c12ec37189594ceb9_2ba5f2ea-3198-41ba-868d-df0c33be6846.webp?v=1714707862"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881869451363,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PC11","requires_shipping":true,"taxable":true,"featured_image":{"id":31471006711907,"product_id":7408027271267,"position":3,"created_at":"2024-05-03T11:44:27+08:00","updated_at":"2024-05-03T11:44:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70a943fa5fb177c25c75b0a70811d4010ca7f860_7bbeea66-ae9c-429c-a42f-05134bd311be.webp?v=1714707867","variant_ids":[41881869451363]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-溜溜球炫技-幽默系列 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01228J5-PC11","featured_media":{"alt":null,"id":23875911745635,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70a943fa5fb177c25c75b0a70811d4010ca7f860_7bbeea66-ae9c-429c-a42f-05134bd311be.webp?v=1714707867"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89753f7058c5933407cdc43c12ec37189594ceb9_2ba5f2ea-3198-41ba-868d-df0c33be6846.webp?v=1714707862","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9302d4a2b3f45b2f3d78287bc6bc9799a7bb1c7b_98bf75c3-1478-434f-9325-c366c1b35134.webp?v=1714707864","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70a943fa5fb177c25c75b0a70811d4010ca7f860_7bbeea66-ae9c-429c-a42f-05134bd311be.webp?v=1714707867","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfa1ec39e1d314da34b220ebe9487e75716dff5d_d6d95726-8e81-44db-a19c-483fa0cdc1b8.webp?v=1714707869","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81291a2048386ec19fe304e780dac5c8607301a2_92386c4b-d2e4-487f-91d5-a31a9d5b69c7.webp?v=1714707871","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fee1a324646652c72d19c4a9618bd7e1e9070db_8a87de63-156d-46ed-a859-2884de1ca3d7.webp?v=1714707874","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3bc4ebba1eb46e695a9b7a601832b7586a55d2b_1a670a66-6479-4ac0-a06a-e5e49d114d4c.webp?v=1714707876","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18c5743fe727d750ab2b112d4fd1b8aaf000c78e_d85b1960-6763-44d6-9295-12713d5bdfce.webp?v=1714707879","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9509498e7116d0c3e7555bbdd3698fbe72cb892_430e0049-084f-4167-a774-1e0b3e4f254a.webp?v=1714707881","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/257b15af7cb2dff764e9e9d0652c2de972db2529_c3c6c436-1da8-4b09-833d-02cdc12d5e00.webp?v=1714707883"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89753f7058c5933407cdc43c12ec37189594ceb9_2ba5f2ea-3198-41ba-868d-df0c33be6846.webp?v=1714707862","options":["color"],"media":[{"alt":null,"id":23875910893667,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89753f7058c5933407cdc43c12ec37189594ceb9_2ba5f2ea-3198-41ba-868d-df0c33be6846.webp?v=1714707862"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89753f7058c5933407cdc43c12ec37189594ceb9_2ba5f2ea-3198-41ba-868d-df0c33be6846.webp?v=1714707862","width":2000},{"alt":null,"id":23875911319651,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9302d4a2b3f45b2f3d78287bc6bc9799a7bb1c7b_98bf75c3-1478-434f-9325-c366c1b35134.webp?v=1714707864"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9302d4a2b3f45b2f3d78287bc6bc9799a7bb1c7b_98bf75c3-1478-434f-9325-c366c1b35134.webp?v=1714707864","width":2000},{"alt":null,"id":23875911745635,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70a943fa5fb177c25c75b0a70811d4010ca7f860_7bbeea66-ae9c-429c-a42f-05134bd311be.webp?v=1714707867"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70a943fa5fb177c25c75b0a70811d4010ca7f860_7bbeea66-ae9c-429c-a42f-05134bd311be.webp?v=1714707867","width":2000},{"alt":null,"id":23875912138851,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfa1ec39e1d314da34b220ebe9487e75716dff5d_d6d95726-8e81-44db-a19c-483fa0cdc1b8.webp?v=1714707869"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfa1ec39e1d314da34b220ebe9487e75716dff5d_d6d95726-8e81-44db-a19c-483fa0cdc1b8.webp?v=1714707869","width":2000},{"alt":null,"id":23875912695907,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81291a2048386ec19fe304e780dac5c8607301a2_92386c4b-d2e4-487f-91d5-a31a9d5b69c7.webp?v=1714707871"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81291a2048386ec19fe304e780dac5c8607301a2_92386c4b-d2e4-487f-91d5-a31a9d5b69c7.webp?v=1714707871","width":2000},{"alt":null,"id":23875913121891,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fee1a324646652c72d19c4a9618bd7e1e9070db_8a87de63-156d-46ed-a859-2884de1ca3d7.webp?v=1714707874"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fee1a324646652c72d19c4a9618bd7e1e9070db_8a87de63-156d-46ed-a859-2884de1ca3d7.webp?v=1714707874","width":2000},{"alt":null,"id":23875913416803,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3bc4ebba1eb46e695a9b7a601832b7586a55d2b_1a670a66-6479-4ac0-a06a-e5e49d114d4c.webp?v=1714707876"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3bc4ebba1eb46e695a9b7a601832b7586a55d2b_1a670a66-6479-4ac0-a06a-e5e49d114d4c.webp?v=1714707876","width":2000},{"alt":null,"id":23875913777251,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18c5743fe727d750ab2b112d4fd1b8aaf000c78e_d85b1960-6763-44d6-9295-12713d5bdfce.webp?v=1714707879"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18c5743fe727d750ab2b112d4fd1b8aaf000c78e_d85b1960-6763-44d6-9295-12713d5bdfce.webp?v=1714707879","width":2000},{"alt":null,"id":23875914236003,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9509498e7116d0c3e7555bbdd3698fbe72cb892_430e0049-084f-4167-a774-1e0b3e4f254a.webp?v=1714707881"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9509498e7116d0c3e7555bbdd3698fbe72cb892_430e0049-084f-4167-a774-1e0b3e4f254a.webp?v=1714707881","width":2000},{"alt":null,"id":23875914596451,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/257b15af7cb2dff764e9e9d0652c2de972db2529_c3c6c436-1da8-4b09-833d-02cdc12d5e00.webp?v=1714707883"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/257b15af7cb2dff764e9e9d0652c2de972db2529_c3c6c436-1da8-4b09-833d-02cdc12d5e00.webp?v=1714707883","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41881869156451,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PC11","requires_shipping":true,"taxable":true,"featured_image":{"id":31471009562723,"product_id":7408027271267,"position":10,"created_at":"2024-05-03T11:44:43+08:00","updated_at":"2024-05-03T11:44:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/257b15af7cb2dff764e9e9d0652c2de972db2529_c3c6c436-1da8-4b09-833d-02cdc12d5e00.webp?v=1714707883","variant_ids":[41881869156451]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-溜溜球炫技-幽默系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0122824-PC11","featured_media":{"alt":null,"id":23875914596451,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/257b15af7cb2dff764e9e9d0652c2de972db2529_c3c6c436-1da8-4b09-833d-02cdc12d5e00.webp?v=1714707883"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881869221987,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PC11","requires_shipping":true,"taxable":true,"featured_image":{"id":31471005859939,"product_id":7408027271267,"position":1,"created_at":"2024-05-03T11:44:22+08:00","updated_at":"2024-05-03T11:44:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89753f7058c5933407cdc43c12ec37189594ceb9_2ba5f2ea-3198-41ba-868d-df0c33be6846.webp?v=1714707862","variant_ids":[41881869221987]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-溜溜球炫技-幽默系列 - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0122804-PC11","featured_media":{"alt":null,"id":23875910893667,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89753f7058c5933407cdc43c12ec37189594ceb9_2ba5f2ea-3198-41ba-868d-df0c33be6846.webp?v=1714707862"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881869451363,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PC11","requires_shipping":true,"taxable":true,"featured_image":{"id":31471006711907,"product_id":7408027271267,"position":3,"created_at":"2024-05-03T11:44:27+08:00","updated_at":"2024-05-03T11:44:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70a943fa5fb177c25c75b0a70811d4010ca7f860_7bbeea66-ae9c-429c-a42f-05134bd311be.webp?v=1714707867","variant_ids":[41881869451363]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-溜溜球炫技-幽默系列 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01228J5-PC11","featured_media":{"alt":null,"id":23875911745635,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70a943fa5fb177c25c75b0a70811d4010ca7f860_7bbeea66-ae9c-429c-a42f-05134bd311be.webp?v=1714707867"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41881869156451,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PC11","requires_shipping":true,"taxable":true,"featured_image":{"id":31471009562723,"product_id":7408027271267,"position":10,"created_at":"2024-05-03T11:44:43+08:00","updated_at":"2024-05-03T11:44:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/257b15af7cb2dff764e9e9d0652c2de972db2529_c3c6c436-1da8-4b09-833d-02cdc12d5e00.webp?v=1714707883","variant_ids":[41881869156451]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-溜溜球炫技-幽默系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0122824-PC11","featured_media":{"alt":null,"id":23875914596451,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/257b15af7cb2dff764e9e9d0652c2de972db2529_c3c6c436-1da8-4b09-833d-02cdc12d5e00.webp?v=1714707883"}},"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: "停產"
}