$product = {"id":7413948579939,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 賈霸-塗鴉藝術","handle":"iphone-13-mini-mod-nx-magsafe-printable-pb41","description":null,"published_at":"2024-06-11T17:45:51+08:00","created_at":"2024-05-05T13:48:17+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 13 mini","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":41902567522403,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB41","requires_shipping":true,"taxable":true,"featured_image":{"id":31484299149411,"product_id":7413948579939,"position":7,"created_at":"2024-05-05T13:48:33+08:00","updated_at":"2024-05-05T13:48:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/580e9223b7bb3f6477e91663e2dc80ef6fa19601_051ddd0a-68f5-47a6-a339-fbadb72fc0a2.webp?v=1714888113","variant_ids":[41902567522403]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 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":"MPB0122824-PB41","featured_media":{"alt":null,"id":23889592713315,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/580e9223b7bb3f6477e91663e2dc80ef6fa19601_051ddd0a-68f5-47a6-a339-fbadb72fc0a2.webp?v=1714888113"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902567587939,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB41","requires_shipping":true,"taxable":true,"featured_image":{"id":31484300394595,"product_id":7413948579939,"position":10,"created_at":"2024-05-05T13:48:40+08:00","updated_at":"2024-05-05T13:48:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2109f6e64f062a6abc6e64faa5c1858492a6021f_88f3c667-9be8-445f-aa32-ba9a70c0efce.webp?v=1714888120","variant_ids":[41902567587939]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 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":"MPB0122804-PB41","featured_media":{"alt":null,"id":23889593991267,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2109f6e64f062a6abc6e64faa5c1858492a6021f_88f3c667-9be8-445f-aa32-ba9a70c0efce.webp?v=1714888120"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902567817315,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB41","requires_shipping":true,"taxable":true,"featured_image":{"id":31484299542627,"product_id":7413948579939,"position":8,"created_at":"2024-05-05T13:48:35+08:00","updated_at":"2024-05-05T13:48:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7395b214d04b862a3510f6a7f30283f631a4b9c5_df841576-7a61-4d48-9583-af72828d0586.webp?v=1714888115","variant_ids":[41902567817315]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 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":"MPB01228J5-PB41","featured_media":{"alt":null,"id":23889593139299,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7395b214d04b862a3510f6a7f30283f631a4b9c5_df841576-7a61-4d48-9583-af72828d0586.webp?v=1714888115"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ff83ba4d07a570093ad997e82b4811bd25c29a4_c4f0d7b0-ad1a-424a-bd8c-0dd250d557d9.webp?v=1714888099","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31b0fb9f14f6646aa194a076c87530586ee00516_64db90e6-93a5-4392-a566-3caa428af74e.webp?v=1714888101","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21cb554051f40b5ab9f1a4b888881d97d60f4680_5a63ab65-b95b-4aad-bd06-6836df872b38.webp?v=1714888103","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cecdb00d215cc9ea323ff98ac7b8d3394d88cbed_69111394-bbae-43e8-af19-ddf9ca275241.webp?v=1714888106","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14703203ecdd70d7b9d99412f6d500b6ed973d7f_4cc90a17-c66d-4fc5-86c5-839b659e8d1b.webp?v=1714888108","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93da5de3bc6a11d0fdc265fdb39521d21d9033fa_2508dab1-ca24-4394-8091-07f37e3ebd76.webp?v=1714888111","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/580e9223b7bb3f6477e91663e2dc80ef6fa19601_051ddd0a-68f5-47a6-a339-fbadb72fc0a2.webp?v=1714888113","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7395b214d04b862a3510f6a7f30283f631a4b9c5_df841576-7a61-4d48-9583-af72828d0586.webp?v=1714888115","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2fa4b64a34b6d0afafe5af22360186b5d3ffc898_3ce91f1d-4aad-44c8-a824-cf2792b44eae.webp?v=1714888117","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2109f6e64f062a6abc6e64faa5c1858492a6021f_88f3c667-9be8-445f-aa32-ba9a70c0efce.webp?v=1714888120"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ff83ba4d07a570093ad997e82b4811bd25c29a4_c4f0d7b0-ad1a-424a-bd8c-0dd250d557d9.webp?v=1714888099","options":["color"],"media":[{"alt":null,"id":23889589141603,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ff83ba4d07a570093ad997e82b4811bd25c29a4_c4f0d7b0-ad1a-424a-bd8c-0dd250d557d9.webp?v=1714888099"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ff83ba4d07a570093ad997e82b4811bd25c29a4_c4f0d7b0-ad1a-424a-bd8c-0dd250d557d9.webp?v=1714888099","width":2000},{"alt":null,"id":23889589665891,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31b0fb9f14f6646aa194a076c87530586ee00516_64db90e6-93a5-4392-a566-3caa428af74e.webp?v=1714888101"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31b0fb9f14f6646aa194a076c87530586ee00516_64db90e6-93a5-4392-a566-3caa428af74e.webp?v=1714888101","width":2000},{"alt":null,"id":23889590255715,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21cb554051f40b5ab9f1a4b888881d97d60f4680_5a63ab65-b95b-4aad-bd06-6836df872b38.webp?v=1714888103"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21cb554051f40b5ab9f1a4b888881d97d60f4680_5a63ab65-b95b-4aad-bd06-6836df872b38.webp?v=1714888103","width":2000},{"alt":null,"id":23889590845539,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cecdb00d215cc9ea323ff98ac7b8d3394d88cbed_69111394-bbae-43e8-af19-ddf9ca275241.webp?v=1714888106"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cecdb00d215cc9ea323ff98ac7b8d3394d88cbed_69111394-bbae-43e8-af19-ddf9ca275241.webp?v=1714888106","width":2000},{"alt":null,"id":23889591631971,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14703203ecdd70d7b9d99412f6d500b6ed973d7f_4cc90a17-c66d-4fc5-86c5-839b659e8d1b.webp?v=1714888108"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14703203ecdd70d7b9d99412f6d500b6ed973d7f_4cc90a17-c66d-4fc5-86c5-839b659e8d1b.webp?v=1714888108","width":2000},{"alt":null,"id":23889592156259,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93da5de3bc6a11d0fdc265fdb39521d21d9033fa_2508dab1-ca24-4394-8091-07f37e3ebd76.webp?v=1714888111"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93da5de3bc6a11d0fdc265fdb39521d21d9033fa_2508dab1-ca24-4394-8091-07f37e3ebd76.webp?v=1714888111","width":2000},{"alt":null,"id":23889592713315,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/580e9223b7bb3f6477e91663e2dc80ef6fa19601_051ddd0a-68f5-47a6-a339-fbadb72fc0a2.webp?v=1714888113"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/580e9223b7bb3f6477e91663e2dc80ef6fa19601_051ddd0a-68f5-47a6-a339-fbadb72fc0a2.webp?v=1714888113","width":2000},{"alt":null,"id":23889593139299,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7395b214d04b862a3510f6a7f30283f631a4b9c5_df841576-7a61-4d48-9583-af72828d0586.webp?v=1714888115"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7395b214d04b862a3510f6a7f30283f631a4b9c5_df841576-7a61-4d48-9583-af72828d0586.webp?v=1714888115","width":2000},{"alt":null,"id":23889593466979,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2fa4b64a34b6d0afafe5af22360186b5d3ffc898_3ce91f1d-4aad-44c8-a824-cf2792b44eae.webp?v=1714888117"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2fa4b64a34b6d0afafe5af22360186b5d3ffc898_3ce91f1d-4aad-44c8-a824-cf2792b44eae.webp?v=1714888117","width":2000},{"alt":null,"id":23889593991267,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2109f6e64f062a6abc6e64faa5c1858492a6021f_88f3c667-9be8-445f-aa32-ba9a70c0efce.webp?v=1714888120"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2109f6e64f062a6abc6e64faa5c1858492a6021f_88f3c667-9be8-445f-aa32-ba9a70c0efce.webp?v=1714888120","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41902567522403,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB41","requires_shipping":true,"taxable":true,"featured_image":{"id":31484299149411,"product_id":7413948579939,"position":7,"created_at":"2024-05-05T13:48:33+08:00","updated_at":"2024-05-05T13:48:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/580e9223b7bb3f6477e91663e2dc80ef6fa19601_051ddd0a-68f5-47a6-a339-fbadb72fc0a2.webp?v=1714888113","variant_ids":[41902567522403]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 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":"MPB0122824-PB41","featured_media":{"alt":null,"id":23889592713315,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/580e9223b7bb3f6477e91663e2dc80ef6fa19601_051ddd0a-68f5-47a6-a339-fbadb72fc0a2.webp?v=1714888113"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902567587939,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB41","requires_shipping":true,"taxable":true,"featured_image":{"id":31484300394595,"product_id":7413948579939,"position":10,"created_at":"2024-05-05T13:48:40+08:00","updated_at":"2024-05-05T13:48:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2109f6e64f062a6abc6e64faa5c1858492a6021f_88f3c667-9be8-445f-aa32-ba9a70c0efce.webp?v=1714888120","variant_ids":[41902567587939]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 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":"MPB0122804-PB41","featured_media":{"alt":null,"id":23889593991267,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2109f6e64f062a6abc6e64faa5c1858492a6021f_88f3c667-9be8-445f-aa32-ba9a70c0efce.webp?v=1714888120"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902567817315,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB41","requires_shipping":true,"taxable":true,"featured_image":{"id":31484299542627,"product_id":7413948579939,"position":8,"created_at":"2024-05-05T13:48:35+08:00","updated_at":"2024-05-05T13:48:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7395b214d04b862a3510f6a7f30283f631a4b9c5_df841576-7a61-4d48-9583-af72828d0586.webp?v=1714888115","variant_ids":[41902567817315]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 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":"MPB01228J5-PB41","featured_media":{"alt":null,"id":23889593139299,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7395b214d04b862a3510f6a7f30283f631a4b9c5_df841576-7a61-4d48-9583-af72828d0586.webp?v=1714888115"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41902567522403,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB41","requires_shipping":true,"taxable":true,"featured_image":{"id":31484299149411,"product_id":7413948579939,"position":7,"created_at":"2024-05-05T13:48:33+08:00","updated_at":"2024-05-05T13:48:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/580e9223b7bb3f6477e91663e2dc80ef6fa19601_051ddd0a-68f5-47a6-a339-fbadb72fc0a2.webp?v=1714888113","variant_ids":[41902567522403]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 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":"MPB0122824-PB41","featured_media":{"alt":null,"id":23889592713315,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/580e9223b7bb3f6477e91663e2dc80ef6fa19601_051ddd0a-68f5-47a6-a339-fbadb72fc0a2.webp?v=1714888113"}},"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: "停產"
}