$product = {"id":7408176758883,"title":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 小圖款-凱羅忍","handle":"iphone-13-mini-mod-nx-printable-pc06","description":null,"published_at":"2024-06-11T16:33:27+08:00","created_at":"2024-05-03T12:14:49+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":41883530395747,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PC06","requires_shipping":true,"taxable":true,"featured_image":{"id":31471390982243,"product_id":7408176758883,"position":6,"created_at":"2024-05-03T12:15:03+08:00","updated_at":"2024-05-03T12:15:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd17769d7131dd80a8b3b3e7434bfffa6f7cb911_f4851e5b-f524-4af7-a8a8-c289c98bb364.webp?v=1714709703","variant_ids":[41883530395747]},"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-PC06","featured_media":{"alt":null,"id":23876297130083,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd17769d7131dd80a8b3b3e7434bfffa6f7cb911_f4851e5b-f524-4af7-a8a8-c289c98bb364.webp?v=1714709703"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883530526819,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PC06","requires_shipping":true,"taxable":true,"featured_image":{"id":31471392358499,"product_id":7408176758883,"position":9,"created_at":"2024-05-03T12:15:10+08:00","updated_at":"2024-05-03T12:15:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ef11ee9fc6b3efa89d7c2f6b5cfc5132f76ac4d_86cb3e32-166f-4581-8103-1be2d432b14b.webp?v=1714709710","variant_ids":[41883530526819]},"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-PC06","featured_media":{"alt":null,"id":23876298539107,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ef11ee9fc6b3efa89d7c2f6b5cfc5132f76ac4d_86cb3e32-166f-4581-8103-1be2d432b14b.webp?v=1714709710"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883530854499,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PC06","requires_shipping":true,"taxable":true,"featured_image":{"id":31471389114467,"product_id":7408176758883,"position":2,"created_at":"2024-05-03T12:14:53+08:00","updated_at":"2024-05-03T12:14:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e0593ec87f1e00b017ef033562aec50761d38b2_1187169b-1633-4d56-8e39-5aec1a8a9e03.webp?v=1714709693","variant_ids":[41883530854499]},"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-PC06","featured_media":{"alt":null,"id":23876295262307,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e0593ec87f1e00b017ef033562aec50761d38b2_1187169b-1633-4d56-8e39-5aec1a8a9e03.webp?v=1714709693"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/552cda1032951485d2bbcfb60a10cf0460ac870e_26600851-cfc2-45f7-b7ec-61eccca73e2d.webp?v=1714709691","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e0593ec87f1e00b017ef033562aec50761d38b2_1187169b-1633-4d56-8e39-5aec1a8a9e03.webp?v=1714709693","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed99252e560dd627aebf37c6be94f404daa8877f_40c8365a-1e92-44f4-8fdb-69b743522c9f.webp?v=1714709695","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19c1345b732d3d3ed3a1c3a69614a33ffb7682e4_bd7f9eb3-718f-45d4-abc0-4c18e375c1cf.webp?v=1714709698","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94796a570ab49458aa66c429d9b0db7bc140cdbd_ad7c70a3-baff-4d2e-8854-d552b98aac3a.webp?v=1714709701","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd17769d7131dd80a8b3b3e7434bfffa6f7cb911_f4851e5b-f524-4af7-a8a8-c289c98bb364.webp?v=1714709703","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acaca0e73c64dd1fcc6163958c673c0594d7d46e_4c23eb59-b3ed-4e8a-8c3a-2e2d6e475aab.webp?v=1714709705","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58072a23c198c858b2848fad2010cd31956f1b7d_9248923a-109f-4d2d-a5f3-8ac4048fb4ba.webp?v=1714709707","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ef11ee9fc6b3efa89d7c2f6b5cfc5132f76ac4d_86cb3e32-166f-4581-8103-1be2d432b14b.webp?v=1714709710","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be52ba83f054445d92550d2bdb1bfca98a1dbb45_7c3ee02e-0782-49e5-a323-e646aaccb759.webp?v=1714709712"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/552cda1032951485d2bbcfb60a10cf0460ac870e_26600851-cfc2-45f7-b7ec-61eccca73e2d.webp?v=1714709691","options":["color"],"media":[{"alt":null,"id":23876294738019,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/552cda1032951485d2bbcfb60a10cf0460ac870e_26600851-cfc2-45f7-b7ec-61eccca73e2d.webp?v=1714709691"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/552cda1032951485d2bbcfb60a10cf0460ac870e_26600851-cfc2-45f7-b7ec-61eccca73e2d.webp?v=1714709691","width":2000},{"alt":null,"id":23876295262307,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e0593ec87f1e00b017ef033562aec50761d38b2_1187169b-1633-4d56-8e39-5aec1a8a9e03.webp?v=1714709693"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e0593ec87f1e00b017ef033562aec50761d38b2_1187169b-1633-4d56-8e39-5aec1a8a9e03.webp?v=1714709693","width":2000},{"alt":null,"id":23876295819363,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed99252e560dd627aebf37c6be94f404daa8877f_40c8365a-1e92-44f4-8fdb-69b743522c9f.webp?v=1714709695"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed99252e560dd627aebf37c6be94f404daa8877f_40c8365a-1e92-44f4-8fdb-69b743522c9f.webp?v=1714709695","width":2000},{"alt":null,"id":23876296245347,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19c1345b732d3d3ed3a1c3a69614a33ffb7682e4_bd7f9eb3-718f-45d4-abc0-4c18e375c1cf.webp?v=1714709698"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19c1345b732d3d3ed3a1c3a69614a33ffb7682e4_bd7f9eb3-718f-45d4-abc0-4c18e375c1cf.webp?v=1714709698","width":2000},{"alt":null,"id":23876296802403,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94796a570ab49458aa66c429d9b0db7bc140cdbd_ad7c70a3-baff-4d2e-8854-d552b98aac3a.webp?v=1714709701"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94796a570ab49458aa66c429d9b0db7bc140cdbd_ad7c70a3-baff-4d2e-8854-d552b98aac3a.webp?v=1714709701","width":2000},{"alt":null,"id":23876297130083,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd17769d7131dd80a8b3b3e7434bfffa6f7cb911_f4851e5b-f524-4af7-a8a8-c289c98bb364.webp?v=1714709703"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd17769d7131dd80a8b3b3e7434bfffa6f7cb911_f4851e5b-f524-4af7-a8a8-c289c98bb364.webp?v=1714709703","width":2000},{"alt":null,"id":23876297654371,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acaca0e73c64dd1fcc6163958c673c0594d7d46e_4c23eb59-b3ed-4e8a-8c3a-2e2d6e475aab.webp?v=1714709705"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acaca0e73c64dd1fcc6163958c673c0594d7d46e_4c23eb59-b3ed-4e8a-8c3a-2e2d6e475aab.webp?v=1714709705","width":2000},{"alt":null,"id":23876298047587,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58072a23c198c858b2848fad2010cd31956f1b7d_9248923a-109f-4d2d-a5f3-8ac4048fb4ba.webp?v=1714709707"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58072a23c198c858b2848fad2010cd31956f1b7d_9248923a-109f-4d2d-a5f3-8ac4048fb4ba.webp?v=1714709707","width":2000},{"alt":null,"id":23876298539107,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ef11ee9fc6b3efa89d7c2f6b5cfc5132f76ac4d_86cb3e32-166f-4581-8103-1be2d432b14b.webp?v=1714709710"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ef11ee9fc6b3efa89d7c2f6b5cfc5132f76ac4d_86cb3e32-166f-4581-8103-1be2d432b14b.webp?v=1714709710","width":2000},{"alt":null,"id":23876299030627,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be52ba83f054445d92550d2bdb1bfca98a1dbb45_7c3ee02e-0782-49e5-a323-e646aaccb759.webp?v=1714709712"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be52ba83f054445d92550d2bdb1bfca98a1dbb45_7c3ee02e-0782-49e5-a323-e646aaccb759.webp?v=1714709712","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41883530395747,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PC06","requires_shipping":true,"taxable":true,"featured_image":{"id":31471390982243,"product_id":7408176758883,"position":6,"created_at":"2024-05-03T12:15:03+08:00","updated_at":"2024-05-03T12:15:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd17769d7131dd80a8b3b3e7434bfffa6f7cb911_f4851e5b-f524-4af7-a8a8-c289c98bb364.webp?v=1714709703","variant_ids":[41883530395747]},"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-PC06","featured_media":{"alt":null,"id":23876297130083,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd17769d7131dd80a8b3b3e7434bfffa6f7cb911_f4851e5b-f524-4af7-a8a8-c289c98bb364.webp?v=1714709703"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883530526819,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PC06","requires_shipping":true,"taxable":true,"featured_image":{"id":31471392358499,"product_id":7408176758883,"position":9,"created_at":"2024-05-03T12:15:10+08:00","updated_at":"2024-05-03T12:15:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ef11ee9fc6b3efa89d7c2f6b5cfc5132f76ac4d_86cb3e32-166f-4581-8103-1be2d432b14b.webp?v=1714709710","variant_ids":[41883530526819]},"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-PC06","featured_media":{"alt":null,"id":23876298539107,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ef11ee9fc6b3efa89d7c2f6b5cfc5132f76ac4d_86cb3e32-166f-4581-8103-1be2d432b14b.webp?v=1714709710"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883530854499,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PC06","requires_shipping":true,"taxable":true,"featured_image":{"id":31471389114467,"product_id":7408176758883,"position":2,"created_at":"2024-05-03T12:14:53+08:00","updated_at":"2024-05-03T12:14:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e0593ec87f1e00b017ef033562aec50761d38b2_1187169b-1633-4d56-8e39-5aec1a8a9e03.webp?v=1714709693","variant_ids":[41883530854499]},"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-PC06","featured_media":{"alt":null,"id":23876295262307,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e0593ec87f1e00b017ef033562aec50761d38b2_1187169b-1633-4d56-8e39-5aec1a8a9e03.webp?v=1714709693"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41883530395747,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PC06","requires_shipping":true,"taxable":true,"featured_image":{"id":31471390982243,"product_id":7408176758883,"position":6,"created_at":"2024-05-03T12:15:03+08:00","updated_at":"2024-05-03T12:15:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd17769d7131dd80a8b3b3e7434bfffa6f7cb911_f4851e5b-f524-4af7-a8a8-c289c98bb364.webp?v=1714709703","variant_ids":[41883530395747]},"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-PC06","featured_media":{"alt":null,"id":23876297130083,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd17769d7131dd80a8b3b3e7434bfffa6f7cb911_f4851e5b-f524-4af7-a8a8-c289c98bb364.webp?v=1714709703"}},"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: "停產"
}