$product = {"id":7413948383331,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 經典幾何Pattern","handle":"iphone-13-mini-mod-nx-magsafe-printable-pc03","description":null,"published_at":"2024-06-11T17:45:51+08:00","created_at":"2024-05-05T13:48:14+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":41902564835427,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PC03","requires_shipping":true,"taxable":true,"featured_image":{"id":31484298002531,"product_id":7413948383331,"position":6,"created_at":"2024-05-05T13:48:28+08:00","updated_at":"2024-05-05T13:48:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b120fb6bdaa25591339dce01f7f8d3a39ac23a2_3815189a-c2fd-436d-841e-569d98a70693.webp?v=1714888108","variant_ids":[41902564835427]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 經典幾何Pattern - 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-PC03","featured_media":{"alt":null,"id":23889591566435,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b120fb6bdaa25591339dce01f7f8d3a39ac23a2_3815189a-c2fd-436d-841e-569d98a70693.webp?v=1714888108"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902564900963,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PC03","requires_shipping":true,"taxable":true,"featured_image":{"id":31484298494051,"product_id":7413948383331,"position":7,"created_at":"2024-05-05T13:48:30+08:00","updated_at":"2024-05-05T13:48:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7592bc172e176d49e124d7336b46a12ad85c4676_e10b5c6a-1b38-48ba-a48a-70701f066987.webp?v=1714888110","variant_ids":[41902564900963]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 經典幾何Pattern - 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-PC03","featured_media":{"alt":null,"id":23889592090723,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7592bc172e176d49e124d7336b46a12ad85c4676_e10b5c6a-1b38-48ba-a48a-70701f066987.webp?v=1714888110"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902565130339,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PC03","requires_shipping":true,"taxable":true,"featured_image":{"id":31484297085027,"product_id":7413948383331,"position":5,"created_at":"2024-05-05T13:48:25+08:00","updated_at":"2024-05-05T13:48:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c3afb9ba7fe23fefbf8fdfc73e6bab01d48d475_3618542c-6d96-4dc0-8b4e-2c6ad1f07752.webp?v=1714888105","variant_ids":[41902565130339]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 經典幾何Pattern - 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-PC03","featured_media":{"alt":null,"id":23889590714467,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c3afb9ba7fe23fefbf8fdfc73e6bab01d48d475_3618542c-6d96-4dc0-8b4e-2c6ad1f07752.webp?v=1714888105"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e9d87cfa20c7191f67d0c1c44ac592ea438f486_eb2a599e-4ef2-4d7b-a775-9430e723c378.webp?v=1714888096","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e72b6e063ab1c6bafc025baf4e3e3c73777bf072_da72ccfb-4d38-4a9d-9c0e-b116985fef58.webp?v=1714888098","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/319e49acb7aa50ae7115426b489240625cf63588_20a41c7d-1c77-4ab7-8fa0-796d5bfd7e02.webp?v=1714888101","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eefedc6d044dd7bb92ba9eaecccaba8e6b6b89fc_a706f0dd-4e98-4d0c-8174-d82362b7d3a3.webp?v=1714888103","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c3afb9ba7fe23fefbf8fdfc73e6bab01d48d475_3618542c-6d96-4dc0-8b4e-2c6ad1f07752.webp?v=1714888105","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b120fb6bdaa25591339dce01f7f8d3a39ac23a2_3815189a-c2fd-436d-841e-569d98a70693.webp?v=1714888108","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7592bc172e176d49e124d7336b46a12ad85c4676_e10b5c6a-1b38-48ba-a48a-70701f066987.webp?v=1714888110","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53b6a8d7bcf2f30e95a58a6ae89f4211d663a601_125c8458-941b-4350-adb0-8e7860d5abb1.webp?v=1714888113","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9180bf35559188324a84d13e0390d9b85577582_01de817a-6b34-4d6e-95cc-8a0e088b1fc8.webp?v=1714888115","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f9e7f600bc8f966683782b05a45b5531e434034_2da860e0-ea29-4dbe-b68f-39788526f9e0.webp?v=1714888117"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e9d87cfa20c7191f67d0c1c44ac592ea438f486_eb2a599e-4ef2-4d7b-a775-9430e723c378.webp?v=1714888096","options":["color"],"media":[{"alt":null,"id":23889588650083,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e9d87cfa20c7191f67d0c1c44ac592ea438f486_eb2a599e-4ef2-4d7b-a775-9430e723c378.webp?v=1714888096"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e9d87cfa20c7191f67d0c1c44ac592ea438f486_eb2a599e-4ef2-4d7b-a775-9430e723c378.webp?v=1714888096","width":2000},{"alt":null,"id":23889589076067,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e72b6e063ab1c6bafc025baf4e3e3c73777bf072_da72ccfb-4d38-4a9d-9c0e-b116985fef58.webp?v=1714888098"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e72b6e063ab1c6bafc025baf4e3e3c73777bf072_da72ccfb-4d38-4a9d-9c0e-b116985fef58.webp?v=1714888098","width":2000},{"alt":null,"id":23889589567587,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/319e49acb7aa50ae7115426b489240625cf63588_20a41c7d-1c77-4ab7-8fa0-796d5bfd7e02.webp?v=1714888101"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/319e49acb7aa50ae7115426b489240625cf63588_20a41c7d-1c77-4ab7-8fa0-796d5bfd7e02.webp?v=1714888101","width":2000},{"alt":null,"id":23889590091875,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eefedc6d044dd7bb92ba9eaecccaba8e6b6b89fc_a706f0dd-4e98-4d0c-8174-d82362b7d3a3.webp?v=1714888103"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eefedc6d044dd7bb92ba9eaecccaba8e6b6b89fc_a706f0dd-4e98-4d0c-8174-d82362b7d3a3.webp?v=1714888103","width":2000},{"alt":null,"id":23889590714467,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c3afb9ba7fe23fefbf8fdfc73e6bab01d48d475_3618542c-6d96-4dc0-8b4e-2c6ad1f07752.webp?v=1714888105"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c3afb9ba7fe23fefbf8fdfc73e6bab01d48d475_3618542c-6d96-4dc0-8b4e-2c6ad1f07752.webp?v=1714888105","width":2000},{"alt":null,"id":23889591566435,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b120fb6bdaa25591339dce01f7f8d3a39ac23a2_3815189a-c2fd-436d-841e-569d98a70693.webp?v=1714888108"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b120fb6bdaa25591339dce01f7f8d3a39ac23a2_3815189a-c2fd-436d-841e-569d98a70693.webp?v=1714888108","width":2000},{"alt":null,"id":23889592090723,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7592bc172e176d49e124d7336b46a12ad85c4676_e10b5c6a-1b38-48ba-a48a-70701f066987.webp?v=1714888110"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7592bc172e176d49e124d7336b46a12ad85c4676_e10b5c6a-1b38-48ba-a48a-70701f066987.webp?v=1714888110","width":2000},{"alt":null,"id":23889592615011,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53b6a8d7bcf2f30e95a58a6ae89f4211d663a601_125c8458-941b-4350-adb0-8e7860d5abb1.webp?v=1714888113"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53b6a8d7bcf2f30e95a58a6ae89f4211d663a601_125c8458-941b-4350-adb0-8e7860d5abb1.webp?v=1714888113","width":2000},{"alt":null,"id":23889593073763,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9180bf35559188324a84d13e0390d9b85577582_01de817a-6b34-4d6e-95cc-8a0e088b1fc8.webp?v=1714888115"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9180bf35559188324a84d13e0390d9b85577582_01de817a-6b34-4d6e-95cc-8a0e088b1fc8.webp?v=1714888115","width":2000},{"alt":null,"id":23889593598051,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f9e7f600bc8f966683782b05a45b5531e434034_2da860e0-ea29-4dbe-b68f-39788526f9e0.webp?v=1714888117"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f9e7f600bc8f966683782b05a45b5531e434034_2da860e0-ea29-4dbe-b68f-39788526f9e0.webp?v=1714888117","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41902564835427,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PC03","requires_shipping":true,"taxable":true,"featured_image":{"id":31484298002531,"product_id":7413948383331,"position":6,"created_at":"2024-05-05T13:48:28+08:00","updated_at":"2024-05-05T13:48:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b120fb6bdaa25591339dce01f7f8d3a39ac23a2_3815189a-c2fd-436d-841e-569d98a70693.webp?v=1714888108","variant_ids":[41902564835427]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 經典幾何Pattern - 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-PC03","featured_media":{"alt":null,"id":23889591566435,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b120fb6bdaa25591339dce01f7f8d3a39ac23a2_3815189a-c2fd-436d-841e-569d98a70693.webp?v=1714888108"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902564900963,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PC03","requires_shipping":true,"taxable":true,"featured_image":{"id":31484298494051,"product_id":7413948383331,"position":7,"created_at":"2024-05-05T13:48:30+08:00","updated_at":"2024-05-05T13:48:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7592bc172e176d49e124d7336b46a12ad85c4676_e10b5c6a-1b38-48ba-a48a-70701f066987.webp?v=1714888110","variant_ids":[41902564900963]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 經典幾何Pattern - 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-PC03","featured_media":{"alt":null,"id":23889592090723,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7592bc172e176d49e124d7336b46a12ad85c4676_e10b5c6a-1b38-48ba-a48a-70701f066987.webp?v=1714888110"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902565130339,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PC03","requires_shipping":true,"taxable":true,"featured_image":{"id":31484297085027,"product_id":7413948383331,"position":5,"created_at":"2024-05-05T13:48:25+08:00","updated_at":"2024-05-05T13:48:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c3afb9ba7fe23fefbf8fdfc73e6bab01d48d475_3618542c-6d96-4dc0-8b4e-2c6ad1f07752.webp?v=1714888105","variant_ids":[41902565130339]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 經典幾何Pattern - 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-PC03","featured_media":{"alt":null,"id":23889590714467,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c3afb9ba7fe23fefbf8fdfc73e6bab01d48d475_3618542c-6d96-4dc0-8b4e-2c6ad1f07752.webp?v=1714888105"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41902564835427,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PC03","requires_shipping":true,"taxable":true,"featured_image":{"id":31484298002531,"product_id":7413948383331,"position":6,"created_at":"2024-05-05T13:48:28+08:00","updated_at":"2024-05-05T13:48:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b120fb6bdaa25591339dce01f7f8d3a39ac23a2_3815189a-c2fd-436d-841e-569d98a70693.webp?v=1714888108","variant_ids":[41902564835427]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 經典幾何Pattern - 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-PC03","featured_media":{"alt":null,"id":23889591566435,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b120fb6bdaa25591339dce01f7f8d3a39ac23a2_3815189a-c2fd-436d-841e-569d98a70693.webp?v=1714888108"}},"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: "停產"
}