$product = {"id":7411315736675,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - POP全載具2-白","handle":"iphone-14-pro-mod-nx-magsafe-printable-pb12","description":null,"published_at":"2024-06-11T17:41:37+08:00","created_at":"2024-05-05T00:06:04+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":41897347809379,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB12","requires_shipping":true,"taxable":true,"featured_image":{"id":31480125128803,"product_id":7411315736675,"position":10,"created_at":"2024-05-05T00:06:29+08:00","updated_at":"2024-05-05T00:06:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4689f0b7f1a6f6059c6058831e0ed936abfe00c3_979a802d-5dba-47de-85a0-67cd12cf75e2.webp?v=1714838789","variant_ids":[41897347809379]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - POP全載具2-白 - 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-PB12","featured_media":{"alt":null,"id":23885376061539,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4689f0b7f1a6f6059c6058831e0ed936abfe00c3_979a802d-5dba-47de-85a0-67cd12cf75e2.webp?v=1714838789"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897347907683,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB12","requires_shipping":true,"taxable":true,"featured_image":{"id":31480121294947,"product_id":7411315736675,"position":3,"created_at":"2024-05-05T00:06:12+08:00","updated_at":"2024-05-05T00:06:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/104f7f177c826089f1a9bd8ec39e0243e6a6379f_b645491e-617d-479f-97b4-0c8c9bf9a4b8.webp?v=1714838772","variant_ids":[41897347907683]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - POP全載具2-白 - 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-PB12","featured_media":{"alt":null,"id":23885372555363,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/104f7f177c826089f1a9bd8ec39e0243e6a6379f_b645491e-617d-479f-97b4-0c8c9bf9a4b8.webp?v=1714838772"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897348137059,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB12","requires_shipping":true,"taxable":true,"featured_image":{"id":31480120836195,"product_id":7411315736675,"position":2,"created_at":"2024-05-05T00:06:09+08:00","updated_at":"2024-05-05T00:06:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3035e0ceee31f55ab481bcc5e4d969cd00e54db_c6e1d5b7-af18-49d5-801c-0530186999dc.webp?v=1714838769","variant_ids":[41897348137059]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - POP全載具2-白 - 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-PB12","featured_media":{"alt":null,"id":23885371703395,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3035e0ceee31f55ab481bcc5e4d969cd00e54db_c6e1d5b7-af18-49d5-801c-0530186999dc.webp?v=1714838769"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/407ae86ad62269eca5f7c5c7a08be081a9048465_f84a28ba-b739-43ae-9cb9-90dc16485224.webp?v=1714838767","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3035e0ceee31f55ab481bcc5e4d969cd00e54db_c6e1d5b7-af18-49d5-801c-0530186999dc.webp?v=1714838769","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/104f7f177c826089f1a9bd8ec39e0243e6a6379f_b645491e-617d-479f-97b4-0c8c9bf9a4b8.webp?v=1714838772","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/081c34adc419030467b16bb12eb9953901b9cac5_fdc8d4bf-c3a1-438c-8093-416a36599dc1.webp?v=1714838774","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd315bc6ef2a2b27a2bbbddca2203c0bed072fab_9ec67e5d-d220-49ab-b8b3-83a05f2c4c94.webp?v=1714838776","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c481253504756e7db72774f1bc60929f42aa1bf3_68dc1f18-3901-4566-8c2a-5960d58c3a1e.webp?v=1714838779","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/700e4467e01b23a1fb7480a0db4f2fcf17b0c2ae_d17c1a78-105a-4920-8f5f-114a150e5feb.webp?v=1714838781","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd69667956c1563dca2a88be21ca10e479e77213_9ee12cc9-a338-4244-80f5-3ba6e3f671d6.webp?v=1714838784","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49446f63ab1bc7c1d4cc3299089bccc4c7cede65_b5945629-56dd-489f-9535-c4cb1407ebfc.webp?v=1714838786","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4689f0b7f1a6f6059c6058831e0ed936abfe00c3_979a802d-5dba-47de-85a0-67cd12cf75e2.webp?v=1714838789"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/407ae86ad62269eca5f7c5c7a08be081a9048465_f84a28ba-b739-43ae-9cb9-90dc16485224.webp?v=1714838767","options":["color"],"media":[{"alt":null,"id":23885371080803,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/407ae86ad62269eca5f7c5c7a08be081a9048465_f84a28ba-b739-43ae-9cb9-90dc16485224.webp?v=1714838767"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/407ae86ad62269eca5f7c5c7a08be081a9048465_f84a28ba-b739-43ae-9cb9-90dc16485224.webp?v=1714838767","width":2000},{"alt":null,"id":23885371703395,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3035e0ceee31f55ab481bcc5e4d969cd00e54db_c6e1d5b7-af18-49d5-801c-0530186999dc.webp?v=1714838769"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3035e0ceee31f55ab481bcc5e4d969cd00e54db_c6e1d5b7-af18-49d5-801c-0530186999dc.webp?v=1714838769","width":2000},{"alt":null,"id":23885372555363,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/104f7f177c826089f1a9bd8ec39e0243e6a6379f_b645491e-617d-479f-97b4-0c8c9bf9a4b8.webp?v=1714838772"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/104f7f177c826089f1a9bd8ec39e0243e6a6379f_b645491e-617d-479f-97b4-0c8c9bf9a4b8.webp?v=1714838772","width":2000},{"alt":null,"id":23885373079651,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/081c34adc419030467b16bb12eb9953901b9cac5_fdc8d4bf-c3a1-438c-8093-416a36599dc1.webp?v=1714838774"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/081c34adc419030467b16bb12eb9953901b9cac5_fdc8d4bf-c3a1-438c-8093-416a36599dc1.webp?v=1714838774","width":2000},{"alt":null,"id":23885373538403,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd315bc6ef2a2b27a2bbbddca2203c0bed072fab_9ec67e5d-d220-49ab-b8b3-83a05f2c4c94.webp?v=1714838776"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd315bc6ef2a2b27a2bbbddca2203c0bed072fab_9ec67e5d-d220-49ab-b8b3-83a05f2c4c94.webp?v=1714838776","width":2000},{"alt":null,"id":23885374029923,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c481253504756e7db72774f1bc60929f42aa1bf3_68dc1f18-3901-4566-8c2a-5960d58c3a1e.webp?v=1714838779"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c481253504756e7db72774f1bc60929f42aa1bf3_68dc1f18-3901-4566-8c2a-5960d58c3a1e.webp?v=1714838779","width":2000},{"alt":null,"id":23885374488675,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/700e4467e01b23a1fb7480a0db4f2fcf17b0c2ae_d17c1a78-105a-4920-8f5f-114a150e5feb.webp?v=1714838781"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/700e4467e01b23a1fb7480a0db4f2fcf17b0c2ae_d17c1a78-105a-4920-8f5f-114a150e5feb.webp?v=1714838781","width":2000},{"alt":null,"id":23885375012963,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd69667956c1563dca2a88be21ca10e479e77213_9ee12cc9-a338-4244-80f5-3ba6e3f671d6.webp?v=1714838784"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd69667956c1563dca2a88be21ca10e479e77213_9ee12cc9-a338-4244-80f5-3ba6e3f671d6.webp?v=1714838784","width":2000},{"alt":null,"id":23885375406179,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49446f63ab1bc7c1d4cc3299089bccc4c7cede65_b5945629-56dd-489f-9535-c4cb1407ebfc.webp?v=1714838786"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49446f63ab1bc7c1d4cc3299089bccc4c7cede65_b5945629-56dd-489f-9535-c4cb1407ebfc.webp?v=1714838786","width":2000},{"alt":null,"id":23885376061539,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4689f0b7f1a6f6059c6058831e0ed936abfe00c3_979a802d-5dba-47de-85a0-67cd12cf75e2.webp?v=1714838789"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4689f0b7f1a6f6059c6058831e0ed936abfe00c3_979a802d-5dba-47de-85a0-67cd12cf75e2.webp?v=1714838789","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41897347809379,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB12","requires_shipping":true,"taxable":true,"featured_image":{"id":31480125128803,"product_id":7411315736675,"position":10,"created_at":"2024-05-05T00:06:29+08:00","updated_at":"2024-05-05T00:06:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4689f0b7f1a6f6059c6058831e0ed936abfe00c3_979a802d-5dba-47de-85a0-67cd12cf75e2.webp?v=1714838789","variant_ids":[41897347809379]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - POP全載具2-白 - 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-PB12","featured_media":{"alt":null,"id":23885376061539,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4689f0b7f1a6f6059c6058831e0ed936abfe00c3_979a802d-5dba-47de-85a0-67cd12cf75e2.webp?v=1714838789"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897347907683,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB12","requires_shipping":true,"taxable":true,"featured_image":{"id":31480121294947,"product_id":7411315736675,"position":3,"created_at":"2024-05-05T00:06:12+08:00","updated_at":"2024-05-05T00:06:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/104f7f177c826089f1a9bd8ec39e0243e6a6379f_b645491e-617d-479f-97b4-0c8c9bf9a4b8.webp?v=1714838772","variant_ids":[41897347907683]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - POP全載具2-白 - 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-PB12","featured_media":{"alt":null,"id":23885372555363,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/104f7f177c826089f1a9bd8ec39e0243e6a6379f_b645491e-617d-479f-97b4-0c8c9bf9a4b8.webp?v=1714838772"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897348137059,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB12","requires_shipping":true,"taxable":true,"featured_image":{"id":31480120836195,"product_id":7411315736675,"position":2,"created_at":"2024-05-05T00:06:09+08:00","updated_at":"2024-05-05T00:06:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3035e0ceee31f55ab481bcc5e4d969cd00e54db_c6e1d5b7-af18-49d5-801c-0530186999dc.webp?v=1714838769","variant_ids":[41897348137059]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - POP全載具2-白 - 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-PB12","featured_media":{"alt":null,"id":23885371703395,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3035e0ceee31f55ab481bcc5e4d969cd00e54db_c6e1d5b7-af18-49d5-801c-0530186999dc.webp?v=1714838769"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41897347809379,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB12","requires_shipping":true,"taxable":true,"featured_image":{"id":31480125128803,"product_id":7411315736675,"position":10,"created_at":"2024-05-05T00:06:29+08:00","updated_at":"2024-05-05T00:06:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4689f0b7f1a6f6059c6058831e0ed936abfe00c3_979a802d-5dba-47de-85a0-67cd12cf75e2.webp?v=1714838789","variant_ids":[41897347809379]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - POP全載具2-白 - 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-PB12","featured_media":{"alt":null,"id":23885376061539,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4689f0b7f1a6f6059c6058831e0ed936abfe00c3_979a802d-5dba-47de-85a0-67cd12cf75e2.webp?v=1714838789"}},"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: "停產"
}