$product = {"id":7769690374243,"title":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle Stay Curious - 保持好奇心","handle":"iphone-13-mini-mod-nx-magsafe-printable-xf57","description":null,"published_at":"2025-07-16T17:09:05+08:00","created_at":"2025-04-15T19:31:26+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區I Love Doodle","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-ilovedoodle","device-iPhone 13 Mini","merge","reseller-ilovedoodle"],"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":43303538360419,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0122824-XF57","requires_shipping":true,"taxable":true,"featured_image":{"id":34197710733411,"product_id":7769690374243,"position":10,"created_at":"2025-07-16T15:21:24+08:00","updated_at":"2025-07-16T15:21:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3044282db20ce658cf55b6686c2507993ddc80f_470074ca-4b1e-4d9f-858a-f7af1d15725b.webp?v=1752650486","variant_ids":[43303538360419]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle Stay Curious - 保持好奇心 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122824-XF57","featured_media":{"alt":null,"id":25830061899875,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3044282db20ce658cf55b6686c2507993ddc80f_470074ca-4b1e-4d9f-858a-f7af1d15725b.webp?v=1752650486"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43303545340003,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0122804-XF57","requires_shipping":true,"taxable":true,"featured_image":{"id":34197705687139,"product_id":7769690374243,"position":5,"created_at":"2025-07-16T15:21:21+08:00","updated_at":"2025-07-16T15:21:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c3d4e42137c5639a2ee878ea4ac745fd83ed0ec_5a6754c4-40a5-429a-9a80-7a41e626f683.webp?v=1752650483","variant_ids":[43303545340003]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle Stay Curious - 保持好奇心 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122804-XF57","featured_media":{"alt":null,"id":25830058917987,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c3d4e42137c5639a2ee878ea4ac745fd83ed0ec_5a6754c4-40a5-429a-9a80-7a41e626f683.webp?v=1752650483"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43303545503843,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01228J5-XF57","requires_shipping":true,"taxable":true,"featured_image":{"id":34197703753827,"product_id":7769690374243,"position":3,"created_at":"2025-07-16T15:21:20+08:00","updated_at":"2025-07-16T15:21:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed037c815e854936348eb2602d383d091f09ca7f_b29347cd-08a7-46d6-855a-87305339e18d.webp?v=1752650482","variant_ids":[43303545503843]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle Stay Curious - 保持好奇心 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01228J5-XF57","featured_media":{"alt":null,"id":25830057771107,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed037c815e854936348eb2602d383d091f09ca7f_b29347cd-08a7-46d6-855a-87305339e18d.webp?v=1752650482"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47adb2ec2f3f010aca66bf9c96a8657cfcfeb644.webp?v=1744716693","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3f4fa559c49d224157ff9b2eae17d8848acbcba_dfce4a4c-9a4d-42c2-abe5-93ca1aae8c2d.webp?v=1752650482","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed037c815e854936348eb2602d383d091f09ca7f_b29347cd-08a7-46d6-855a-87305339e18d.webp?v=1752650482","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c77f3d822fa47096a0524c942257a902e3f07a24_4d62b99c-c7c4-44e5-a472-13265001e129.webp?v=1752650483","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c3d4e42137c5639a2ee878ea4ac745fd83ed0ec_5a6754c4-40a5-429a-9a80-7a41e626f683.webp?v=1752650483","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d5c6cae778e2dbd7cb1fc4d0648de526dac4ebe_fb3fbfed-2387-4eff-8e03-6675a6f2ec8b.webp?v=1752650484","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e37498fda55c5b8df9ca63d22054405e369ece54_a988122f-73b2-46b5-8558-a78778411729.webp?v=1752650484","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e26ffec44332576ed6036e050a16ca05af97b23e_13430b4a-c6d0-4a5b-a84d-058f51d6e586.webp?v=1752650485","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/730d6898161f716ec91a5d73bf3fd12f88ba7603_4f7181c5-9091-40f4-95bc-08f51ee427b0.webp?v=1752650485","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3044282db20ce658cf55b6686c2507993ddc80f_470074ca-4b1e-4d9f-858a-f7af1d15725b.webp?v=1752650486","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15c955b28662812e053fe0a2ead59cadecc1c653_ad46e68e-e21e-4959-af49-d4cc9642cc6d.webp?v=1752650487","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5063539be77f74a9e965a6ae4dfd4cfa4e09a22_a2b51940-959a-4bcf-af12-09884cf68f38.webp?v=1752650488"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47adb2ec2f3f010aca66bf9c96a8657cfcfeb644.webp?v=1744716693","options":["color"],"media":[{"alt":null,"id":25496121999459,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47adb2ec2f3f010aca66bf9c96a8657cfcfeb644.webp?v=1744716693"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47adb2ec2f3f010aca66bf9c96a8657cfcfeb644.webp?v=1744716693","width":2000},{"alt":null,"id":25830057214051,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3f4fa559c49d224157ff9b2eae17d8848acbcba_dfce4a4c-9a4d-42c2-abe5-93ca1aae8c2d.webp?v=1752650482"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3f4fa559c49d224157ff9b2eae17d8848acbcba_dfce4a4c-9a4d-42c2-abe5-93ca1aae8c2d.webp?v=1752650482","width":2000},{"alt":null,"id":25830057771107,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed037c815e854936348eb2602d383d091f09ca7f_b29347cd-08a7-46d6-855a-87305339e18d.webp?v=1752650482"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed037c815e854936348eb2602d383d091f09ca7f_b29347cd-08a7-46d6-855a-87305339e18d.webp?v=1752650482","width":2000},{"alt":null,"id":25830058262627,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c77f3d822fa47096a0524c942257a902e3f07a24_4d62b99c-c7c4-44e5-a472-13265001e129.webp?v=1752650483"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c77f3d822fa47096a0524c942257a902e3f07a24_4d62b99c-c7c4-44e5-a472-13265001e129.webp?v=1752650483","width":2000},{"alt":null,"id":25830058917987,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c3d4e42137c5639a2ee878ea4ac745fd83ed0ec_5a6754c4-40a5-429a-9a80-7a41e626f683.webp?v=1752650483"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c3d4e42137c5639a2ee878ea4ac745fd83ed0ec_5a6754c4-40a5-429a-9a80-7a41e626f683.webp?v=1752650483","width":2000},{"alt":null,"id":25830059704419,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d5c6cae778e2dbd7cb1fc4d0648de526dac4ebe_fb3fbfed-2387-4eff-8e03-6675a6f2ec8b.webp?v=1752650484"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d5c6cae778e2dbd7cb1fc4d0648de526dac4ebe_fb3fbfed-2387-4eff-8e03-6675a6f2ec8b.webp?v=1752650484","width":2000},{"alt":null,"id":25830060130403,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e37498fda55c5b8df9ca63d22054405e369ece54_a988122f-73b2-46b5-8558-a78778411729.webp?v=1752650484"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e37498fda55c5b8df9ca63d22054405e369ece54_a988122f-73b2-46b5-8558-a78778411729.webp?v=1752650484","width":2000},{"alt":null,"id":25830060589155,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e26ffec44332576ed6036e050a16ca05af97b23e_13430b4a-c6d0-4a5b-a84d-058f51d6e586.webp?v=1752650485"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e26ffec44332576ed6036e050a16ca05af97b23e_13430b4a-c6d0-4a5b-a84d-058f51d6e586.webp?v=1752650485","width":2000},{"alt":null,"id":25830061113443,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/730d6898161f716ec91a5d73bf3fd12f88ba7603_4f7181c5-9091-40f4-95bc-08f51ee427b0.webp?v=1752650485"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/730d6898161f716ec91a5d73bf3fd12f88ba7603_4f7181c5-9091-40f4-95bc-08f51ee427b0.webp?v=1752650485","width":2000},{"alt":null,"id":25830061899875,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3044282db20ce658cf55b6686c2507993ddc80f_470074ca-4b1e-4d9f-858a-f7af1d15725b.webp?v=1752650486"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3044282db20ce658cf55b6686c2507993ddc80f_470074ca-4b1e-4d9f-858a-f7af1d15725b.webp?v=1752650486","width":2000},{"alt":null,"id":25830062293091,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15c955b28662812e053fe0a2ead59cadecc1c653_ad46e68e-e21e-4959-af49-d4cc9642cc6d.webp?v=1752650487"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15c955b28662812e053fe0a2ead59cadecc1c653_ad46e68e-e21e-4959-af49-d4cc9642cc6d.webp?v=1752650487","width":2000},{"alt":null,"id":25830062620771,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5063539be77f74a9e965a6ae4dfd4cfa4e09a22_a2b51940-959a-4bcf-af12-09884cf68f38.webp?v=1752650488"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5063539be77f74a9e965a6ae4dfd4cfa4e09a22_a2b51940-959a-4bcf-af12-09884cf68f38.webp?v=1752650488","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43303538360419,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0122824-XF57","requires_shipping":true,"taxable":true,"featured_image":{"id":34197710733411,"product_id":7769690374243,"position":10,"created_at":"2025-07-16T15:21:24+08:00","updated_at":"2025-07-16T15:21:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3044282db20ce658cf55b6686c2507993ddc80f_470074ca-4b1e-4d9f-858a-f7af1d15725b.webp?v=1752650486","variant_ids":[43303538360419]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle Stay Curious - 保持好奇心 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122824-XF57","featured_media":{"alt":null,"id":25830061899875,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3044282db20ce658cf55b6686c2507993ddc80f_470074ca-4b1e-4d9f-858a-f7af1d15725b.webp?v=1752650486"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43303545340003,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0122804-XF57","requires_shipping":true,"taxable":true,"featured_image":{"id":34197705687139,"product_id":7769690374243,"position":5,"created_at":"2025-07-16T15:21:21+08:00","updated_at":"2025-07-16T15:21:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c3d4e42137c5639a2ee878ea4ac745fd83ed0ec_5a6754c4-40a5-429a-9a80-7a41e626f683.webp?v=1752650483","variant_ids":[43303545340003]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle Stay Curious - 保持好奇心 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122804-XF57","featured_media":{"alt":null,"id":25830058917987,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c3d4e42137c5639a2ee878ea4ac745fd83ed0ec_5a6754c4-40a5-429a-9a80-7a41e626f683.webp?v=1752650483"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43303545503843,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01228J5-XF57","requires_shipping":true,"taxable":true,"featured_image":{"id":34197703753827,"product_id":7769690374243,"position":3,"created_at":"2025-07-16T15:21:20+08:00","updated_at":"2025-07-16T15:21:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed037c815e854936348eb2602d383d091f09ca7f_b29347cd-08a7-46d6-855a-87305339e18d.webp?v=1752650482","variant_ids":[43303545503843]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle Stay Curious - 保持好奇心 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01228J5-XF57","featured_media":{"alt":null,"id":25830057771107,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed037c815e854936348eb2602d383d091f09ca7f_b29347cd-08a7-46d6-855a-87305339e18d.webp?v=1752650482"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43303538360419,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0122824-XF57","requires_shipping":true,"taxable":true,"featured_image":{"id":34197710733411,"product_id":7769690374243,"position":10,"created_at":"2025-07-16T15:21:24+08:00","updated_at":"2025-07-16T15:21:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3044282db20ce658cf55b6686c2507993ddc80f_470074ca-4b1e-4d9f-858a-f7af1d15725b.webp?v=1752650486","variant_ids":[43303538360419]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle Stay Curious - 保持好奇心 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122824-XF57","featured_media":{"alt":null,"id":25830061899875,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3044282db20ce658cf55b6686c2507993ddc80f_470074ca-4b1e-4d9f-858a-f7af1d15725b.webp?v=1752650486"}},"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: "停產"
}