$product = {"id":7411298074723,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - Spaceship Logo-經典","handle":"iphone-14-pro-mod-nx-magsafe-printable-pb76","description":null,"published_at":"2024-06-11T17:41:10+08:00","created_at":"2024-05-05T00:02:38+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 14 Pro","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":41897121775715,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB76","requires_shipping":true,"taxable":true,"featured_image":{"id":31480077189219,"product_id":7411298074723,"position":3,"created_at":"2024-05-05T00:02:45+08:00","updated_at":"2024-05-05T00:02:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2c9ec68b1fde3e5cd5b7f3f67ac9da66a7d14d7_79323010-f40d-45ee-a66d-50b78a88d9bf.webp?v=1714838565","variant_ids":[41897121775715]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - Spaceship Logo-經典 - 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":"MPB0126224-PB76","featured_media":{"alt":null,"id":23885327925347,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2c9ec68b1fde3e5cd5b7f3f67ac9da66a7d14d7_79323010-f40d-45ee-a66d-50b78a88d9bf.webp?v=1714838565"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897121841251,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB76","requires_shipping":true,"taxable":true,"featured_image":{"id":31480077713507,"product_id":7411298074723,"position":4,"created_at":"2024-05-05T00:02:47+08:00","updated_at":"2024-05-05T00:02:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8068a4884db204d91313b94528ec2099ba1d79b_a65e3212-35e7-42b7-b201-e6169cea8c65.webp?v=1714838567","variant_ids":[41897121841251]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - Spaceship Logo-經典 - 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":"MPB0126204-PB76","featured_media":{"alt":null,"id":23885328449635,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8068a4884db204d91313b94528ec2099ba1d79b_a65e3212-35e7-42b7-b201-e6169cea8c65.webp?v=1714838567"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897122136163,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB76","requires_shipping":true,"taxable":true,"featured_image":{"id":31480078106723,"product_id":7411298074723,"position":5,"created_at":"2024-05-05T00:02:50+08:00","updated_at":"2024-05-05T00:02:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b452e71c213bf20d764d648f3a04d964aeeeccd9_9e8c9b61-2225-4e36-bee6-58ee1fce6182.webp?v=1714838570","variant_ids":[41897122136163]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - Spaceship Logo-經典 - 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":"MPB01262J5-PB76","featured_media":{"alt":null,"id":23885328908387,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b452e71c213bf20d764d648f3a04d964aeeeccd9_9e8c9b61-2225-4e36-bee6-58ee1fce6182.webp?v=1714838570"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3ef43ba31ff86bf149e70ee55295200c3052b74_28287eee-469d-4d66-92cd-dbce1f743365.webp?v=1714838560","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a032a38768f7382b47d51ad25f2888b9e8ecc70_0b680d2c-ba35-4c9e-80a7-28ac406eed6e.webp?v=1714838563","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2c9ec68b1fde3e5cd5b7f3f67ac9da66a7d14d7_79323010-f40d-45ee-a66d-50b78a88d9bf.webp?v=1714838565","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8068a4884db204d91313b94528ec2099ba1d79b_a65e3212-35e7-42b7-b201-e6169cea8c65.webp?v=1714838567","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b452e71c213bf20d764d648f3a04d964aeeeccd9_9e8c9b61-2225-4e36-bee6-58ee1fce6182.webp?v=1714838570","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd231c2ff3103b813d4a5789923589551422da94_411dabb8-66b5-4bfc-b26e-ccca64f9615f.webp?v=1714838572","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8dd55732ce60e9e476cff0b78d587712eed39b3_c5a47c37-a057-4af1-897a-bcba9724f3b0.webp?v=1714838574","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b65d1fcfe09c8dee4493ebb5e8f39df8076960a6_f845053b-311c-4212-8787-7d5ec2cf0eea.webp?v=1714838577","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66f26585a652bed4019601366a7609727712a289_de855b35-feaf-42d9-a9f2-5310f10a8685.webp?v=1714838579","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b21f5b404fce21e8725c60d359871efc71eddfe_a81197d7-c4da-46bd-a9b2-b8478094ee70.webp?v=1714838581"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3ef43ba31ff86bf149e70ee55295200c3052b74_28287eee-469d-4d66-92cd-dbce1f743365.webp?v=1714838560","options":["color"],"media":[{"alt":null,"id":23885326942307,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3ef43ba31ff86bf149e70ee55295200c3052b74_28287eee-469d-4d66-92cd-dbce1f743365.webp?v=1714838560"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3ef43ba31ff86bf149e70ee55295200c3052b74_28287eee-469d-4d66-92cd-dbce1f743365.webp?v=1714838560","width":2000},{"alt":null,"id":23885327466595,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a032a38768f7382b47d51ad25f2888b9e8ecc70_0b680d2c-ba35-4c9e-80a7-28ac406eed6e.webp?v=1714838563"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a032a38768f7382b47d51ad25f2888b9e8ecc70_0b680d2c-ba35-4c9e-80a7-28ac406eed6e.webp?v=1714838563","width":2000},{"alt":null,"id":23885327925347,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2c9ec68b1fde3e5cd5b7f3f67ac9da66a7d14d7_79323010-f40d-45ee-a66d-50b78a88d9bf.webp?v=1714838565"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2c9ec68b1fde3e5cd5b7f3f67ac9da66a7d14d7_79323010-f40d-45ee-a66d-50b78a88d9bf.webp?v=1714838565","width":2000},{"alt":null,"id":23885328449635,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8068a4884db204d91313b94528ec2099ba1d79b_a65e3212-35e7-42b7-b201-e6169cea8c65.webp?v=1714838567"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8068a4884db204d91313b94528ec2099ba1d79b_a65e3212-35e7-42b7-b201-e6169cea8c65.webp?v=1714838567","width":2000},{"alt":null,"id":23885328908387,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b452e71c213bf20d764d648f3a04d964aeeeccd9_9e8c9b61-2225-4e36-bee6-58ee1fce6182.webp?v=1714838570"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b452e71c213bf20d764d648f3a04d964aeeeccd9_9e8c9b61-2225-4e36-bee6-58ee1fce6182.webp?v=1714838570","width":2000},{"alt":null,"id":23885329432675,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd231c2ff3103b813d4a5789923589551422da94_411dabb8-66b5-4bfc-b26e-ccca64f9615f.webp?v=1714838572"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd231c2ff3103b813d4a5789923589551422da94_411dabb8-66b5-4bfc-b26e-ccca64f9615f.webp?v=1714838572","width":2000},{"alt":null,"id":23885329924195,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8dd55732ce60e9e476cff0b78d587712eed39b3_c5a47c37-a057-4af1-897a-bcba9724f3b0.webp?v=1714838574"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8dd55732ce60e9e476cff0b78d587712eed39b3_c5a47c37-a057-4af1-897a-bcba9724f3b0.webp?v=1714838574","width":2000},{"alt":null,"id":23885330350179,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b65d1fcfe09c8dee4493ebb5e8f39df8076960a6_f845053b-311c-4212-8787-7d5ec2cf0eea.webp?v=1714838577"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b65d1fcfe09c8dee4493ebb5e8f39df8076960a6_f845053b-311c-4212-8787-7d5ec2cf0eea.webp?v=1714838577","width":2000},{"alt":null,"id":23885330776163,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66f26585a652bed4019601366a7609727712a289_de855b35-feaf-42d9-a9f2-5310f10a8685.webp?v=1714838579"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66f26585a652bed4019601366a7609727712a289_de855b35-feaf-42d9-a9f2-5310f10a8685.webp?v=1714838579","width":2000},{"alt":null,"id":23885331333219,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b21f5b404fce21e8725c60d359871efc71eddfe_a81197d7-c4da-46bd-a9b2-b8478094ee70.webp?v=1714838581"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b21f5b404fce21e8725c60d359871efc71eddfe_a81197d7-c4da-46bd-a9b2-b8478094ee70.webp?v=1714838581","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41897121775715,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB76","requires_shipping":true,"taxable":true,"featured_image":{"id":31480077189219,"product_id":7411298074723,"position":3,"created_at":"2024-05-05T00:02:45+08:00","updated_at":"2024-05-05T00:02:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2c9ec68b1fde3e5cd5b7f3f67ac9da66a7d14d7_79323010-f40d-45ee-a66d-50b78a88d9bf.webp?v=1714838565","variant_ids":[41897121775715]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - Spaceship Logo-經典 - 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":"MPB0126224-PB76","featured_media":{"alt":null,"id":23885327925347,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2c9ec68b1fde3e5cd5b7f3f67ac9da66a7d14d7_79323010-f40d-45ee-a66d-50b78a88d9bf.webp?v=1714838565"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897121841251,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB76","requires_shipping":true,"taxable":true,"featured_image":{"id":31480077713507,"product_id":7411298074723,"position":4,"created_at":"2024-05-05T00:02:47+08:00","updated_at":"2024-05-05T00:02:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8068a4884db204d91313b94528ec2099ba1d79b_a65e3212-35e7-42b7-b201-e6169cea8c65.webp?v=1714838567","variant_ids":[41897121841251]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - Spaceship Logo-經典 - 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":"MPB0126204-PB76","featured_media":{"alt":null,"id":23885328449635,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8068a4884db204d91313b94528ec2099ba1d79b_a65e3212-35e7-42b7-b201-e6169cea8c65.webp?v=1714838567"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897122136163,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB76","requires_shipping":true,"taxable":true,"featured_image":{"id":31480078106723,"product_id":7411298074723,"position":5,"created_at":"2024-05-05T00:02:50+08:00","updated_at":"2024-05-05T00:02:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b452e71c213bf20d764d648f3a04d964aeeeccd9_9e8c9b61-2225-4e36-bee6-58ee1fce6182.webp?v=1714838570","variant_ids":[41897122136163]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - Spaceship Logo-經典 - 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":"MPB01262J5-PB76","featured_media":{"alt":null,"id":23885328908387,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b452e71c213bf20d764d648f3a04d964aeeeccd9_9e8c9b61-2225-4e36-bee6-58ee1fce6182.webp?v=1714838570"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41897121775715,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB76","requires_shipping":true,"taxable":true,"featured_image":{"id":31480077189219,"product_id":7411298074723,"position":3,"created_at":"2024-05-05T00:02:45+08:00","updated_at":"2024-05-05T00:02:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2c9ec68b1fde3e5cd5b7f3f67ac9da66a7d14d7_79323010-f40d-45ee-a66d-50b78a88d9bf.webp?v=1714838565","variant_ids":[41897121775715]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - Spaceship Logo-經典 - 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":"MPB0126224-PB76","featured_media":{"alt":null,"id":23885327925347,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2c9ec68b1fde3e5cd5b7f3f67ac9da66a7d14d7_79323010-f40d-45ee-a66d-50b78a88d9bf.webp?v=1714838565"}},"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: "停產"
}