$product = {"id":7407891710051,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 小圖款-丘巴卡","handle":"iphone-14-pro-mod-nx-printable-pc07","description":null,"published_at":"2024-06-11T16:25:45+08:00","created_at":"2024-05-03T11:10:28+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 14 Pro","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":41880157421667,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PC07","requires_shipping":true,"taxable":true,"featured_image":{"id":31470631420003,"product_id":7407891710051,"position":2,"created_at":"2024-05-03T11:10:33+08:00","updated_at":"2024-05-03T11:10:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e61312e9e76bc68c385e345f2e141d8f3242a3a4_5ad4f8fc-00c8-4ec6-bb24-7298e92c380d.webp?v=1714705833","variant_ids":[41880157421667]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0126224-PC07","featured_media":{"alt":null,"id":23875535339619,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e61312e9e76bc68c385e345f2e141d8f3242a3a4_5ad4f8fc-00c8-4ec6-bb24-7298e92c380d.webp?v=1714705833"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880157618275,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PC07","requires_shipping":true,"taxable":true,"featured_image":{"id":31470633189475,"product_id":7407891710051,"position":6,"created_at":"2024-05-03T11:10:42+08:00","updated_at":"2024-05-03T11:10:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c456851dc0c10e06f1441bb0adea4d321bd4e381_69d95dce-aada-40da-942e-ecd991196469.webp?v=1714705842","variant_ids":[41880157618275]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0126204-PC07","featured_media":{"alt":null,"id":23875537174627,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c456851dc0c10e06f1441bb0adea4d321bd4e381_69d95dce-aada-40da-942e-ecd991196469.webp?v=1714705842"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880158142563,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PC07","requires_shipping":true,"taxable":true,"featured_image":{"id":31470631780451,"product_id":7407891710051,"position":3,"created_at":"2024-05-03T11:10:36+08:00","updated_at":"2024-05-03T11:10:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90b25b0860cf30036ad022a1f05303ffa90ad3e6_e4c1860a-7fe9-4a23-911a-57674e92347d.webp?v=1714705836","variant_ids":[41880158142563]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB01262J5-PC07","featured_media":{"alt":null,"id":23875535700067,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90b25b0860cf30036ad022a1f05303ffa90ad3e6_e4c1860a-7fe9-4a23-911a-57674e92347d.webp?v=1714705836"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee371e9fcbb91718ae0302fb50680383a9791021_6d0b6f44-ec80-400a-a252-89101dc09e65.webp?v=1714705831","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e61312e9e76bc68c385e345f2e141d8f3242a3a4_5ad4f8fc-00c8-4ec6-bb24-7298e92c380d.webp?v=1714705833","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90b25b0860cf30036ad022a1f05303ffa90ad3e6_e4c1860a-7fe9-4a23-911a-57674e92347d.webp?v=1714705836","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec75398ffc09ec92bf6f1e808e3bbce9fdb6c61f_2e23b2a5-0755-46b9-8c9d-ccf75fe2535b.webp?v=1714705838","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4df5ada2b3f0aed5a94ce7ccf6f35c78024306ef_0a4bbffa-1e05-4986-bf3d-6f43b60f9202.webp?v=1714705840","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c456851dc0c10e06f1441bb0adea4d321bd4e381_69d95dce-aada-40da-942e-ecd991196469.webp?v=1714705842","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37e99a794b34b1ba7367f85313cc2d6d0c54ff97_a76253a2-e12c-4a83-af77-168824928272.webp?v=1714705845","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfe64bf0f8ba3c4c69dc699d9bef25317e69f559_fe0e9466-e3a8-4a4c-8326-f4488386b659.webp?v=1714705847","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4682cfe2cef578ff0b6ae7c6030f6b5f6ab290fa_e1af344c-2a96-44ce-ad75-8979fe3509f8.webp?v=1714705849","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/173089183328c6c346f498ab2eba68d1208f19e1_24908c0c-e1d2-41a3-aa79-c4dfd21721cf.webp?v=1714705852"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee371e9fcbb91718ae0302fb50680383a9791021_6d0b6f44-ec80-400a-a252-89101dc09e65.webp?v=1714705831","options":["color"],"media":[{"alt":null,"id":23875534913635,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee371e9fcbb91718ae0302fb50680383a9791021_6d0b6f44-ec80-400a-a252-89101dc09e65.webp?v=1714705831"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee371e9fcbb91718ae0302fb50680383a9791021_6d0b6f44-ec80-400a-a252-89101dc09e65.webp?v=1714705831","width":2000},{"alt":null,"id":23875535339619,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e61312e9e76bc68c385e345f2e141d8f3242a3a4_5ad4f8fc-00c8-4ec6-bb24-7298e92c380d.webp?v=1714705833"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e61312e9e76bc68c385e345f2e141d8f3242a3a4_5ad4f8fc-00c8-4ec6-bb24-7298e92c380d.webp?v=1714705833","width":2000},{"alt":null,"id":23875535700067,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90b25b0860cf30036ad022a1f05303ffa90ad3e6_e4c1860a-7fe9-4a23-911a-57674e92347d.webp?v=1714705836"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90b25b0860cf30036ad022a1f05303ffa90ad3e6_e4c1860a-7fe9-4a23-911a-57674e92347d.webp?v=1714705836","width":2000},{"alt":null,"id":23875536191587,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec75398ffc09ec92bf6f1e808e3bbce9fdb6c61f_2e23b2a5-0755-46b9-8c9d-ccf75fe2535b.webp?v=1714705838"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec75398ffc09ec92bf6f1e808e3bbce9fdb6c61f_2e23b2a5-0755-46b9-8c9d-ccf75fe2535b.webp?v=1714705838","width":2000},{"alt":null,"id":23875536617571,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4df5ada2b3f0aed5a94ce7ccf6f35c78024306ef_0a4bbffa-1e05-4986-bf3d-6f43b60f9202.webp?v=1714705840"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4df5ada2b3f0aed5a94ce7ccf6f35c78024306ef_0a4bbffa-1e05-4986-bf3d-6f43b60f9202.webp?v=1714705840","width":2000},{"alt":null,"id":23875537174627,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c456851dc0c10e06f1441bb0adea4d321bd4e381_69d95dce-aada-40da-942e-ecd991196469.webp?v=1714705842"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c456851dc0c10e06f1441bb0adea4d321bd4e381_69d95dce-aada-40da-942e-ecd991196469.webp?v=1714705842","width":2000},{"alt":null,"id":23875537698915,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37e99a794b34b1ba7367f85313cc2d6d0c54ff97_a76253a2-e12c-4a83-af77-168824928272.webp?v=1714705845"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37e99a794b34b1ba7367f85313cc2d6d0c54ff97_a76253a2-e12c-4a83-af77-168824928272.webp?v=1714705845","width":2000},{"alt":null,"id":23875538157667,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfe64bf0f8ba3c4c69dc699d9bef25317e69f559_fe0e9466-e3a8-4a4c-8326-f4488386b659.webp?v=1714705847"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfe64bf0f8ba3c4c69dc699d9bef25317e69f559_fe0e9466-e3a8-4a4c-8326-f4488386b659.webp?v=1714705847","width":2000},{"alt":null,"id":23875538616419,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4682cfe2cef578ff0b6ae7c6030f6b5f6ab290fa_e1af344c-2a96-44ce-ad75-8979fe3509f8.webp?v=1714705849"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4682cfe2cef578ff0b6ae7c6030f6b5f6ab290fa_e1af344c-2a96-44ce-ad75-8979fe3509f8.webp?v=1714705849","width":2000},{"alt":null,"id":23875539009635,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/173089183328c6c346f498ab2eba68d1208f19e1_24908c0c-e1d2-41a3-aa79-c4dfd21721cf.webp?v=1714705852"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/173089183328c6c346f498ab2eba68d1208f19e1_24908c0c-e1d2-41a3-aa79-c4dfd21721cf.webp?v=1714705852","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41880157421667,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PC07","requires_shipping":true,"taxable":true,"featured_image":{"id":31470631420003,"product_id":7407891710051,"position":2,"created_at":"2024-05-03T11:10:33+08:00","updated_at":"2024-05-03T11:10:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e61312e9e76bc68c385e345f2e141d8f3242a3a4_5ad4f8fc-00c8-4ec6-bb24-7298e92c380d.webp?v=1714705833","variant_ids":[41880157421667]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0126224-PC07","featured_media":{"alt":null,"id":23875535339619,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e61312e9e76bc68c385e345f2e141d8f3242a3a4_5ad4f8fc-00c8-4ec6-bb24-7298e92c380d.webp?v=1714705833"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880157618275,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PC07","requires_shipping":true,"taxable":true,"featured_image":{"id":31470633189475,"product_id":7407891710051,"position":6,"created_at":"2024-05-03T11:10:42+08:00","updated_at":"2024-05-03T11:10:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c456851dc0c10e06f1441bb0adea4d321bd4e381_69d95dce-aada-40da-942e-ecd991196469.webp?v=1714705842","variant_ids":[41880157618275]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0126204-PC07","featured_media":{"alt":null,"id":23875537174627,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c456851dc0c10e06f1441bb0adea4d321bd4e381_69d95dce-aada-40da-942e-ecd991196469.webp?v=1714705842"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880158142563,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PC07","requires_shipping":true,"taxable":true,"featured_image":{"id":31470631780451,"product_id":7407891710051,"position":3,"created_at":"2024-05-03T11:10:36+08:00","updated_at":"2024-05-03T11:10:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90b25b0860cf30036ad022a1f05303ffa90ad3e6_e4c1860a-7fe9-4a23-911a-57674e92347d.webp?v=1714705836","variant_ids":[41880158142563]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB01262J5-PC07","featured_media":{"alt":null,"id":23875535700067,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90b25b0860cf30036ad022a1f05303ffa90ad3e6_e4c1860a-7fe9-4a23-911a-57674e92347d.webp?v=1714705836"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41880157421667,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PC07","requires_shipping":true,"taxable":true,"featured_image":{"id":31470631420003,"product_id":7407891710051,"position":2,"created_at":"2024-05-03T11:10:33+08:00","updated_at":"2024-05-03T11:10:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e61312e9e76bc68c385e345f2e141d8f3242a3a4_5ad4f8fc-00c8-4ec6-bb24-7298e92c380d.webp?v=1714705833","variant_ids":[41880157421667]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0126224-PC07","featured_media":{"alt":null,"id":23875535339619,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e61312e9e76bc68c385e345f2e141d8f3242a3a4_5ad4f8fc-00c8-4ec6-bb24-7298e92c380d.webp?v=1714705833"}},"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: "停產"
}