$product = {"id":7411305578595,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章2-潮流系列","handle":"iphone-14-pro-mod-nx-magsafe-printable-pb47","description":null,"published_at":"2024-06-11T17:41:21+08:00","created_at":"2024-05-05T00:04:07+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":41897210118243,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB47","requires_shipping":true,"taxable":true,"featured_image":{"id":31480096555107,"product_id":7411305578595,"position":2,"created_at":"2024-05-05T00:04:12+08:00","updated_at":"2024-05-05T00:04:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3721f08d3bd814157079b3961d95e17e56412cf8_2677e351-8935-4cbe-a794-4fae00f744c9.webp?v=1714838652","variant_ids":[41897210118243]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章2-潮流系列 - 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-PB47","featured_media":{"alt":null,"id":23885347356771,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3721f08d3bd814157079b3961d95e17e56412cf8_2677e351-8935-4cbe-a794-4fae00f744c9.webp?v=1714838652"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897210249315,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB47","requires_shipping":true,"taxable":true,"featured_image":{"id":31480100126819,"product_id":7411305578595,"position":8,"created_at":"2024-05-05T00:04:27+08:00","updated_at":"2024-05-05T00:04:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39466a75cacf4d028093aa4457a111eb2b3eb4cc_ad19dacb-4523-4874-8f00-6705b31a71a0.webp?v=1714838667","variant_ids":[41897210249315]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章2-潮流系列 - 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-PB47","featured_media":{"alt":null,"id":23885350928483,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39466a75cacf4d028093aa4457a111eb2b3eb4cc_ad19dacb-4523-4874-8f00-6705b31a71a0.webp?v=1714838667"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897210675299,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB47","requires_shipping":true,"taxable":true,"featured_image":{"id":31480101306467,"product_id":7411305578595,"position":10,"created_at":"2024-05-05T00:04:32+08:00","updated_at":"2024-05-05T00:04:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1ec163bb1f11e5784a43e1190fffee30ed1cd2d_c0b3bb6d-b39e-4301-8c34-e004c62fb68d.webp?v=1714838672","variant_ids":[41897210675299]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章2-潮流系列 - 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-PB47","featured_media":{"alt":null,"id":23885352108131,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1ec163bb1f11e5784a43e1190fffee30ed1cd2d_c0b3bb6d-b39e-4301-8c34-e004c62fb68d.webp?v=1714838672"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e326beab8c9ec8e01a73ae54a47453466ecd9e5_314f6346-3b75-41d9-952a-4a7d4e3bb06c.webp?v=1714838650","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3721f08d3bd814157079b3961d95e17e56412cf8_2677e351-8935-4cbe-a794-4fae00f744c9.webp?v=1714838652","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe3bd450cb45b42ad260455ebaeede485f204d86_cc4a7b70-58ad-4800-86c0-5b1e18541df4.webp?v=1714838655","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76b19318fff599ccb2140ae438261677df22d994_cdf2bf0b-c3d0-4d40-9320-150a74142860.webp?v=1714838657","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6227e9edd2a45a4237ab88b6473e17f01178012_de487389-3025-44e4-ae92-34f5da17b7f1.webp?v=1714838660","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc175c5b4456d018ee73cf46a2072f95469667d0_ce58aa03-d916-440e-a4af-40c04ac6d482.webp?v=1714838662","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a17de592224d9c40b6cacab5b01eb5b21f3c8c5_a9d2b4f5-beb1-495c-812f-2fd6977be032.webp?v=1714838665","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39466a75cacf4d028093aa4457a111eb2b3eb4cc_ad19dacb-4523-4874-8f00-6705b31a71a0.webp?v=1714838667","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51d37fb54b13a1652d3e20a7d2079faac796d3f8_d2ef0fbd-68ea-457d-9a46-baeea44aa7ef.webp?v=1714838670","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1ec163bb1f11e5784a43e1190fffee30ed1cd2d_c0b3bb6d-b39e-4301-8c34-e004c62fb68d.webp?v=1714838672"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e326beab8c9ec8e01a73ae54a47453466ecd9e5_314f6346-3b75-41d9-952a-4a7d4e3bb06c.webp?v=1714838650","options":["color"],"media":[{"alt":null,"id":23885346799715,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e326beab8c9ec8e01a73ae54a47453466ecd9e5_314f6346-3b75-41d9-952a-4a7d4e3bb06c.webp?v=1714838650"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e326beab8c9ec8e01a73ae54a47453466ecd9e5_314f6346-3b75-41d9-952a-4a7d4e3bb06c.webp?v=1714838650","width":2000},{"alt":null,"id":23885347356771,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3721f08d3bd814157079b3961d95e17e56412cf8_2677e351-8935-4cbe-a794-4fae00f744c9.webp?v=1714838652"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3721f08d3bd814157079b3961d95e17e56412cf8_2677e351-8935-4cbe-a794-4fae00f744c9.webp?v=1714838652","width":2000},{"alt":null,"id":23885348143203,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe3bd450cb45b42ad260455ebaeede485f204d86_cc4a7b70-58ad-4800-86c0-5b1e18541df4.webp?v=1714838655"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe3bd450cb45b42ad260455ebaeede485f204d86_cc4a7b70-58ad-4800-86c0-5b1e18541df4.webp?v=1714838655","width":2000},{"alt":null,"id":23885348733027,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76b19318fff599ccb2140ae438261677df22d994_cdf2bf0b-c3d0-4d40-9320-150a74142860.webp?v=1714838657"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76b19318fff599ccb2140ae438261677df22d994_cdf2bf0b-c3d0-4d40-9320-150a74142860.webp?v=1714838657","width":2000},{"alt":null,"id":23885349355619,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6227e9edd2a45a4237ab88b6473e17f01178012_de487389-3025-44e4-ae92-34f5da17b7f1.webp?v=1714838660"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6227e9edd2a45a4237ab88b6473e17f01178012_de487389-3025-44e4-ae92-34f5da17b7f1.webp?v=1714838660","width":2000},{"alt":null,"id":23885349814371,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc175c5b4456d018ee73cf46a2072f95469667d0_ce58aa03-d916-440e-a4af-40c04ac6d482.webp?v=1714838662"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc175c5b4456d018ee73cf46a2072f95469667d0_ce58aa03-d916-440e-a4af-40c04ac6d482.webp?v=1714838662","width":2000},{"alt":null,"id":23885350338659,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a17de592224d9c40b6cacab5b01eb5b21f3c8c5_a9d2b4f5-beb1-495c-812f-2fd6977be032.webp?v=1714838665"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a17de592224d9c40b6cacab5b01eb5b21f3c8c5_a9d2b4f5-beb1-495c-812f-2fd6977be032.webp?v=1714838665","width":2000},{"alt":null,"id":23885350928483,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39466a75cacf4d028093aa4457a111eb2b3eb4cc_ad19dacb-4523-4874-8f00-6705b31a71a0.webp?v=1714838667"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39466a75cacf4d028093aa4457a111eb2b3eb4cc_ad19dacb-4523-4874-8f00-6705b31a71a0.webp?v=1714838667","width":2000},{"alt":null,"id":23885351583843,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51d37fb54b13a1652d3e20a7d2079faac796d3f8_d2ef0fbd-68ea-457d-9a46-baeea44aa7ef.webp?v=1714838670"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51d37fb54b13a1652d3e20a7d2079faac796d3f8_d2ef0fbd-68ea-457d-9a46-baeea44aa7ef.webp?v=1714838670","width":2000},{"alt":null,"id":23885352108131,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1ec163bb1f11e5784a43e1190fffee30ed1cd2d_c0b3bb6d-b39e-4301-8c34-e004c62fb68d.webp?v=1714838672"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1ec163bb1f11e5784a43e1190fffee30ed1cd2d_c0b3bb6d-b39e-4301-8c34-e004c62fb68d.webp?v=1714838672","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41897210118243,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB47","requires_shipping":true,"taxable":true,"featured_image":{"id":31480096555107,"product_id":7411305578595,"position":2,"created_at":"2024-05-05T00:04:12+08:00","updated_at":"2024-05-05T00:04:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3721f08d3bd814157079b3961d95e17e56412cf8_2677e351-8935-4cbe-a794-4fae00f744c9.webp?v=1714838652","variant_ids":[41897210118243]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章2-潮流系列 - 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-PB47","featured_media":{"alt":null,"id":23885347356771,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3721f08d3bd814157079b3961d95e17e56412cf8_2677e351-8935-4cbe-a794-4fae00f744c9.webp?v=1714838652"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897210249315,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB47","requires_shipping":true,"taxable":true,"featured_image":{"id":31480100126819,"product_id":7411305578595,"position":8,"created_at":"2024-05-05T00:04:27+08:00","updated_at":"2024-05-05T00:04:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39466a75cacf4d028093aa4457a111eb2b3eb4cc_ad19dacb-4523-4874-8f00-6705b31a71a0.webp?v=1714838667","variant_ids":[41897210249315]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章2-潮流系列 - 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-PB47","featured_media":{"alt":null,"id":23885350928483,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39466a75cacf4d028093aa4457a111eb2b3eb4cc_ad19dacb-4523-4874-8f00-6705b31a71a0.webp?v=1714838667"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897210675299,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB47","requires_shipping":true,"taxable":true,"featured_image":{"id":31480101306467,"product_id":7411305578595,"position":10,"created_at":"2024-05-05T00:04:32+08:00","updated_at":"2024-05-05T00:04:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1ec163bb1f11e5784a43e1190fffee30ed1cd2d_c0b3bb6d-b39e-4301-8c34-e004c62fb68d.webp?v=1714838672","variant_ids":[41897210675299]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章2-潮流系列 - 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-PB47","featured_media":{"alt":null,"id":23885352108131,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1ec163bb1f11e5784a43e1190fffee30ed1cd2d_c0b3bb6d-b39e-4301-8c34-e004c62fb68d.webp?v=1714838672"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41897210118243,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB47","requires_shipping":true,"taxable":true,"featured_image":{"id":31480096555107,"product_id":7411305578595,"position":2,"created_at":"2024-05-05T00:04:12+08:00","updated_at":"2024-05-05T00:04:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3721f08d3bd814157079b3961d95e17e56412cf8_2677e351-8935-4cbe-a794-4fae00f744c9.webp?v=1714838652","variant_ids":[41897210118243]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章2-潮流系列 - 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-PB47","featured_media":{"alt":null,"id":23885347356771,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3721f08d3bd814157079b3961d95e17e56412cf8_2677e351-8935-4cbe-a794-4fae00f744c9.webp?v=1714838652"}},"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: "停產"
}