$product = {"id":7407646376035,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 尤達-塗鴉藝術","handle":"iphone-14-pro-mod-nx-printable-pb36","description":null,"published_at":"2024-06-11T16:21:29+08:00","created_at":"2024-05-03T10:36:54+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":41877139849315,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB36","requires_shipping":true,"taxable":true,"featured_image":{"id":31470146846819,"product_id":7407646376035,"position":10,"created_at":"2024-05-03T10:37:19+08:00","updated_at":"2024-05-03T10:37:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb3a0fb1ce7d58c9d67e0efe8526d8e66885561e_05604079-ee4c-4646-81ac-1acb477dca20.webp?v=1714703839","variant_ids":[41877139849315]},"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-PB36","featured_media":{"alt":null,"id":23875049750627,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb3a0fb1ce7d58c9d67e0efe8526d8e66885561e_05604079-ee4c-4646-81ac-1acb477dca20.webp?v=1714703839"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41877140144227,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB36","requires_shipping":true,"taxable":true,"featured_image":{"id":31470144258147,"product_id":7407646376035,"position":6,"created_at":"2024-05-03T10:37:09+08:00","updated_at":"2024-05-03T10:37:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90555f8f4d4c64ca8387a806e72316d42f809b3e_6fb17247-9220-4a95-9009-7362af1ead04.webp?v=1714703829","variant_ids":[41877140144227]},"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-PB36","featured_media":{"alt":null,"id":23875047161955,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90555f8f4d4c64ca8387a806e72316d42f809b3e_6fb17247-9220-4a95-9009-7362af1ead04.webp?v=1714703829"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41877140865123,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB36","requires_shipping":true,"taxable":true,"featured_image":{"id":31470142783587,"product_id":7407646376035,"position":2,"created_at":"2024-05-03T10:36:59+08:00","updated_at":"2024-05-03T10:36:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c439d812539749632a5f2725d8a9bee9ad6c1f9_87088452-fb8d-42b1-b738-642d3d938e0e.webp?v=1714703819","variant_ids":[41877140865123]},"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-PB36","featured_media":{"alt":null,"id":23875045654627,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c439d812539749632a5f2725d8a9bee9ad6c1f9_87088452-fb8d-42b1-b738-642d3d938e0e.webp?v=1714703819"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1641d25f02a5e8a9241ca43f82233bfeca6b0b4_5a7f8a9d-24c7-4a3a-ad81-a91fa054cd15.webp?v=1714703817","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c439d812539749632a5f2725d8a9bee9ad6c1f9_87088452-fb8d-42b1-b738-642d3d938e0e.webp?v=1714703819","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3fb8ed6a851ce0bb0c97ca1855f9237a7069064_46b31632-e999-4f4d-b5e4-c25ff16d0952.webp?v=1714703821","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79cb87739cfcb35a64b0acb3ba98c748d39ef6fe_f7d5f048-8318-479f-ad5a-ae4623fb052c.webp?v=1714703824","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa81a43489debc70c8430f7d9ba511631e357fea_90fd4c30-6c3f-4133-b6d3-e6d7fcab4b84.webp?v=1714703826","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90555f8f4d4c64ca8387a806e72316d42f809b3e_6fb17247-9220-4a95-9009-7362af1ead04.webp?v=1714703829","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a24cc3cd1a61776322cae968f3a03f6d42fb5b3a_bc631372-af68-4db3-8a45-2a04501afa5a.webp?v=1714703831","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f42e156f09ff8d47a3af9d4077fe23f59d1e8d0d_41f9e6ba-0586-47d2-9318-ede07d4ea9ed.webp?v=1714703834","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/525cb9cd2d9be75db3b141a84170c8a63131630e_f5fa305b-fc0c-4ee4-965a-9cebd9730cac.webp?v=1714703837","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb3a0fb1ce7d58c9d67e0efe8526d8e66885561e_05604079-ee4c-4646-81ac-1acb477dca20.webp?v=1714703839"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1641d25f02a5e8a9241ca43f82233bfeca6b0b4_5a7f8a9d-24c7-4a3a-ad81-a91fa054cd15.webp?v=1714703817","options":["color"],"media":[{"alt":null,"id":23875045392483,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1641d25f02a5e8a9241ca43f82233bfeca6b0b4_5a7f8a9d-24c7-4a3a-ad81-a91fa054cd15.webp?v=1714703817"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1641d25f02a5e8a9241ca43f82233bfeca6b0b4_5a7f8a9d-24c7-4a3a-ad81-a91fa054cd15.webp?v=1714703817","width":2000},{"alt":null,"id":23875045654627,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c439d812539749632a5f2725d8a9bee9ad6c1f9_87088452-fb8d-42b1-b738-642d3d938e0e.webp?v=1714703819"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c439d812539749632a5f2725d8a9bee9ad6c1f9_87088452-fb8d-42b1-b738-642d3d938e0e.webp?v=1714703819","width":2000},{"alt":null,"id":23875046113379,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3fb8ed6a851ce0bb0c97ca1855f9237a7069064_46b31632-e999-4f4d-b5e4-c25ff16d0952.webp?v=1714703821"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3fb8ed6a851ce0bb0c97ca1855f9237a7069064_46b31632-e999-4f4d-b5e4-c25ff16d0952.webp?v=1714703821","width":2000},{"alt":null,"id":23875046539363,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79cb87739cfcb35a64b0acb3ba98c748d39ef6fe_f7d5f048-8318-479f-ad5a-ae4623fb052c.webp?v=1714703824"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79cb87739cfcb35a64b0acb3ba98c748d39ef6fe_f7d5f048-8318-479f-ad5a-ae4623fb052c.webp?v=1714703824","width":2000},{"alt":null,"id":23875046801507,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa81a43489debc70c8430f7d9ba511631e357fea_90fd4c30-6c3f-4133-b6d3-e6d7fcab4b84.webp?v=1714703826"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa81a43489debc70c8430f7d9ba511631e357fea_90fd4c30-6c3f-4133-b6d3-e6d7fcab4b84.webp?v=1714703826","width":2000},{"alt":null,"id":23875047161955,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90555f8f4d4c64ca8387a806e72316d42f809b3e_6fb17247-9220-4a95-9009-7362af1ead04.webp?v=1714703829"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90555f8f4d4c64ca8387a806e72316d42f809b3e_6fb17247-9220-4a95-9009-7362af1ead04.webp?v=1714703829","width":2000},{"alt":null,"id":23875047620707,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a24cc3cd1a61776322cae968f3a03f6d42fb5b3a_bc631372-af68-4db3-8a45-2a04501afa5a.webp?v=1714703831"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a24cc3cd1a61776322cae968f3a03f6d42fb5b3a_bc631372-af68-4db3-8a45-2a04501afa5a.webp?v=1714703831","width":2000},{"alt":null,"id":23875048669283,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f42e156f09ff8d47a3af9d4077fe23f59d1e8d0d_41f9e6ba-0586-47d2-9318-ede07d4ea9ed.webp?v=1714703834"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f42e156f09ff8d47a3af9d4077fe23f59d1e8d0d_41f9e6ba-0586-47d2-9318-ede07d4ea9ed.webp?v=1714703834","width":2000},{"alt":null,"id":23875049128035,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/525cb9cd2d9be75db3b141a84170c8a63131630e_f5fa305b-fc0c-4ee4-965a-9cebd9730cac.webp?v=1714703837"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/525cb9cd2d9be75db3b141a84170c8a63131630e_f5fa305b-fc0c-4ee4-965a-9cebd9730cac.webp?v=1714703837","width":2000},{"alt":null,"id":23875049750627,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb3a0fb1ce7d58c9d67e0efe8526d8e66885561e_05604079-ee4c-4646-81ac-1acb477dca20.webp?v=1714703839"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb3a0fb1ce7d58c9d67e0efe8526d8e66885561e_05604079-ee4c-4646-81ac-1acb477dca20.webp?v=1714703839","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41877139849315,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB36","requires_shipping":true,"taxable":true,"featured_image":{"id":31470146846819,"product_id":7407646376035,"position":10,"created_at":"2024-05-03T10:37:19+08:00","updated_at":"2024-05-03T10:37:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb3a0fb1ce7d58c9d67e0efe8526d8e66885561e_05604079-ee4c-4646-81ac-1acb477dca20.webp?v=1714703839","variant_ids":[41877139849315]},"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-PB36","featured_media":{"alt":null,"id":23875049750627,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb3a0fb1ce7d58c9d67e0efe8526d8e66885561e_05604079-ee4c-4646-81ac-1acb477dca20.webp?v=1714703839"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41877140144227,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB36","requires_shipping":true,"taxable":true,"featured_image":{"id":31470144258147,"product_id":7407646376035,"position":6,"created_at":"2024-05-03T10:37:09+08:00","updated_at":"2024-05-03T10:37:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90555f8f4d4c64ca8387a806e72316d42f809b3e_6fb17247-9220-4a95-9009-7362af1ead04.webp?v=1714703829","variant_ids":[41877140144227]},"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-PB36","featured_media":{"alt":null,"id":23875047161955,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90555f8f4d4c64ca8387a806e72316d42f809b3e_6fb17247-9220-4a95-9009-7362af1ead04.webp?v=1714703829"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41877140865123,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB36","requires_shipping":true,"taxable":true,"featured_image":{"id":31470142783587,"product_id":7407646376035,"position":2,"created_at":"2024-05-03T10:36:59+08:00","updated_at":"2024-05-03T10:36:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c439d812539749632a5f2725d8a9bee9ad6c1f9_87088452-fb8d-42b1-b738-642d3d938e0e.webp?v=1714703819","variant_ids":[41877140865123]},"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-PB36","featured_media":{"alt":null,"id":23875045654627,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c439d812539749632a5f2725d8a9bee9ad6c1f9_87088452-fb8d-42b1-b738-642d3d938e0e.webp?v=1714703819"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41877139849315,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB36","requires_shipping":true,"taxable":true,"featured_image":{"id":31470146846819,"product_id":7407646376035,"position":10,"created_at":"2024-05-03T10:37:19+08:00","updated_at":"2024-05-03T10:37:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb3a0fb1ce7d58c9d67e0efe8526d8e66885561e_05604079-ee4c-4646-81ac-1acb477dca20.webp?v=1714703839","variant_ids":[41877139849315]},"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-PB36","featured_media":{"alt":null,"id":23875049750627,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb3a0fb1ce7d58c9d67e0efe8526d8e66885561e_05604079-ee4c-4646-81ac-1acb477dca20.webp?v=1714703839"}},"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: "停產"
}