$product = {"id":7414107308131,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 波巴費特-噴漆黑","handle":"iphone-13-mini-mod-nx-magsafe-printable-pb05","description":null,"published_at":"2024-06-11T17:49:02+08:00","created_at":"2024-05-05T14:10:15+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 13 mini","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":41904139894883,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB05","requires_shipping":true,"taxable":true,"featured_image":{"id":31484682895459,"product_id":7414107308131,"position":1,"created_at":"2024-05-05T14:10:17+08:00","updated_at":"2024-05-05T14:10:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5fdc567b8a79a50e3145540d04fdc49a1a68616_10c4dae9-e61e-46a8-a44f-07a70845a593.webp?v=1714889417","variant_ids":[41904139894883]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 波巴費特-噴漆黑 - 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":"MPB0122824-PB05","featured_media":{"alt":null,"id":23889978163299,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5fdc567b8a79a50e3145540d04fdc49a1a68616_10c4dae9-e61e-46a8-a44f-07a70845a593.webp?v=1714889417"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904139993187,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB05","requires_shipping":true,"taxable":true,"featured_image":{"id":31484691873891,"product_id":7414107308131,"position":7,"created_at":"2024-05-05T14:10:30+08:00","updated_at":"2024-05-05T14:10:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61bcccc558995080c4e60603c25226eb21cf40f4_c4bf7b49-60b0-412b-a96c-8a6b0469205b.webp?v=1714889430","variant_ids":[41904139993187]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 波巴費特-噴漆黑 - 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":"MPB0122804-PB05","featured_media":{"alt":null,"id":23889987174499,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61bcccc558995080c4e60603c25226eb21cf40f4_c4bf7b49-60b0-412b-a96c-8a6b0469205b.webp?v=1714889430"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904140222563,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB05","requires_shipping":true,"taxable":true,"featured_image":{"id":31484687450211,"product_id":7414107308131,"position":4,"created_at":"2024-05-05T14:10:23+08:00","updated_at":"2024-05-05T14:10:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/689019049819b0c8b2a27e7a018f33bc33ebbb22_175f55ad-36e1-4728-8113-fd6e146aa09d.webp?v=1714889423","variant_ids":[41904140222563]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 波巴費特-噴漆黑 - 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":"MPB01228J5-PB05","featured_media":{"alt":null,"id":23889982914659,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/689019049819b0c8b2a27e7a018f33bc33ebbb22_175f55ad-36e1-4728-8113-fd6e146aa09d.webp?v=1714889423"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5fdc567b8a79a50e3145540d04fdc49a1a68616_10c4dae9-e61e-46a8-a44f-07a70845a593.webp?v=1714889417","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1124fe26247e0a00884c3c7531256cdc0c323f2_32c04082-9da9-49a2-8ecb-ed5d922cb24c.webp?v=1714889419","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/936a6b4323a97d5649b18e194ed758abc8702db0_ed810ff3-95ac-4d8f-93e2-4efde8f5f09d.webp?v=1714889421","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/689019049819b0c8b2a27e7a018f33bc33ebbb22_175f55ad-36e1-4728-8113-fd6e146aa09d.webp?v=1714889423","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/953635dbc8adabc5349943e91018f778498a29de_8a1033df-3d29-4153-8a94-75175f7888f4.webp?v=1714889426","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/440deb8846a312f8ee729686e2d498009d32c6ec_aa021d54-a4b0-4b81-b6f2-f6f3b677ba34.webp?v=1714889428","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61bcccc558995080c4e60603c25226eb21cf40f4_c4bf7b49-60b0-412b-a96c-8a6b0469205b.webp?v=1714889430","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa9a60b139338cebdf054086dfcfd36051cfcf12_c593d920-16b1-48a3-9cde-ff7f048698eb.webp?v=1714889432","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8cf34349fad4ae265352fb8e6f4e80108785d60e_f92cb066-4f95-4623-9ff2-1f4ec11607df.webp?v=1714889435","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5cda3e51deb38e38aa7872e0b8ae54f01d6d15e_40ea4099-7646-426f-8d7e-65ac2fc402f9.webp?v=1714889437"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5fdc567b8a79a50e3145540d04fdc49a1a68616_10c4dae9-e61e-46a8-a44f-07a70845a593.webp?v=1714889417","options":["color"],"media":[{"alt":null,"id":23889978163299,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5fdc567b8a79a50e3145540d04fdc49a1a68616_10c4dae9-e61e-46a8-a44f-07a70845a593.webp?v=1714889417"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5fdc567b8a79a50e3145540d04fdc49a1a68616_10c4dae9-e61e-46a8-a44f-07a70845a593.webp?v=1714889417","width":2000},{"alt":null,"id":23889979605091,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1124fe26247e0a00884c3c7531256cdc0c323f2_32c04082-9da9-49a2-8ecb-ed5d922cb24c.webp?v=1714889419"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1124fe26247e0a00884c3c7531256cdc0c323f2_32c04082-9da9-49a2-8ecb-ed5d922cb24c.webp?v=1714889419","width":2000},{"alt":null,"id":23889981177955,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/936a6b4323a97d5649b18e194ed758abc8702db0_ed810ff3-95ac-4d8f-93e2-4efde8f5f09d.webp?v=1714889421"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/936a6b4323a97d5649b18e194ed758abc8702db0_ed810ff3-95ac-4d8f-93e2-4efde8f5f09d.webp?v=1714889421","width":2000},{"alt":null,"id":23889982914659,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/689019049819b0c8b2a27e7a018f33bc33ebbb22_175f55ad-36e1-4728-8113-fd6e146aa09d.webp?v=1714889423"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/689019049819b0c8b2a27e7a018f33bc33ebbb22_175f55ad-36e1-4728-8113-fd6e146aa09d.webp?v=1714889423","width":2000},{"alt":null,"id":23889984159843,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/953635dbc8adabc5349943e91018f778498a29de_8a1033df-3d29-4153-8a94-75175f7888f4.webp?v=1714889426"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/953635dbc8adabc5349943e91018f778498a29de_8a1033df-3d29-4153-8a94-75175f7888f4.webp?v=1714889426","width":2000},{"alt":null,"id":23889985798243,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/440deb8846a312f8ee729686e2d498009d32c6ec_aa021d54-a4b0-4b81-b6f2-f6f3b677ba34.webp?v=1714889428"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/440deb8846a312f8ee729686e2d498009d32c6ec_aa021d54-a4b0-4b81-b6f2-f6f3b677ba34.webp?v=1714889428","width":2000},{"alt":null,"id":23889987174499,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61bcccc558995080c4e60603c25226eb21cf40f4_c4bf7b49-60b0-412b-a96c-8a6b0469205b.webp?v=1714889430"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61bcccc558995080c4e60603c25226eb21cf40f4_c4bf7b49-60b0-412b-a96c-8a6b0469205b.webp?v=1714889430","width":2000},{"alt":null,"id":23889988714595,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa9a60b139338cebdf054086dfcfd36051cfcf12_c593d920-16b1-48a3-9cde-ff7f048698eb.webp?v=1714889432"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa9a60b139338cebdf054086dfcfd36051cfcf12_c593d920-16b1-48a3-9cde-ff7f048698eb.webp?v=1714889432","width":2000},{"alt":null,"id":23889990189155,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8cf34349fad4ae265352fb8e6f4e80108785d60e_f92cb066-4f95-4623-9ff2-1f4ec11607df.webp?v=1714889435"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8cf34349fad4ae265352fb8e6f4e80108785d60e_f92cb066-4f95-4623-9ff2-1f4ec11607df.webp?v=1714889435","width":2000},{"alt":null,"id":23889991729251,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5cda3e51deb38e38aa7872e0b8ae54f01d6d15e_40ea4099-7646-426f-8d7e-65ac2fc402f9.webp?v=1714889437"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5cda3e51deb38e38aa7872e0b8ae54f01d6d15e_40ea4099-7646-426f-8d7e-65ac2fc402f9.webp?v=1714889437","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41904139894883,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB05","requires_shipping":true,"taxable":true,"featured_image":{"id":31484682895459,"product_id":7414107308131,"position":1,"created_at":"2024-05-05T14:10:17+08:00","updated_at":"2024-05-05T14:10:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5fdc567b8a79a50e3145540d04fdc49a1a68616_10c4dae9-e61e-46a8-a44f-07a70845a593.webp?v=1714889417","variant_ids":[41904139894883]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 波巴費特-噴漆黑 - 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":"MPB0122824-PB05","featured_media":{"alt":null,"id":23889978163299,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5fdc567b8a79a50e3145540d04fdc49a1a68616_10c4dae9-e61e-46a8-a44f-07a70845a593.webp?v=1714889417"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904139993187,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB05","requires_shipping":true,"taxable":true,"featured_image":{"id":31484691873891,"product_id":7414107308131,"position":7,"created_at":"2024-05-05T14:10:30+08:00","updated_at":"2024-05-05T14:10:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61bcccc558995080c4e60603c25226eb21cf40f4_c4bf7b49-60b0-412b-a96c-8a6b0469205b.webp?v=1714889430","variant_ids":[41904139993187]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 波巴費特-噴漆黑 - 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":"MPB0122804-PB05","featured_media":{"alt":null,"id":23889987174499,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61bcccc558995080c4e60603c25226eb21cf40f4_c4bf7b49-60b0-412b-a96c-8a6b0469205b.webp?v=1714889430"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904140222563,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB05","requires_shipping":true,"taxable":true,"featured_image":{"id":31484687450211,"product_id":7414107308131,"position":4,"created_at":"2024-05-05T14:10:23+08:00","updated_at":"2024-05-05T14:10:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/689019049819b0c8b2a27e7a018f33bc33ebbb22_175f55ad-36e1-4728-8113-fd6e146aa09d.webp?v=1714889423","variant_ids":[41904140222563]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 波巴費特-噴漆黑 - 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":"MPB01228J5-PB05","featured_media":{"alt":null,"id":23889982914659,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/689019049819b0c8b2a27e7a018f33bc33ebbb22_175f55ad-36e1-4728-8113-fd6e146aa09d.webp?v=1714889423"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41904139894883,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB05","requires_shipping":true,"taxable":true,"featured_image":{"id":31484682895459,"product_id":7414107308131,"position":1,"created_at":"2024-05-05T14:10:17+08:00","updated_at":"2024-05-05T14:10:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5fdc567b8a79a50e3145540d04fdc49a1a68616_10c4dae9-e61e-46a8-a44f-07a70845a593.webp?v=1714889417","variant_ids":[41904139894883]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 波巴費特-噴漆黑 - 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":"MPB0122824-PB05","featured_media":{"alt":null,"id":23889978163299,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5fdc567b8a79a50e3145540d04fdc49a1a68616_10c4dae9-e61e-46a8-a44f-07a70845a593.webp?v=1714889417"}},"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: "停產"
}