$product = {"id":7411394019427,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 波巴費特-推推-幽默系列","handle":"iphone-14-pro-mod-nx-magsafe-printable-pc08","description":null,"published_at":"2024-06-11T17:43:46+08:00","created_at":"2024-05-05T00:21:19+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":41898331406435,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PC08","requires_shipping":true,"taxable":true,"featured_image":{"id":31480317444195,"product_id":7411394019427,"position":4,"created_at":"2024-05-05T00:21:28+08:00","updated_at":"2024-05-05T00:21:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97850fd7685608d3bdf766c76683031763fdc400_0fa15582-1922-4165-bd34-8d7cced1cb12.webp?v=1714839688","variant_ids":[41898331406435]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 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":"MPB0126224-PC08","featured_media":{"alt":null,"id":23885568868451,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97850fd7685608d3bdf766c76683031763fdc400_0fa15582-1922-4165-bd34-8d7cced1cb12.webp?v=1714839688"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898331668579,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PC08","requires_shipping":true,"taxable":true,"featured_image":{"id":31480319836259,"product_id":7411394019427,"position":9,"created_at":"2024-05-05T00:21:40+08:00","updated_at":"2024-05-05T00:21:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb17a0f3e5187daa009c99499ad0e26eb5a0a351_ef873273-1ef6-4ab2-a0b7-45e95341790a.webp?v=1714839700","variant_ids":[41898331668579]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 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":"MPB0126204-PC08","featured_media":{"alt":null,"id":23885571391587,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb17a0f3e5187daa009c99499ad0e26eb5a0a351_ef873273-1ef6-4ab2-a0b7-45e95341790a.webp?v=1714839700"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898332192867,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PC08","requires_shipping":true,"taxable":true,"featured_image":{"id":31480316854371,"product_id":7411394019427,"position":3,"created_at":"2024-05-05T00:21:26+08:00","updated_at":"2024-05-05T00:21:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b20e173bc4da0ec2d493ab003605094a2d55ac54_c532689f-00d7-4835-97f6-aca18bb159e9.webp?v=1714839686","variant_ids":[41898332192867]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 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":"MPB01262J5-PC08","featured_media":{"alt":null,"id":23885568442467,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b20e173bc4da0ec2d493ab003605094a2d55ac54_c532689f-00d7-4835-97f6-aca18bb159e9.webp?v=1714839686"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4b84bcaf30b496ae6492529510cca2ba0e54816_005949dc-2c8f-42d8-8baf-c6a3438c906a.webp?v=1714839682","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ba6e2a70c820e1c36021c7173278026e17fa8f6_0a1ac2c5-7e19-4a5c-a18a-60244517e391.webp?v=1714839684","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b20e173bc4da0ec2d493ab003605094a2d55ac54_c532689f-00d7-4835-97f6-aca18bb159e9.webp?v=1714839686","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97850fd7685608d3bdf766c76683031763fdc400_0fa15582-1922-4165-bd34-8d7cced1cb12.webp?v=1714839688","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af721d9fc40877918b05e3ac0088d59a1304bb00_bf204d39-e8b1-47ab-8650-1028bdda341f.webp?v=1714839691","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c2402ad0b4fed2c47a119cd500c63435394d450_39a91aa1-c920-4604-a7f9-3cb1ccf58908.webp?v=1714839693","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c46ba533297d4ba6c135c57bf8f6dc3ac6f62cf2_4272b257-9caa-4450-8739-7bd0691be78a.webp?v=1714839695","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d8b6a6c84cbc390483c7a1808579519dea6d68c_7e58a0e1-bd3b-4e76-bd6c-49debfa7bc1a.webp?v=1714839697","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb17a0f3e5187daa009c99499ad0e26eb5a0a351_ef873273-1ef6-4ab2-a0b7-45e95341790a.webp?v=1714839700","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/024f0ad15b3c94b1806db70635b3fdd0f9630379_e7a0daae-e0eb-4c77-a0ac-cb5e7837b513.webp?v=1714839702"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4b84bcaf30b496ae6492529510cca2ba0e54816_005949dc-2c8f-42d8-8baf-c6a3438c906a.webp?v=1714839682","options":["color"],"media":[{"alt":null,"id":23885567361123,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4b84bcaf30b496ae6492529510cca2ba0e54816_005949dc-2c8f-42d8-8baf-c6a3438c906a.webp?v=1714839682"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4b84bcaf30b496ae6492529510cca2ba0e54816_005949dc-2c8f-42d8-8baf-c6a3438c906a.webp?v=1714839682","width":2000},{"alt":null,"id":23885567852643,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ba6e2a70c820e1c36021c7173278026e17fa8f6_0a1ac2c5-7e19-4a5c-a18a-60244517e391.webp?v=1714839684"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ba6e2a70c820e1c36021c7173278026e17fa8f6_0a1ac2c5-7e19-4a5c-a18a-60244517e391.webp?v=1714839684","width":2000},{"alt":null,"id":23885568442467,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b20e173bc4da0ec2d493ab003605094a2d55ac54_c532689f-00d7-4835-97f6-aca18bb159e9.webp?v=1714839686"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b20e173bc4da0ec2d493ab003605094a2d55ac54_c532689f-00d7-4835-97f6-aca18bb159e9.webp?v=1714839686","width":2000},{"alt":null,"id":23885568868451,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97850fd7685608d3bdf766c76683031763fdc400_0fa15582-1922-4165-bd34-8d7cced1cb12.webp?v=1714839688"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97850fd7685608d3bdf766c76683031763fdc400_0fa15582-1922-4165-bd34-8d7cced1cb12.webp?v=1714839688","width":2000},{"alt":null,"id":23885569491043,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af721d9fc40877918b05e3ac0088d59a1304bb00_bf204d39-e8b1-47ab-8650-1028bdda341f.webp?v=1714839691"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af721d9fc40877918b05e3ac0088d59a1304bb00_bf204d39-e8b1-47ab-8650-1028bdda341f.webp?v=1714839691","width":2000},{"alt":null,"id":23885569982563,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c2402ad0b4fed2c47a119cd500c63435394d450_39a91aa1-c920-4604-a7f9-3cb1ccf58908.webp?v=1714839693"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c2402ad0b4fed2c47a119cd500c63435394d450_39a91aa1-c920-4604-a7f9-3cb1ccf58908.webp?v=1714839693","width":2000},{"alt":null,"id":23885570375779,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c46ba533297d4ba6c135c57bf8f6dc3ac6f62cf2_4272b257-9caa-4450-8739-7bd0691be78a.webp?v=1714839695"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c46ba533297d4ba6c135c57bf8f6dc3ac6f62cf2_4272b257-9caa-4450-8739-7bd0691be78a.webp?v=1714839695","width":2000},{"alt":null,"id":23885570932835,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d8b6a6c84cbc390483c7a1808579519dea6d68c_7e58a0e1-bd3b-4e76-bd6c-49debfa7bc1a.webp?v=1714839697"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d8b6a6c84cbc390483c7a1808579519dea6d68c_7e58a0e1-bd3b-4e76-bd6c-49debfa7bc1a.webp?v=1714839697","width":2000},{"alt":null,"id":23885571391587,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb17a0f3e5187daa009c99499ad0e26eb5a0a351_ef873273-1ef6-4ab2-a0b7-45e95341790a.webp?v=1714839700"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb17a0f3e5187daa009c99499ad0e26eb5a0a351_ef873273-1ef6-4ab2-a0b7-45e95341790a.webp?v=1714839700","width":2000},{"alt":null,"id":23885571948643,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/024f0ad15b3c94b1806db70635b3fdd0f9630379_e7a0daae-e0eb-4c77-a0ac-cb5e7837b513.webp?v=1714839702"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/024f0ad15b3c94b1806db70635b3fdd0f9630379_e7a0daae-e0eb-4c77-a0ac-cb5e7837b513.webp?v=1714839702","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41898331406435,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PC08","requires_shipping":true,"taxable":true,"featured_image":{"id":31480317444195,"product_id":7411394019427,"position":4,"created_at":"2024-05-05T00:21:28+08:00","updated_at":"2024-05-05T00:21:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97850fd7685608d3bdf766c76683031763fdc400_0fa15582-1922-4165-bd34-8d7cced1cb12.webp?v=1714839688","variant_ids":[41898331406435]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 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":"MPB0126224-PC08","featured_media":{"alt":null,"id":23885568868451,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97850fd7685608d3bdf766c76683031763fdc400_0fa15582-1922-4165-bd34-8d7cced1cb12.webp?v=1714839688"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898331668579,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PC08","requires_shipping":true,"taxable":true,"featured_image":{"id":31480319836259,"product_id":7411394019427,"position":9,"created_at":"2024-05-05T00:21:40+08:00","updated_at":"2024-05-05T00:21:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb17a0f3e5187daa009c99499ad0e26eb5a0a351_ef873273-1ef6-4ab2-a0b7-45e95341790a.webp?v=1714839700","variant_ids":[41898331668579]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 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":"MPB0126204-PC08","featured_media":{"alt":null,"id":23885571391587,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb17a0f3e5187daa009c99499ad0e26eb5a0a351_ef873273-1ef6-4ab2-a0b7-45e95341790a.webp?v=1714839700"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898332192867,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PC08","requires_shipping":true,"taxable":true,"featured_image":{"id":31480316854371,"product_id":7411394019427,"position":3,"created_at":"2024-05-05T00:21:26+08:00","updated_at":"2024-05-05T00:21:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b20e173bc4da0ec2d493ab003605094a2d55ac54_c532689f-00d7-4835-97f6-aca18bb159e9.webp?v=1714839686","variant_ids":[41898332192867]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 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":"MPB01262J5-PC08","featured_media":{"alt":null,"id":23885568442467,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b20e173bc4da0ec2d493ab003605094a2d55ac54_c532689f-00d7-4835-97f6-aca18bb159e9.webp?v=1714839686"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41898331406435,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PC08","requires_shipping":true,"taxable":true,"featured_image":{"id":31480317444195,"product_id":7411394019427,"position":4,"created_at":"2024-05-05T00:21:28+08:00","updated_at":"2024-05-05T00:21:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97850fd7685608d3bdf766c76683031763fdc400_0fa15582-1922-4165-bd34-8d7cced1cb12.webp?v=1714839688","variant_ids":[41898331406435]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 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":"MPB0126224-PC08","featured_media":{"alt":null,"id":23885568868451,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97850fd7685608d3bdf766c76683031763fdc400_0fa15582-1922-4165-bd34-8d7cced1cb12.webp?v=1714839688"}},"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: "停產"
}