$product = {"id":7414323773539,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 星戰漫畫-貼紙系列","handle":"iphone-13-mini-mod-nx-magsafe-printable-pb83","description":null,"published_at":"2024-06-11T17:50:46+08:00","created_at":"2024-05-05T14:21:57+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":41905712005219,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB83","requires_shipping":true,"taxable":true,"featured_image":{"id":31485165797475,"product_id":7414323773539,"position":4,"created_at":"2024-05-05T14:22:06+08:00","updated_at":"2024-05-05T14:22:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9a89a5a5d32da5500b0d29c7d728c2c0851036c_96b5e76c-98b2-4d34-be8d-c9ee7943c2e4.webp?v=1714890126","variant_ids":[41905712005219]},"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-PB83","featured_media":{"alt":null,"id":23890481217635,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9a89a5a5d32da5500b0d29c7d728c2c0851036c_96b5e76c-98b2-4d34-be8d-c9ee7943c2e4.webp?v=1714890126"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905712070755,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB83","requires_shipping":true,"taxable":true,"featured_image":{"id":31485158064227,"product_id":7414323773539,"position":1,"created_at":"2024-05-05T14:21:59+08:00","updated_at":"2024-05-05T14:21:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7ff1b11487a50451352352ff6e3fe70f252009b_7ead22a4-da49-4873-85b7-7a82095108e8.webp?v=1714890119","variant_ids":[41905712070755]},"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-PB83","featured_media":{"alt":null,"id":23890473615459,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7ff1b11487a50451352352ff6e3fe70f252009b_7ead22a4-da49-4873-85b7-7a82095108e8.webp?v=1714890119"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905712332899,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB83","requires_shipping":true,"taxable":true,"featured_image":{"id":31485170024547,"product_id":7414323773539,"position":6,"created_at":"2024-05-05T14:22:11+08:00","updated_at":"2024-05-05T14:22:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/504603033325c656bc60df1726d30bfb60be667c_351a010e-b42d-4cc5-bfed-300204dac6e2.webp?v=1714890131","variant_ids":[41905712332899]},"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-PB83","featured_media":{"alt":null,"id":23890486526051,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/504603033325c656bc60df1726d30bfb60be667c_351a010e-b42d-4cc5-bfed-300204dac6e2.webp?v=1714890131"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7ff1b11487a50451352352ff6e3fe70f252009b_7ead22a4-da49-4873-85b7-7a82095108e8.webp?v=1714890119","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8b4ee3d172ec90478d6a0e3f4e402f70f1a1c95_db84a742-9cb4-4f38-9b73-17c42ee40b1e.webp?v=1714890122","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd4cf7b74a25809779a5f1036a26fe5e62cbeca6_e29b4064-e16a-4192-9639-bcf58207ff68.webp?v=1714890124","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9a89a5a5d32da5500b0d29c7d728c2c0851036c_96b5e76c-98b2-4d34-be8d-c9ee7943c2e4.webp?v=1714890126","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2f94c408c741df672d87903f733e6eaba8649ef_bc981a00-fdf2-4765-bf73-af62a655a926.webp?v=1714890129","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/504603033325c656bc60df1726d30bfb60be667c_351a010e-b42d-4cc5-bfed-300204dac6e2.webp?v=1714890131","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71e901cb2e58cb89dbbc7c4c74d5f644e617f378_932a1e60-236d-4056-bdb1-093083a0326a.webp?v=1714890134","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffb612e9e529514b01cbf57c202968eef194e506_ef84bd53-c884-4111-b9d5-ae0dc90bec79.webp?v=1714890136","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3f86c0bd9e050f9ba3c287ad8f0adda37f391b4_702f0767-2a48-4cb1-b5dd-76606b090118.webp?v=1714890138","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35aa537ba59e81a22a96dcfe51c97f803a28f8c2_c05ad71b-b213-4e9a-a95d-9217d4d0a16c.webp?v=1714890141"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7ff1b11487a50451352352ff6e3fe70f252009b_7ead22a4-da49-4873-85b7-7a82095108e8.webp?v=1714890119","options":["color"],"media":[{"alt":null,"id":23890473615459,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7ff1b11487a50451352352ff6e3fe70f252009b_7ead22a4-da49-4873-85b7-7a82095108e8.webp?v=1714890119"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7ff1b11487a50451352352ff6e3fe70f252009b_7ead22a4-da49-4873-85b7-7a82095108e8.webp?v=1714890119","width":2000},{"alt":null,"id":23890476433507,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8b4ee3d172ec90478d6a0e3f4e402f70f1a1c95_db84a742-9cb4-4f38-9b73-17c42ee40b1e.webp?v=1714890122"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8b4ee3d172ec90478d6a0e3f4e402f70f1a1c95_db84a742-9cb4-4f38-9b73-17c42ee40b1e.webp?v=1714890122","width":2000},{"alt":null,"id":23890479120483,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd4cf7b74a25809779a5f1036a26fe5e62cbeca6_e29b4064-e16a-4192-9639-bcf58207ff68.webp?v=1714890124"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd4cf7b74a25809779a5f1036a26fe5e62cbeca6_e29b4064-e16a-4192-9639-bcf58207ff68.webp?v=1714890124","width":2000},{"alt":null,"id":23890481217635,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9a89a5a5d32da5500b0d29c7d728c2c0851036c_96b5e76c-98b2-4d34-be8d-c9ee7943c2e4.webp?v=1714890126"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9a89a5a5d32da5500b0d29c7d728c2c0851036c_96b5e76c-98b2-4d34-be8d-c9ee7943c2e4.webp?v=1714890126","width":2000},{"alt":null,"id":23890483085411,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2f94c408c741df672d87903f733e6eaba8649ef_bc981a00-fdf2-4765-bf73-af62a655a926.webp?v=1714890129"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2f94c408c741df672d87903f733e6eaba8649ef_bc981a00-fdf2-4765-bf73-af62a655a926.webp?v=1714890129","width":2000},{"alt":null,"id":23890486526051,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/504603033325c656bc60df1726d30bfb60be667c_351a010e-b42d-4cc5-bfed-300204dac6e2.webp?v=1714890131"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/504603033325c656bc60df1726d30bfb60be667c_351a010e-b42d-4cc5-bfed-300204dac6e2.webp?v=1714890131","width":2000},{"alt":null,"id":23890489573475,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71e901cb2e58cb89dbbc7c4c74d5f644e617f378_932a1e60-236d-4056-bdb1-093083a0326a.webp?v=1714890134"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71e901cb2e58cb89dbbc7c4c74d5f644e617f378_932a1e60-236d-4056-bdb1-093083a0326a.webp?v=1714890134","width":2000},{"alt":null,"id":23890492817507,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffb612e9e529514b01cbf57c202968eef194e506_ef84bd53-c884-4111-b9d5-ae0dc90bec79.webp?v=1714890136"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffb612e9e529514b01cbf57c202968eef194e506_ef84bd53-c884-4111-b9d5-ae0dc90bec79.webp?v=1714890136","width":2000},{"alt":null,"id":23890496782435,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3f86c0bd9e050f9ba3c287ad8f0adda37f391b4_702f0767-2a48-4cb1-b5dd-76606b090118.webp?v=1714890138"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3f86c0bd9e050f9ba3c287ad8f0adda37f391b4_702f0767-2a48-4cb1-b5dd-76606b090118.webp?v=1714890138","width":2000},{"alt":null,"id":23890500321379,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35aa537ba59e81a22a96dcfe51c97f803a28f8c2_c05ad71b-b213-4e9a-a95d-9217d4d0a16c.webp?v=1714890141"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35aa537ba59e81a22a96dcfe51c97f803a28f8c2_c05ad71b-b213-4e9a-a95d-9217d4d0a16c.webp?v=1714890141","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41905712005219,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB83","requires_shipping":true,"taxable":true,"featured_image":{"id":31485165797475,"product_id":7414323773539,"position":4,"created_at":"2024-05-05T14:22:06+08:00","updated_at":"2024-05-05T14:22:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9a89a5a5d32da5500b0d29c7d728c2c0851036c_96b5e76c-98b2-4d34-be8d-c9ee7943c2e4.webp?v=1714890126","variant_ids":[41905712005219]},"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-PB83","featured_media":{"alt":null,"id":23890481217635,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9a89a5a5d32da5500b0d29c7d728c2c0851036c_96b5e76c-98b2-4d34-be8d-c9ee7943c2e4.webp?v=1714890126"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905712070755,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB83","requires_shipping":true,"taxable":true,"featured_image":{"id":31485158064227,"product_id":7414323773539,"position":1,"created_at":"2024-05-05T14:21:59+08:00","updated_at":"2024-05-05T14:21:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7ff1b11487a50451352352ff6e3fe70f252009b_7ead22a4-da49-4873-85b7-7a82095108e8.webp?v=1714890119","variant_ids":[41905712070755]},"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-PB83","featured_media":{"alt":null,"id":23890473615459,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7ff1b11487a50451352352ff6e3fe70f252009b_7ead22a4-da49-4873-85b7-7a82095108e8.webp?v=1714890119"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905712332899,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB83","requires_shipping":true,"taxable":true,"featured_image":{"id":31485170024547,"product_id":7414323773539,"position":6,"created_at":"2024-05-05T14:22:11+08:00","updated_at":"2024-05-05T14:22:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/504603033325c656bc60df1726d30bfb60be667c_351a010e-b42d-4cc5-bfed-300204dac6e2.webp?v=1714890131","variant_ids":[41905712332899]},"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-PB83","featured_media":{"alt":null,"id":23890486526051,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/504603033325c656bc60df1726d30bfb60be667c_351a010e-b42d-4cc5-bfed-300204dac6e2.webp?v=1714890131"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41905712005219,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB83","requires_shipping":true,"taxable":true,"featured_image":{"id":31485165797475,"product_id":7414323773539,"position":4,"created_at":"2024-05-05T14:22:06+08:00","updated_at":"2024-05-05T14:22:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9a89a5a5d32da5500b0d29c7d728c2c0851036c_96b5e76c-98b2-4d34-be8d-c9ee7943c2e4.webp?v=1714890126","variant_ids":[41905712005219]},"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-PB83","featured_media":{"alt":null,"id":23890481217635,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9a89a5a5d32da5500b0d29c7d728c2c0851036c_96b5e76c-98b2-4d34-be8d-c9ee7943c2e4.webp?v=1714890126"}},"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: "停產"
}