$product = {"id":7408046309475,"title":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-經典","handle":"iphone-13-mini-mod-nx-printable-pb22","description":null,"published_at":"2024-06-11T16:29:57+08:00","created_at":"2024-05-03T11:48:14+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 13 mini","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":41882075431011,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB22","requires_shipping":true,"taxable":true,"featured_image":{"id":31471055437923,"product_id":7408046309475,"position":9,"created_at":"2024-05-03T11:48:36+08:00","updated_at":"2024-05-03T11:48:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bac42bf5a6449a28cf3aa18b9aae110f22f98c9_40fcfab9-8389-4bc1-a5d4-a520ca3950a3.webp?v=1714708116","variant_ids":[41882075431011]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0122824-PB22","featured_media":{"alt":null,"id":23875960471651,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bac42bf5a6449a28cf3aa18b9aae110f22f98c9_40fcfab9-8389-4bc1-a5d4-a520ca3950a3.webp?v=1714708116"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882075496547,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB22","requires_shipping":true,"taxable":true,"featured_image":{"id":31471054946403,"product_id":7408046309475,"position":8,"created_at":"2024-05-03T11:48:34+08:00","updated_at":"2024-05-03T11:48:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44562bbf50014b49af29f241ee7f4fbeabcd2187_18289590-92b3-4c7b-87cb-a9ae3cbff749.webp?v=1714708114","variant_ids":[41882075496547]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0122804-PB22","featured_media":{"alt":null,"id":23875959980131,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44562bbf50014b49af29f241ee7f4fbeabcd2187_18289590-92b3-4c7b-87cb-a9ae3cbff749.webp?v=1714708114"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882075725923,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB22","requires_shipping":true,"taxable":true,"featured_image":{"id":31471051866211,"product_id":7408046309475,"position":2,"created_at":"2024-05-03T11:48:20+08:00","updated_at":"2024-05-03T11:48:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e581feb69d062a84dd49da85251a4858fa853bf7_d186fcb6-7465-4a97-83a7-51a4488cb9c5.webp?v=1714708100","variant_ids":[41882075725923]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB01228J5-PB22","featured_media":{"alt":null,"id":23875956899939,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e581feb69d062a84dd49da85251a4858fa853bf7_d186fcb6-7465-4a97-83a7-51a4488cb9c5.webp?v=1714708100"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af00cedfb8c4ce3aeacc0de3210ee29a5d5d3839_c99c055d-b993-469a-b6f4-95b12d873f9d.webp?v=1714708097","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e581feb69d062a84dd49da85251a4858fa853bf7_d186fcb6-7465-4a97-83a7-51a4488cb9c5.webp?v=1714708100","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f86d0aaa45f468685e8bedece84670b394ccb44_a79e6adf-8cde-4fc8-ba21-95774da4b00e.webp?v=1714708102","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a862acd670ba386b6f9f4caa226a511c21603b9_a5ec8d03-3097-40cf-8fbc-dbf5496a1a8c.webp?v=1714708105","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b270d946e883b21d9a1d949e2400c1e0fea92187_bfbb0375-bd79-4f3c-9257-b79edbc75e27.webp?v=1714708107","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dcd2f31b8b24183d5cd8feaf7975e7f00380bfa9_28a31c6f-448b-4ba4-a068-cec73671bb13.webp?v=1714708109","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd3736f4e579fbfdfa88b54ff18a946c9b91beb8_cf46eb0b-bd58-448f-82aa-bd02855233dd.webp?v=1714708111","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44562bbf50014b49af29f241ee7f4fbeabcd2187_18289590-92b3-4c7b-87cb-a9ae3cbff749.webp?v=1714708114","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bac42bf5a6449a28cf3aa18b9aae110f22f98c9_40fcfab9-8389-4bc1-a5d4-a520ca3950a3.webp?v=1714708116","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dff6efaea4454730c83d107e00be353be05480c6_ec89dc7d-5a42-4e25-bc9a-821ea6378b84.webp?v=1714708118"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af00cedfb8c4ce3aeacc0de3210ee29a5d5d3839_c99c055d-b993-469a-b6f4-95b12d873f9d.webp?v=1714708097","options":["color"],"media":[{"alt":null,"id":23875956473955,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af00cedfb8c4ce3aeacc0de3210ee29a5d5d3839_c99c055d-b993-469a-b6f4-95b12d873f9d.webp?v=1714708097"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af00cedfb8c4ce3aeacc0de3210ee29a5d5d3839_c99c055d-b993-469a-b6f4-95b12d873f9d.webp?v=1714708097","width":2000},{"alt":null,"id":23875956899939,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e581feb69d062a84dd49da85251a4858fa853bf7_d186fcb6-7465-4a97-83a7-51a4488cb9c5.webp?v=1714708100"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e581feb69d062a84dd49da85251a4858fa853bf7_d186fcb6-7465-4a97-83a7-51a4488cb9c5.webp?v=1714708100","width":2000},{"alt":null,"id":23875957325923,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f86d0aaa45f468685e8bedece84670b394ccb44_a79e6adf-8cde-4fc8-ba21-95774da4b00e.webp?v=1714708102"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f86d0aaa45f468685e8bedece84670b394ccb44_a79e6adf-8cde-4fc8-ba21-95774da4b00e.webp?v=1714708102","width":2000},{"alt":null,"id":23875957686371,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a862acd670ba386b6f9f4caa226a511c21603b9_a5ec8d03-3097-40cf-8fbc-dbf5496a1a8c.webp?v=1714708105"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a862acd670ba386b6f9f4caa226a511c21603b9_a5ec8d03-3097-40cf-8fbc-dbf5496a1a8c.webp?v=1714708105","width":2000},{"alt":null,"id":23875958210659,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b270d946e883b21d9a1d949e2400c1e0fea92187_bfbb0375-bd79-4f3c-9257-b79edbc75e27.webp?v=1714708107"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b270d946e883b21d9a1d949e2400c1e0fea92187_bfbb0375-bd79-4f3c-9257-b79edbc75e27.webp?v=1714708107","width":2000},{"alt":null,"id":23875959029859,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dcd2f31b8b24183d5cd8feaf7975e7f00380bfa9_28a31c6f-448b-4ba4-a068-cec73671bb13.webp?v=1714708109"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dcd2f31b8b24183d5cd8feaf7975e7f00380bfa9_28a31c6f-448b-4ba4-a068-cec73671bb13.webp?v=1714708109","width":2000},{"alt":null,"id":23875959455843,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd3736f4e579fbfdfa88b54ff18a946c9b91beb8_cf46eb0b-bd58-448f-82aa-bd02855233dd.webp?v=1714708111"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd3736f4e579fbfdfa88b54ff18a946c9b91beb8_cf46eb0b-bd58-448f-82aa-bd02855233dd.webp?v=1714708111","width":2000},{"alt":null,"id":23875959980131,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44562bbf50014b49af29f241ee7f4fbeabcd2187_18289590-92b3-4c7b-87cb-a9ae3cbff749.webp?v=1714708114"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44562bbf50014b49af29f241ee7f4fbeabcd2187_18289590-92b3-4c7b-87cb-a9ae3cbff749.webp?v=1714708114","width":2000},{"alt":null,"id":23875960471651,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bac42bf5a6449a28cf3aa18b9aae110f22f98c9_40fcfab9-8389-4bc1-a5d4-a520ca3950a3.webp?v=1714708116"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bac42bf5a6449a28cf3aa18b9aae110f22f98c9_40fcfab9-8389-4bc1-a5d4-a520ca3950a3.webp?v=1714708116","width":2000},{"alt":null,"id":23875960995939,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dff6efaea4454730c83d107e00be353be05480c6_ec89dc7d-5a42-4e25-bc9a-821ea6378b84.webp?v=1714708118"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dff6efaea4454730c83d107e00be353be05480c6_ec89dc7d-5a42-4e25-bc9a-821ea6378b84.webp?v=1714708118","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41882075431011,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB22","requires_shipping":true,"taxable":true,"featured_image":{"id":31471055437923,"product_id":7408046309475,"position":9,"created_at":"2024-05-03T11:48:36+08:00","updated_at":"2024-05-03T11:48:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bac42bf5a6449a28cf3aa18b9aae110f22f98c9_40fcfab9-8389-4bc1-a5d4-a520ca3950a3.webp?v=1714708116","variant_ids":[41882075431011]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0122824-PB22","featured_media":{"alt":null,"id":23875960471651,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bac42bf5a6449a28cf3aa18b9aae110f22f98c9_40fcfab9-8389-4bc1-a5d4-a520ca3950a3.webp?v=1714708116"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882075496547,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB22","requires_shipping":true,"taxable":true,"featured_image":{"id":31471054946403,"product_id":7408046309475,"position":8,"created_at":"2024-05-03T11:48:34+08:00","updated_at":"2024-05-03T11:48:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44562bbf50014b49af29f241ee7f4fbeabcd2187_18289590-92b3-4c7b-87cb-a9ae3cbff749.webp?v=1714708114","variant_ids":[41882075496547]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0122804-PB22","featured_media":{"alt":null,"id":23875959980131,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44562bbf50014b49af29f241ee7f4fbeabcd2187_18289590-92b3-4c7b-87cb-a9ae3cbff749.webp?v=1714708114"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882075725923,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB22","requires_shipping":true,"taxable":true,"featured_image":{"id":31471051866211,"product_id":7408046309475,"position":2,"created_at":"2024-05-03T11:48:20+08:00","updated_at":"2024-05-03T11:48:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e581feb69d062a84dd49da85251a4858fa853bf7_d186fcb6-7465-4a97-83a7-51a4488cb9c5.webp?v=1714708100","variant_ids":[41882075725923]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB01228J5-PB22","featured_media":{"alt":null,"id":23875956899939,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e581feb69d062a84dd49da85251a4858fa853bf7_d186fcb6-7465-4a97-83a7-51a4488cb9c5.webp?v=1714708100"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41882075431011,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB22","requires_shipping":true,"taxable":true,"featured_image":{"id":31471055437923,"product_id":7408046309475,"position":9,"created_at":"2024-05-03T11:48:36+08:00","updated_at":"2024-05-03T11:48:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bac42bf5a6449a28cf3aa18b9aae110f22f98c9_40fcfab9-8389-4bc1-a5d4-a520ca3950a3.webp?v=1714708116","variant_ids":[41882075431011]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0122824-PB22","featured_media":{"alt":null,"id":23875960471651,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bac42bf5a6449a28cf3aa18b9aae110f22f98c9_40fcfab9-8389-4bc1-a5d4-a520ca3950a3.webp?v=1714708116"}},"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: "停產"
}