$product = {"id":7411465060451,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 波巴費特-噴漆白","handle":"iphone-14-pro-mod-nx-magsafe-printable-pb06","description":null,"published_at":"2024-06-11T17:45:45+08:00","created_at":"2024-05-05T00:35:01+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":41899206738019,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31480490000483,"product_id":7411465060451,"position":6,"created_at":"2024-05-05T00:35:14+08:00","updated_at":"2024-05-05T00:35:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14764473f7e329ce54112c13e0967cd847388f21_d07708bd-c108-4092-b81a-1a839d425f8b.webp?v=1714840514","variant_ids":[41899206738019]},"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-PB06","featured_media":{"alt":null,"id":23885741883491,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14764473f7e329ce54112c13e0967cd847388f21_d07708bd-c108-4092-b81a-1a839d425f8b.webp?v=1714840514"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41899206803555,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31480489672803,"product_id":7411465060451,"position":5,"created_at":"2024-05-05T00:35:12+08:00","updated_at":"2024-05-05T00:35:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65be384dcf9e16a97bb4ca42b509b88fc1321b84_dc38bc53-dd76-494a-8bef-3d9033b8358e.webp?v=1714840512","variant_ids":[41899206803555]},"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-PB06","featured_media":{"alt":null,"id":23885741588579,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65be384dcf9e16a97bb4ca42b509b88fc1321b84_dc38bc53-dd76-494a-8bef-3d9033b8358e.webp?v=1714840512"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41899207032931,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31480488853603,"product_id":7411465060451,"position":3,"created_at":"2024-05-05T00:35:08+08:00","updated_at":"2024-05-05T00:35:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d13cf521397c4e25b88f28692abb0de9880bb7a_fe887ce8-fead-4f64-abf1-090b3dfbeb0a.webp?v=1714840508","variant_ids":[41899207032931]},"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-PB06","featured_media":{"alt":null,"id":23885740736611,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d13cf521397c4e25b88f28692abb0de9880bb7a_fe887ce8-fead-4f64-abf1-090b3dfbeb0a.webp?v=1714840508"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/083482ed3cc2e82ebfaddcd40bc95b998890b99f_20313900-e6ee-4ce5-8268-c2f0e1703a8e.webp?v=1714840503","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd1380094ef85489da77af9a4c3ae1c7d6602b33_5a7e2c42-e0f2-42d6-bfbd-5ea6fb4855ac.webp?v=1714840505","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d13cf521397c4e25b88f28692abb0de9880bb7a_fe887ce8-fead-4f64-abf1-090b3dfbeb0a.webp?v=1714840508","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f7aeb7cfb1ac0a5d436a7ecee3820a7231758e0_dd1ede74-412a-4749-a0ae-81ad3a706f94.webp?v=1714840510","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65be384dcf9e16a97bb4ca42b509b88fc1321b84_dc38bc53-dd76-494a-8bef-3d9033b8358e.webp?v=1714840512","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14764473f7e329ce54112c13e0967cd847388f21_d07708bd-c108-4092-b81a-1a839d425f8b.webp?v=1714840514","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d52c255a4919c35c55e5def1321bf87a6e15c6a_2019e19a-f109-4433-ab58-8dc2b7e3ca46.webp?v=1714840517","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4de1db6ee7dd28735419de20581427a6d01aefe_cf8718e0-8ed9-443e-9def-902ed131b0d1.webp?v=1714840519","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1655971ea5a50a036a385fe0d3ffaa319f0ac609_9ed1e670-c72a-46fa-aca4-4e270e6f28ec.webp?v=1714840521","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a2470fe9524dcf49f5e54c8cb136ffd249a2c4c_f706b849-991b-4f4c-80e7-7b47c90f2d44.webp?v=1714840523"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/083482ed3cc2e82ebfaddcd40bc95b998890b99f_20313900-e6ee-4ce5-8268-c2f0e1703a8e.webp?v=1714840503","options":["color"],"media":[{"alt":null,"id":23885739458659,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/083482ed3cc2e82ebfaddcd40bc95b998890b99f_20313900-e6ee-4ce5-8268-c2f0e1703a8e.webp?v=1714840503"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/083482ed3cc2e82ebfaddcd40bc95b998890b99f_20313900-e6ee-4ce5-8268-c2f0e1703a8e.webp?v=1714840503","width":2000},{"alt":null,"id":23885740114019,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd1380094ef85489da77af9a4c3ae1c7d6602b33_5a7e2c42-e0f2-42d6-bfbd-5ea6fb4855ac.webp?v=1714840505"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd1380094ef85489da77af9a4c3ae1c7d6602b33_5a7e2c42-e0f2-42d6-bfbd-5ea6fb4855ac.webp?v=1714840505","width":2000},{"alt":null,"id":23885740736611,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d13cf521397c4e25b88f28692abb0de9880bb7a_fe887ce8-fead-4f64-abf1-090b3dfbeb0a.webp?v=1714840508"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d13cf521397c4e25b88f28692abb0de9880bb7a_fe887ce8-fead-4f64-abf1-090b3dfbeb0a.webp?v=1714840508","width":2000},{"alt":null,"id":23885741129827,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f7aeb7cfb1ac0a5d436a7ecee3820a7231758e0_dd1ede74-412a-4749-a0ae-81ad3a706f94.webp?v=1714840510"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f7aeb7cfb1ac0a5d436a7ecee3820a7231758e0_dd1ede74-412a-4749-a0ae-81ad3a706f94.webp?v=1714840510","width":2000},{"alt":null,"id":23885741588579,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65be384dcf9e16a97bb4ca42b509b88fc1321b84_dc38bc53-dd76-494a-8bef-3d9033b8358e.webp?v=1714840512"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65be384dcf9e16a97bb4ca42b509b88fc1321b84_dc38bc53-dd76-494a-8bef-3d9033b8358e.webp?v=1714840512","width":2000},{"alt":null,"id":23885741883491,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14764473f7e329ce54112c13e0967cd847388f21_d07708bd-c108-4092-b81a-1a839d425f8b.webp?v=1714840514"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14764473f7e329ce54112c13e0967cd847388f21_d07708bd-c108-4092-b81a-1a839d425f8b.webp?v=1714840514","width":2000},{"alt":null,"id":23885742145635,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d52c255a4919c35c55e5def1321bf87a6e15c6a_2019e19a-f109-4433-ab58-8dc2b7e3ca46.webp?v=1714840517"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d52c255a4919c35c55e5def1321bf87a6e15c6a_2019e19a-f109-4433-ab58-8dc2b7e3ca46.webp?v=1714840517","width":2000},{"alt":null,"id":23885742407779,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4de1db6ee7dd28735419de20581427a6d01aefe_cf8718e0-8ed9-443e-9def-902ed131b0d1.webp?v=1714840519"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4de1db6ee7dd28735419de20581427a6d01aefe_cf8718e0-8ed9-443e-9def-902ed131b0d1.webp?v=1714840519","width":2000},{"alt":null,"id":23885742637155,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1655971ea5a50a036a385fe0d3ffaa319f0ac609_9ed1e670-c72a-46fa-aca4-4e270e6f28ec.webp?v=1714840521"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1655971ea5a50a036a385fe0d3ffaa319f0ac609_9ed1e670-c72a-46fa-aca4-4e270e6f28ec.webp?v=1714840521","width":2000},{"alt":null,"id":23885742964835,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a2470fe9524dcf49f5e54c8cb136ffd249a2c4c_f706b849-991b-4f4c-80e7-7b47c90f2d44.webp?v=1714840523"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a2470fe9524dcf49f5e54c8cb136ffd249a2c4c_f706b849-991b-4f4c-80e7-7b47c90f2d44.webp?v=1714840523","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41899206738019,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31480490000483,"product_id":7411465060451,"position":6,"created_at":"2024-05-05T00:35:14+08:00","updated_at":"2024-05-05T00:35:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14764473f7e329ce54112c13e0967cd847388f21_d07708bd-c108-4092-b81a-1a839d425f8b.webp?v=1714840514","variant_ids":[41899206738019]},"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-PB06","featured_media":{"alt":null,"id":23885741883491,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14764473f7e329ce54112c13e0967cd847388f21_d07708bd-c108-4092-b81a-1a839d425f8b.webp?v=1714840514"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41899206803555,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31480489672803,"product_id":7411465060451,"position":5,"created_at":"2024-05-05T00:35:12+08:00","updated_at":"2024-05-05T00:35:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65be384dcf9e16a97bb4ca42b509b88fc1321b84_dc38bc53-dd76-494a-8bef-3d9033b8358e.webp?v=1714840512","variant_ids":[41899206803555]},"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-PB06","featured_media":{"alt":null,"id":23885741588579,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65be384dcf9e16a97bb4ca42b509b88fc1321b84_dc38bc53-dd76-494a-8bef-3d9033b8358e.webp?v=1714840512"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41899207032931,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31480488853603,"product_id":7411465060451,"position":3,"created_at":"2024-05-05T00:35:08+08:00","updated_at":"2024-05-05T00:35:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d13cf521397c4e25b88f28692abb0de9880bb7a_fe887ce8-fead-4f64-abf1-090b3dfbeb0a.webp?v=1714840508","variant_ids":[41899207032931]},"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-PB06","featured_media":{"alt":null,"id":23885740736611,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d13cf521397c4e25b88f28692abb0de9880bb7a_fe887ce8-fead-4f64-abf1-090b3dfbeb0a.webp?v=1714840508"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41899206738019,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31480490000483,"product_id":7411465060451,"position":6,"created_at":"2024-05-05T00:35:14+08:00","updated_at":"2024-05-05T00:35:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14764473f7e329ce54112c13e0967cd847388f21_d07708bd-c108-4092-b81a-1a839d425f8b.webp?v=1714840514","variant_ids":[41899206738019]},"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-PB06","featured_media":{"alt":null,"id":23885741883491,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14764473f7e329ce54112c13e0967cd847388f21_d07708bd-c108-4092-b81a-1a839d425f8b.webp?v=1714840514"}},"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: "停產"
}