$product = {"id":7408121217123,"title":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 死星-黑白條紋","handle":"iphone-13-mini-mod-nx-printable-pb21","description":null,"published_at":"2024-06-11T16:31:57+08:00","created_at":"2024-05-03T12:04:03+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 13 mini","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-star-wars","Top50","type-Mod NX Printable"],"price":90000,"price_min":90000,"price_max":90000,"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":41882919436387,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB21","requires_shipping":true,"taxable":true,"featured_image":{"id":31471247392867,"product_id":7408121217123,"position":8,"created_at":"2024-05-03T12:04:23+08:00","updated_at":"2024-05-03T12:04:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cacb2810b424d2fef8253d369d7531a85418fee_e29604f9-39b1-452b-8d34-5069ad4355f8.webp?v=1714709063","variant_ids":[41882919436387]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 死星-黑白條紋 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0122824-PB21","featured_media":{"alt":null,"id":23876152852579,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cacb2810b424d2fef8253d369d7531a85418fee_e29604f9-39b1-452b-8d34-5069ad4355f8.webp?v=1714709063"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882919567459,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB21","requires_shipping":true,"taxable":true,"featured_image":{"id":31471245033571,"product_id":7408121217123,"position":4,"created_at":"2024-05-03T12:04:13+08:00","updated_at":"2024-05-03T12:04:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/addbb32342fc81a149524e0f2bf3b2fc8bb96717_6f0f35aa-1f87-4dae-962e-820fabac4765.webp?v=1714709053","variant_ids":[41882919567459]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 死星-黑白條紋 - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0122804-PB21","featured_media":{"alt":null,"id":23876150493283,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/addbb32342fc81a149524e0f2bf3b2fc8bb96717_6f0f35aa-1f87-4dae-962e-820fabac4765.webp?v=1714709053"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882919829603,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB21","requires_shipping":true,"taxable":true,"featured_image":{"id":31471244574819,"product_id":7408121217123,"position":3,"created_at":"2024-05-03T12:04:11+08:00","updated_at":"2024-05-03T12:04:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04588d27f0d58e2ff7f8b3420ce7acb1bd80369d_e18ae9d5-a444-404d-8f6d-6fca1a8a43b7.webp?v=1714709051","variant_ids":[41882919829603]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 死星-黑白條紋 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01228J5-PB21","featured_media":{"alt":null,"id":23876150034531,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04588d27f0d58e2ff7f8b3420ce7acb1bd80369d_e18ae9d5-a444-404d-8f6d-6fca1a8a43b7.webp?v=1714709051"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dae5d4fe4e9d34daccde941cbf6313aa2532b782_11c4565d-39c2-4758-86ea-fa01a0cbf3bb.webp?v=1714709045","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4951ee2445f8fbdfe2c11f39de33279a53fb61a_51a4b41e-96af-47c6-ac03-f64385895d7f.webp?v=1714709048","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04588d27f0d58e2ff7f8b3420ce7acb1bd80369d_e18ae9d5-a444-404d-8f6d-6fca1a8a43b7.webp?v=1714709051","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/addbb32342fc81a149524e0f2bf3b2fc8bb96717_6f0f35aa-1f87-4dae-962e-820fabac4765.webp?v=1714709053","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/714d2a4432d884555771192a491dedac2c181d9a_02af8776-7f26-48ca-b1b8-6a3f4f586319.webp?v=1714709056","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f929da703acfdf2ea62ea0bb634be5a35c894488_0254651e-0dd0-4bb5-9c3a-2646665631fb.webp?v=1714709058","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d3a1b48b9d32ef22577013c1a3764f28c399a1b_14a26381-529a-49ec-bf5f-ce15612ca3bd.webp?v=1714709061","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cacb2810b424d2fef8253d369d7531a85418fee_e29604f9-39b1-452b-8d34-5069ad4355f8.webp?v=1714709063","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9247b81afd2ec3db11d87f828bfb458d5d6ae96_250fdae0-a24d-448b-b550-0e45d4300ed3.webp?v=1714709066","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5eddedb387fd05842f6373cee818bd13c29a7c57_8dc09a02-46ae-4028-a8d2-501158a62526.webp?v=1714709068"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dae5d4fe4e9d34daccde941cbf6313aa2532b782_11c4565d-39c2-4758-86ea-fa01a0cbf3bb.webp?v=1714709045","options":["color"],"media":[{"alt":null,"id":23876148658275,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dae5d4fe4e9d34daccde941cbf6313aa2532b782_11c4565d-39c2-4758-86ea-fa01a0cbf3bb.webp?v=1714709045"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dae5d4fe4e9d34daccde941cbf6313aa2532b782_11c4565d-39c2-4758-86ea-fa01a0cbf3bb.webp?v=1714709045","width":2000},{"alt":null,"id":23876149444707,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4951ee2445f8fbdfe2c11f39de33279a53fb61a_51a4b41e-96af-47c6-ac03-f64385895d7f.webp?v=1714709048"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4951ee2445f8fbdfe2c11f39de33279a53fb61a_51a4b41e-96af-47c6-ac03-f64385895d7f.webp?v=1714709048","width":2000},{"alt":null,"id":23876150034531,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04588d27f0d58e2ff7f8b3420ce7acb1bd80369d_e18ae9d5-a444-404d-8f6d-6fca1a8a43b7.webp?v=1714709051"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04588d27f0d58e2ff7f8b3420ce7acb1bd80369d_e18ae9d5-a444-404d-8f6d-6fca1a8a43b7.webp?v=1714709051","width":2000},{"alt":null,"id":23876150493283,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/addbb32342fc81a149524e0f2bf3b2fc8bb96717_6f0f35aa-1f87-4dae-962e-820fabac4765.webp?v=1714709053"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/addbb32342fc81a149524e0f2bf3b2fc8bb96717_6f0f35aa-1f87-4dae-962e-820fabac4765.webp?v=1714709053","width":2000},{"alt":null,"id":23876151115875,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/714d2a4432d884555771192a491dedac2c181d9a_02af8776-7f26-48ca-b1b8-6a3f4f586319.webp?v=1714709056"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/714d2a4432d884555771192a491dedac2c181d9a_02af8776-7f26-48ca-b1b8-6a3f4f586319.webp?v=1714709056","width":2000},{"alt":null,"id":23876151672931,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f929da703acfdf2ea62ea0bb634be5a35c894488_0254651e-0dd0-4bb5-9c3a-2646665631fb.webp?v=1714709058"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f929da703acfdf2ea62ea0bb634be5a35c894488_0254651e-0dd0-4bb5-9c3a-2646665631fb.webp?v=1714709058","width":2000},{"alt":null,"id":23876152393827,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d3a1b48b9d32ef22577013c1a3764f28c399a1b_14a26381-529a-49ec-bf5f-ce15612ca3bd.webp?v=1714709061"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d3a1b48b9d32ef22577013c1a3764f28c399a1b_14a26381-529a-49ec-bf5f-ce15612ca3bd.webp?v=1714709061","width":2000},{"alt":null,"id":23876152852579,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cacb2810b424d2fef8253d369d7531a85418fee_e29604f9-39b1-452b-8d34-5069ad4355f8.webp?v=1714709063"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cacb2810b424d2fef8253d369d7531a85418fee_e29604f9-39b1-452b-8d34-5069ad4355f8.webp?v=1714709063","width":2000},{"alt":null,"id":23876153442403,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9247b81afd2ec3db11d87f828bfb458d5d6ae96_250fdae0-a24d-448b-b550-0e45d4300ed3.webp?v=1714709066"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9247b81afd2ec3db11d87f828bfb458d5d6ae96_250fdae0-a24d-448b-b550-0e45d4300ed3.webp?v=1714709066","width":2000},{"alt":null,"id":23876153966691,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5eddedb387fd05842f6373cee818bd13c29a7c57_8dc09a02-46ae-4028-a8d2-501158a62526.webp?v=1714709068"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5eddedb387fd05842f6373cee818bd13c29a7c57_8dc09a02-46ae-4028-a8d2-501158a62526.webp?v=1714709068","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$bumper = null;
$variants = [{"id":41882919436387,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB21","requires_shipping":true,"taxable":true,"featured_image":{"id":31471247392867,"product_id":7408121217123,"position":8,"created_at":"2024-05-03T12:04:23+08:00","updated_at":"2024-05-03T12:04:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cacb2810b424d2fef8253d369d7531a85418fee_e29604f9-39b1-452b-8d34-5069ad4355f8.webp?v=1714709063","variant_ids":[41882919436387]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 死星-黑白條紋 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0122824-PB21","featured_media":{"alt":null,"id":23876152852579,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cacb2810b424d2fef8253d369d7531a85418fee_e29604f9-39b1-452b-8d34-5069ad4355f8.webp?v=1714709063"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882919567459,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB21","requires_shipping":true,"taxable":true,"featured_image":{"id":31471245033571,"product_id":7408121217123,"position":4,"created_at":"2024-05-03T12:04:13+08:00","updated_at":"2024-05-03T12:04:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/addbb32342fc81a149524e0f2bf3b2fc8bb96717_6f0f35aa-1f87-4dae-962e-820fabac4765.webp?v=1714709053","variant_ids":[41882919567459]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 死星-黑白條紋 - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0122804-PB21","featured_media":{"alt":null,"id":23876150493283,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/addbb32342fc81a149524e0f2bf3b2fc8bb96717_6f0f35aa-1f87-4dae-962e-820fabac4765.webp?v=1714709053"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882919829603,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB21","requires_shipping":true,"taxable":true,"featured_image":{"id":31471244574819,"product_id":7408121217123,"position":3,"created_at":"2024-05-03T12:04:11+08:00","updated_at":"2024-05-03T12:04:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04588d27f0d58e2ff7f8b3420ce7acb1bd80369d_e18ae9d5-a444-404d-8f6d-6fca1a8a43b7.webp?v=1714709051","variant_ids":[41882919829603]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 死星-黑白條紋 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01228J5-PB21","featured_media":{"alt":null,"id":23876150034531,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04588d27f0d58e2ff7f8b3420ce7acb1bd80369d_e18ae9d5-a444-404d-8f6d-6fca1a8a43b7.webp?v=1714709051"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41882919436387,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB21","requires_shipping":true,"taxable":true,"featured_image":{"id":31471247392867,"product_id":7408121217123,"position":8,"created_at":"2024-05-03T12:04:23+08:00","updated_at":"2024-05-03T12:04:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cacb2810b424d2fef8253d369d7531a85418fee_e29604f9-39b1-452b-8d34-5069ad4355f8.webp?v=1714709063","variant_ids":[41882919436387]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 死星-黑白條紋 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0122824-PB21","featured_media":{"alt":null,"id":23876152852579,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cacb2810b424d2fef8253d369d7531a85418fee_e29604f9-39b1-452b-8d34-5069ad4355f8.webp?v=1714709063"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}};
$device_handle = null
var sellingStatus
if ($bumper) {
$(document).ready(function() {
var productImg = $product.images[0]
var bumperVariants = $bumper.variants;
var bumperColors = new Object();
var currentVariant = '';
var productType = '';
bumperVariants.forEach(variant => {
bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src;
});
if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') {
mergeImages(
[productImg, bumperColors[currentVariant]],
{ crossOrigin: 'anonymous' }
).then(mergedImg => {
$('.merged-img').attr('src', mergedImg);
});
} else {
mergeImages(
[bumperColors[currentVariant], productImg],
{ crossOrigin: 'anonymous' }
).then(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: "停產"
}