$product = {"id":7414146007139,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 路克\u0026莉亞公主-電影海報","handle":"iphone-13-mini-mod-nx-magsafe-printable-pb102","description":null,"published_at":"2024-06-11T17:49:25+08:00","created_at":"2024-05-05T14:12:54+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":41904428974179,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB102","requires_shipping":true,"taxable":true,"featured_image":{"id":31484783165539,"product_id":7414146007139,"position":8,"created_at":"2024-05-05T14:13:13+08:00","updated_at":"2024-05-05T14:13:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f29163bb2492dad32571bd24c21b76605f76bbe9_6ed50497-ef22-46ff-a42b-aa3604229b46.webp?v=1714889593","variant_ids":[41904428974179]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 路克\u0026莉亞公主-電影海報 - 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-PB102","featured_media":{"alt":null,"id":23890078466147,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f29163bb2492dad32571bd24c21b76605f76bbe9_6ed50497-ef22-46ff-a42b-aa3604229b46.webp?v=1714889593"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904429039715,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB102","requires_shipping":true,"taxable":true,"featured_image":{"id":31484772384867,"product_id":7414146007139,"position":1,"created_at":"2024-05-05T14:12:56+08:00","updated_at":"2024-05-05T14:12:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0263da6f52165e317c28ce43c392ad76a6d4013d_78081abe-2eeb-458a-a602-a5fc9333857f.webp?v=1714889576","variant_ids":[41904429039715]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 路克\u0026莉亞公主-電影海報 - 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-PB102","featured_media":{"alt":null,"id":23890067816547,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0263da6f52165e317c28ce43c392ad76a6d4013d_78081abe-2eeb-458a-a602-a5fc9333857f.webp?v=1714889576"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904429498467,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB102","requires_shipping":true,"taxable":true,"featured_image":{"id":31484781789283,"product_id":7414146007139,"position":7,"created_at":"2024-05-05T14:13:11+08:00","updated_at":"2024-05-05T14:13:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e88ffbf1d39d2834cc2a9793caa55ac7f8213f0d_a63de9a2-bc98-4da1-86d4-82a39a13a391.webp?v=1714889591","variant_ids":[41904429498467]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 路克\u0026莉亞公主-電影海報 - 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-PB102","featured_media":{"alt":null,"id":23890077122659,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e88ffbf1d39d2834cc2a9793caa55ac7f8213f0d_a63de9a2-bc98-4da1-86d4-82a39a13a391.webp?v=1714889591"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0263da6f52165e317c28ce43c392ad76a6d4013d_78081abe-2eeb-458a-a602-a5fc9333857f.webp?v=1714889576","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/836e1d4b61cdeeac9c6d7859657cdf65416fe49c_b2c499f1-fac0-4c44-aae5-4f1550106835.webp?v=1714889578","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ebffe3be82ff87c180b2f85549c54efbad2e4b6_00ff9c3f-5f78-4e33-b732-99f765597a0b.webp?v=1714889581","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bfc22403319aec97aec0ee97a2803758517b126_2689ebcf-b5ab-4f84-b223-ca52e8e38876.webp?v=1714889583","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1edb29e5fa738fd21fd3a2cee5231bbf00a20d06_b18c572b-1199-4a76-a093-fae5c307fdd4.webp?v=1714889586","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f1defd10591c1440bcb8ac00949058ebb441e84_7d133077-2feb-48d0-ac6a-de051b9c4514.webp?v=1714889589","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e88ffbf1d39d2834cc2a9793caa55ac7f8213f0d_a63de9a2-bc98-4da1-86d4-82a39a13a391.webp?v=1714889591","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f29163bb2492dad32571bd24c21b76605f76bbe9_6ed50497-ef22-46ff-a42b-aa3604229b46.webp?v=1714889593","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f15ae54d79cfcdf00caa7b44a81e402b8e76700c_ba678be1-a860-4258-9322-be686dc3d3d2.webp?v=1714889596","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d02d0bdddbb7038c0f435a1947d91d2bdb5fe1ea_93d10e7f-53e4-4315-a1b5-713accce9725.webp?v=1714889598"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0263da6f52165e317c28ce43c392ad76a6d4013d_78081abe-2eeb-458a-a602-a5fc9333857f.webp?v=1714889576","options":["color"],"media":[{"alt":null,"id":23890067816547,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0263da6f52165e317c28ce43c392ad76a6d4013d_78081abe-2eeb-458a-a602-a5fc9333857f.webp?v=1714889576"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0263da6f52165e317c28ce43c392ad76a6d4013d_78081abe-2eeb-458a-a602-a5fc9333857f.webp?v=1714889576","width":2000},{"alt":null,"id":23890069192803,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/836e1d4b61cdeeac9c6d7859657cdf65416fe49c_b2c499f1-fac0-4c44-aae5-4f1550106835.webp?v=1714889578"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/836e1d4b61cdeeac9c6d7859657cdf65416fe49c_b2c499f1-fac0-4c44-aae5-4f1550106835.webp?v=1714889578","width":2000},{"alt":null,"id":23890071027811,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ebffe3be82ff87c180b2f85549c54efbad2e4b6_00ff9c3f-5f78-4e33-b732-99f765597a0b.webp?v=1714889581"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ebffe3be82ff87c180b2f85549c54efbad2e4b6_00ff9c3f-5f78-4e33-b732-99f765597a0b.webp?v=1714889581","width":2000},{"alt":null,"id":23890072272995,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bfc22403319aec97aec0ee97a2803758517b126_2689ebcf-b5ab-4f84-b223-ca52e8e38876.webp?v=1714889583"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bfc22403319aec97aec0ee97a2803758517b126_2689ebcf-b5ab-4f84-b223-ca52e8e38876.webp?v=1714889583","width":2000},{"alt":null,"id":23890073583715,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1edb29e5fa738fd21fd3a2cee5231bbf00a20d06_b18c572b-1199-4a76-a093-fae5c307fdd4.webp?v=1714889586"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1edb29e5fa738fd21fd3a2cee5231bbf00a20d06_b18c572b-1199-4a76-a093-fae5c307fdd4.webp?v=1714889586","width":2000},{"alt":null,"id":23890075549795,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f1defd10591c1440bcb8ac00949058ebb441e84_7d133077-2feb-48d0-ac6a-de051b9c4514.webp?v=1714889589"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f1defd10591c1440bcb8ac00949058ebb441e84_7d133077-2feb-48d0-ac6a-de051b9c4514.webp?v=1714889589","width":2000},{"alt":null,"id":23890077122659,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e88ffbf1d39d2834cc2a9793caa55ac7f8213f0d_a63de9a2-bc98-4da1-86d4-82a39a13a391.webp?v=1714889591"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e88ffbf1d39d2834cc2a9793caa55ac7f8213f0d_a63de9a2-bc98-4da1-86d4-82a39a13a391.webp?v=1714889591","width":2000},{"alt":null,"id":23890078466147,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f29163bb2492dad32571bd24c21b76605f76bbe9_6ed50497-ef22-46ff-a42b-aa3604229b46.webp?v=1714889593"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f29163bb2492dad32571bd24c21b76605f76bbe9_6ed50497-ef22-46ff-a42b-aa3604229b46.webp?v=1714889593","width":2000},{"alt":null,"id":23890080039011,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f15ae54d79cfcdf00caa7b44a81e402b8e76700c_ba678be1-a860-4258-9322-be686dc3d3d2.webp?v=1714889596"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f15ae54d79cfcdf00caa7b44a81e402b8e76700c_ba678be1-a860-4258-9322-be686dc3d3d2.webp?v=1714889596","width":2000},{"alt":null,"id":23890081415267,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d02d0bdddbb7038c0f435a1947d91d2bdb5fe1ea_93d10e7f-53e4-4315-a1b5-713accce9725.webp?v=1714889598"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d02d0bdddbb7038c0f435a1947d91d2bdb5fe1ea_93d10e7f-53e4-4315-a1b5-713accce9725.webp?v=1714889598","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41904428974179,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB102","requires_shipping":true,"taxable":true,"featured_image":{"id":31484783165539,"product_id":7414146007139,"position":8,"created_at":"2024-05-05T14:13:13+08:00","updated_at":"2024-05-05T14:13:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f29163bb2492dad32571bd24c21b76605f76bbe9_6ed50497-ef22-46ff-a42b-aa3604229b46.webp?v=1714889593","variant_ids":[41904428974179]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 路克\u0026莉亞公主-電影海報 - 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-PB102","featured_media":{"alt":null,"id":23890078466147,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f29163bb2492dad32571bd24c21b76605f76bbe9_6ed50497-ef22-46ff-a42b-aa3604229b46.webp?v=1714889593"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904429039715,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB102","requires_shipping":true,"taxable":true,"featured_image":{"id":31484772384867,"product_id":7414146007139,"position":1,"created_at":"2024-05-05T14:12:56+08:00","updated_at":"2024-05-05T14:12:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0263da6f52165e317c28ce43c392ad76a6d4013d_78081abe-2eeb-458a-a602-a5fc9333857f.webp?v=1714889576","variant_ids":[41904429039715]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 路克\u0026莉亞公主-電影海報 - 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-PB102","featured_media":{"alt":null,"id":23890067816547,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0263da6f52165e317c28ce43c392ad76a6d4013d_78081abe-2eeb-458a-a602-a5fc9333857f.webp?v=1714889576"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904429498467,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB102","requires_shipping":true,"taxable":true,"featured_image":{"id":31484781789283,"product_id":7414146007139,"position":7,"created_at":"2024-05-05T14:13:11+08:00","updated_at":"2024-05-05T14:13:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e88ffbf1d39d2834cc2a9793caa55ac7f8213f0d_a63de9a2-bc98-4da1-86d4-82a39a13a391.webp?v=1714889591","variant_ids":[41904429498467]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 路克\u0026莉亞公主-電影海報 - 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-PB102","featured_media":{"alt":null,"id":23890077122659,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e88ffbf1d39d2834cc2a9793caa55ac7f8213f0d_a63de9a2-bc98-4da1-86d4-82a39a13a391.webp?v=1714889591"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41904428974179,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB102","requires_shipping":true,"taxable":true,"featured_image":{"id":31484783165539,"product_id":7414146007139,"position":8,"created_at":"2024-05-05T14:13:13+08:00","updated_at":"2024-05-05T14:13:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f29163bb2492dad32571bd24c21b76605f76bbe9_6ed50497-ef22-46ff-a42b-aa3604229b46.webp?v=1714889593","variant_ids":[41904428974179]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 路克\u0026莉亞公主-電影海報 - 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-PB102","featured_media":{"alt":null,"id":23890078466147,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f29163bb2492dad32571bd24c21b76605f76bbe9_6ed50497-ef22-46ff-a42b-aa3604229b46.webp?v=1714889593"}},"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: "停產"
}