$product = {"id":7407854485603,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 星際大戰四部曲:曙光乍現-電影海報","handle":"iphone-14-pro-mod-nx-printable-pb101","description":null,"published_at":"2024-06-11T16:24:42+08:00","created_at":"2024-05-03T11:03:03+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":41879669506147,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB101","requires_shipping":true,"taxable":true,"featured_image":{"id":31470540849251,"product_id":7407854485603,"position":9,"created_at":"2024-05-03T11:03:25+08:00","updated_at":"2024-05-03T11:03:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffcbe4d915f72e307691325cc6594d22eb646903_6619e211-4333-4053-906e-eb0c18ad2e69.webp?v=1714705405","variant_ids":[41879669506147]},"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-PB101","featured_media":{"alt":null,"id":23875444703331,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffcbe4d915f72e307691325cc6594d22eb646903_6619e211-4333-4053-906e-eb0c18ad2e69.webp?v=1714705405"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41879669571683,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB101","requires_shipping":true,"taxable":true,"featured_image":{"id":31470536360035,"product_id":7407854485603,"position":3,"created_at":"2024-05-03T11:03:10+08:00","updated_at":"2024-05-03T11:03:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70cb6676379fb037d58ba056d2f3ffd5420ada10_12c7ea6d-e8b2-48be-9735-f98ce7870ace.webp?v=1714705390","variant_ids":[41879669571683]},"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-PB101","featured_media":{"alt":null,"id":23875440181347,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70cb6676379fb037d58ba056d2f3ffd5420ada10_12c7ea6d-e8b2-48be-9735-f98ce7870ace.webp?v=1714705390"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41879669801059,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB101","requires_shipping":true,"taxable":true,"featured_image":{"id":31470541308003,"product_id":7407854485603,"position":10,"created_at":"2024-05-03T11:03:28+08:00","updated_at":"2024-05-03T11:03:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec60042b0f49b430621c2c19aa8530bf0d18724e_20038a02-1ee0-4bd4-8833-2564c8285eb4.webp?v=1714705408","variant_ids":[41879669801059]},"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-PB101","featured_media":{"alt":null,"id":23875445162083,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec60042b0f49b430621c2c19aa8530bf0d18724e_20038a02-1ee0-4bd4-8833-2564c8285eb4.webp?v=1714705408"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/975096a9c15b24da3e712d0160376987c918645b_b31e0d13-9e33-496b-8eec-6ebace763cc3.webp?v=1714705385","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1d62ce562560291d2f66c44ad43847d44230d95_f2a041d4-6057-41c9-8336-34ab59f8cf2c.webp?v=1714705388","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70cb6676379fb037d58ba056d2f3ffd5420ada10_12c7ea6d-e8b2-48be-9735-f98ce7870ace.webp?v=1714705390","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7f249913c46984e5989b44feb17f742e676a9a0_4d1d056c-2bb7-49b6-9ff1-5eab464f704e.webp?v=1714705393","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c266015ed26368f5b53161917fb97c1bb9bfaae_1cbb1570-b39d-424e-b1ba-2e3354f0c3ad.webp?v=1714705395","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/380827242ed1c6072a7d9bec594e1ddb0da4b98b_6df9b7a4-0b76-45ed-9095-33b1b414df4b.webp?v=1714705398","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09d16d0d5ca2bc7c41601d5ba3a715ad83b3e3c8_ec28377d-e87a-42d1-a7fc-8347bdf582a8.webp?v=1714705400","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74c462e9b29548ec1e89de1e2659cd72be796147_694bc492-30e7-4930-896e-8a913cd706c1.webp?v=1714705403","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffcbe4d915f72e307691325cc6594d22eb646903_6619e211-4333-4053-906e-eb0c18ad2e69.webp?v=1714705405","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec60042b0f49b430621c2c19aa8530bf0d18724e_20038a02-1ee0-4bd4-8833-2564c8285eb4.webp?v=1714705408"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/975096a9c15b24da3e712d0160376987c918645b_b31e0d13-9e33-496b-8eec-6ebace763cc3.webp?v=1714705385","options":["color"],"media":[{"alt":null,"id":23875438805091,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/975096a9c15b24da3e712d0160376987c918645b_b31e0d13-9e33-496b-8eec-6ebace763cc3.webp?v=1714705385"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/975096a9c15b24da3e712d0160376987c918645b_b31e0d13-9e33-496b-8eec-6ebace763cc3.webp?v=1714705385","width":2000},{"alt":null,"id":23875439493219,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1d62ce562560291d2f66c44ad43847d44230d95_f2a041d4-6057-41c9-8336-34ab59f8cf2c.webp?v=1714705388"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1d62ce562560291d2f66c44ad43847d44230d95_f2a041d4-6057-41c9-8336-34ab59f8cf2c.webp?v=1714705388","width":2000},{"alt":null,"id":23875440181347,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70cb6676379fb037d58ba056d2f3ffd5420ada10_12c7ea6d-e8b2-48be-9735-f98ce7870ace.webp?v=1714705390"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70cb6676379fb037d58ba056d2f3ffd5420ada10_12c7ea6d-e8b2-48be-9735-f98ce7870ace.webp?v=1714705390","width":2000},{"alt":null,"id":23875440771171,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7f249913c46984e5989b44feb17f742e676a9a0_4d1d056c-2bb7-49b6-9ff1-5eab464f704e.webp?v=1714705393"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7f249913c46984e5989b44feb17f742e676a9a0_4d1d056c-2bb7-49b6-9ff1-5eab464f704e.webp?v=1714705393","width":2000},{"alt":null,"id":23875441426531,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c266015ed26368f5b53161917fb97c1bb9bfaae_1cbb1570-b39d-424e-b1ba-2e3354f0c3ad.webp?v=1714705395"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c266015ed26368f5b53161917fb97c1bb9bfaae_1cbb1570-b39d-424e-b1ba-2e3354f0c3ad.webp?v=1714705395","width":2000},{"alt":null,"id":23875442212963,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/380827242ed1c6072a7d9bec594e1ddb0da4b98b_6df9b7a4-0b76-45ed-9095-33b1b414df4b.webp?v=1714705398"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/380827242ed1c6072a7d9bec594e1ddb0da4b98b_6df9b7a4-0b76-45ed-9095-33b1b414df4b.webp?v=1714705398","width":2000},{"alt":null,"id":23875443458147,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09d16d0d5ca2bc7c41601d5ba3a715ad83b3e3c8_ec28377d-e87a-42d1-a7fc-8347bdf582a8.webp?v=1714705400"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09d16d0d5ca2bc7c41601d5ba3a715ad83b3e3c8_ec28377d-e87a-42d1-a7fc-8347bdf582a8.webp?v=1714705400","width":2000},{"alt":null,"id":23875443884131,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74c462e9b29548ec1e89de1e2659cd72be796147_694bc492-30e7-4930-896e-8a913cd706c1.webp?v=1714705403"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74c462e9b29548ec1e89de1e2659cd72be796147_694bc492-30e7-4930-896e-8a913cd706c1.webp?v=1714705403","width":2000},{"alt":null,"id":23875444703331,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffcbe4d915f72e307691325cc6594d22eb646903_6619e211-4333-4053-906e-eb0c18ad2e69.webp?v=1714705405"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffcbe4d915f72e307691325cc6594d22eb646903_6619e211-4333-4053-906e-eb0c18ad2e69.webp?v=1714705405","width":2000},{"alt":null,"id":23875445162083,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec60042b0f49b430621c2c19aa8530bf0d18724e_20038a02-1ee0-4bd4-8833-2564c8285eb4.webp?v=1714705408"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec60042b0f49b430621c2c19aa8530bf0d18724e_20038a02-1ee0-4bd4-8833-2564c8285eb4.webp?v=1714705408","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41879669506147,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB101","requires_shipping":true,"taxable":true,"featured_image":{"id":31470540849251,"product_id":7407854485603,"position":9,"created_at":"2024-05-03T11:03:25+08:00","updated_at":"2024-05-03T11:03:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffcbe4d915f72e307691325cc6594d22eb646903_6619e211-4333-4053-906e-eb0c18ad2e69.webp?v=1714705405","variant_ids":[41879669506147]},"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-PB101","featured_media":{"alt":null,"id":23875444703331,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffcbe4d915f72e307691325cc6594d22eb646903_6619e211-4333-4053-906e-eb0c18ad2e69.webp?v=1714705405"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41879669571683,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB101","requires_shipping":true,"taxable":true,"featured_image":{"id":31470536360035,"product_id":7407854485603,"position":3,"created_at":"2024-05-03T11:03:10+08:00","updated_at":"2024-05-03T11:03:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70cb6676379fb037d58ba056d2f3ffd5420ada10_12c7ea6d-e8b2-48be-9735-f98ce7870ace.webp?v=1714705390","variant_ids":[41879669571683]},"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-PB101","featured_media":{"alt":null,"id":23875440181347,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70cb6676379fb037d58ba056d2f3ffd5420ada10_12c7ea6d-e8b2-48be-9735-f98ce7870ace.webp?v=1714705390"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41879669801059,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB101","requires_shipping":true,"taxable":true,"featured_image":{"id":31470541308003,"product_id":7407854485603,"position":10,"created_at":"2024-05-03T11:03:28+08:00","updated_at":"2024-05-03T11:03:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec60042b0f49b430621c2c19aa8530bf0d18724e_20038a02-1ee0-4bd4-8833-2564c8285eb4.webp?v=1714705408","variant_ids":[41879669801059]},"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-PB101","featured_media":{"alt":null,"id":23875445162083,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec60042b0f49b430621c2c19aa8530bf0d18724e_20038a02-1ee0-4bd4-8833-2564c8285eb4.webp?v=1714705408"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41879669506147,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB101","requires_shipping":true,"taxable":true,"featured_image":{"id":31470540849251,"product_id":7407854485603,"position":9,"created_at":"2024-05-03T11:03:25+08:00","updated_at":"2024-05-03T11:03:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffcbe4d915f72e307691325cc6594d22eb646903_6619e211-4333-4053-906e-eb0c18ad2e69.webp?v=1714705405","variant_ids":[41879669506147]},"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-PB101","featured_media":{"alt":null,"id":23875444703331,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffcbe4d915f72e307691325cc6594d22eb646903_6619e211-4333-4053-906e-eb0c18ad2e69.webp?v=1714705405"}},"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: "停產"
}