$product = {"id":7411422888035,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Pixel Jeff 皮傑 - 街頭潮流","handle":"iphone-14-pro-mod-nx-magsafe-printable-hq06","description":null,"published_at":"2024-06-11T17:44:35+08:00","created_at":"2024-05-05T00:26:53+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Pixel Jeff 皮傑","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-pixeljeff","device-iPhone 14 Pro","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-pixeljeff","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":41898692739171,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-HQ06","requires_shipping":true,"taxable":true,"featured_image":{"id":31480389337187,"product_id":7411422888035,"position":6,"created_at":"2024-05-05T00:27:07+08:00","updated_at":"2024-05-05T00:27:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f6239da9a0396df78235c8989a6b790c30f5e2b_a48fb43f-d22a-4857-b2ba-8ae2e9255dee.webp?v=1714840027","variant_ids":[41898692739171]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Pixel Jeff 皮傑 - 街頭潮流 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-HQ06","featured_media":{"alt":null,"id":23885640990819,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f6239da9a0396df78235c8989a6b790c30f5e2b_a48fb43f-d22a-4857-b2ba-8ae2e9255dee.webp?v=1714840027"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898692804707,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-HQ06","requires_shipping":true,"taxable":true,"featured_image":{"id":31480389697635,"product_id":7411422888035,"position":7,"created_at":"2024-05-05T00:27:10+08:00","updated_at":"2024-05-05T00:27:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fb6d9832b44fe0157736fc18f3636adc6de5449_dca947c2-7b2f-4f66-b408-6f636d2ca0fe.webp?v=1714840030","variant_ids":[41898692804707]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Pixel Jeff 皮傑 - 街頭潮流 - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-HQ06","featured_media":{"alt":null,"id":23885641384035,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fb6d9832b44fe0157736fc18f3636adc6de5449_dca947c2-7b2f-4f66-b408-6f636d2ca0fe.webp?v=1714840030"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898693034083,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-HQ06","requires_shipping":true,"taxable":true,"featured_image":{"id":31480391270499,"product_id":7411422888035,"position":10,"created_at":"2024-05-05T00:27:17+08:00","updated_at":"2024-05-05T00:27:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a15ea41f911eeb41bc73257a5acb7f72a7144d97_893006d3-ccbb-4e04-bb77-b9df7b07fa8a.webp?v=1714840037","variant_ids":[41898693034083]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Pixel Jeff 皮傑 - 街頭潮流 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01262J5-HQ06","featured_media":{"alt":null,"id":23885642924131,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a15ea41f911eeb41bc73257a5acb7f72a7144d97_893006d3-ccbb-4e04-bb77-b9df7b07fa8a.webp?v=1714840037"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88cbfda32b0f0a6365ed7a840d5e985d1dd3bc55_70c5606d-b95d-4c68-a1e3-f7ec920ad688.webp?v=1714840015","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47f9d034d4ea5689548da208ff3e81aeaaa3ce11_c1cef802-e116-4e36-bd8d-64a658c93844.webp?v=1714840018","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9cb4542e470f6f2c92afe1acc8d678f7a889ff2f_503e2970-e963-412c-b96f-5e39e39ec042.webp?v=1714840020","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efcf46833863d3ac3625c393dedf48128c40e1b2_9c5c1362-1f7e-4445-b0e2-9248b194cd8f.webp?v=1714840022","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12d1b4f1f4003f02a2e9b6d69ab6e77542f5e11f_270d8916-8069-4b25-bf68-83b57c5c5372.webp?v=1714840025","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f6239da9a0396df78235c8989a6b790c30f5e2b_a48fb43f-d22a-4857-b2ba-8ae2e9255dee.webp?v=1714840027","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fb6d9832b44fe0157736fc18f3636adc6de5449_dca947c2-7b2f-4f66-b408-6f636d2ca0fe.webp?v=1714840030","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44f5c3d126b5c33c4bcf86e690a2c31312deeb2e_6773271d-7f69-4690-92de-5a8f3de09c5b.webp?v=1714840032","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9250ff2e7647ee1779f5e47a173f0c83cedc49e_7964b9a2-519a-46a4-b75a-775811ec5836.webp?v=1714840034","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a15ea41f911eeb41bc73257a5acb7f72a7144d97_893006d3-ccbb-4e04-bb77-b9df7b07fa8a.webp?v=1714840037"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88cbfda32b0f0a6365ed7a840d5e985d1dd3bc55_70c5606d-b95d-4c68-a1e3-f7ec920ad688.webp?v=1714840015","options":["color"],"media":[{"alt":null,"id":23885638729827,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88cbfda32b0f0a6365ed7a840d5e985d1dd3bc55_70c5606d-b95d-4c68-a1e3-f7ec920ad688.webp?v=1714840015"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88cbfda32b0f0a6365ed7a840d5e985d1dd3bc55_70c5606d-b95d-4c68-a1e3-f7ec920ad688.webp?v=1714840015","width":2000},{"alt":null,"id":23885639123043,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47f9d034d4ea5689548da208ff3e81aeaaa3ce11_c1cef802-e116-4e36-bd8d-64a658c93844.webp?v=1714840018"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47f9d034d4ea5689548da208ff3e81aeaaa3ce11_c1cef802-e116-4e36-bd8d-64a658c93844.webp?v=1714840018","width":2000},{"alt":null,"id":23885639680099,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9cb4542e470f6f2c92afe1acc8d678f7a889ff2f_503e2970-e963-412c-b96f-5e39e39ec042.webp?v=1714840020"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9cb4542e470f6f2c92afe1acc8d678f7a889ff2f_503e2970-e963-412c-b96f-5e39e39ec042.webp?v=1714840020","width":2000},{"alt":null,"id":23885640237155,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efcf46833863d3ac3625c393dedf48128c40e1b2_9c5c1362-1f7e-4445-b0e2-9248b194cd8f.webp?v=1714840022"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efcf46833863d3ac3625c393dedf48128c40e1b2_9c5c1362-1f7e-4445-b0e2-9248b194cd8f.webp?v=1714840022","width":2000},{"alt":null,"id":23885640630371,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12d1b4f1f4003f02a2e9b6d69ab6e77542f5e11f_270d8916-8069-4b25-bf68-83b57c5c5372.webp?v=1714840025"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12d1b4f1f4003f02a2e9b6d69ab6e77542f5e11f_270d8916-8069-4b25-bf68-83b57c5c5372.webp?v=1714840025","width":2000},{"alt":null,"id":23885640990819,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f6239da9a0396df78235c8989a6b790c30f5e2b_a48fb43f-d22a-4857-b2ba-8ae2e9255dee.webp?v=1714840027"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f6239da9a0396df78235c8989a6b790c30f5e2b_a48fb43f-d22a-4857-b2ba-8ae2e9255dee.webp?v=1714840027","width":2000},{"alt":null,"id":23885641384035,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fb6d9832b44fe0157736fc18f3636adc6de5449_dca947c2-7b2f-4f66-b408-6f636d2ca0fe.webp?v=1714840030"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fb6d9832b44fe0157736fc18f3636adc6de5449_dca947c2-7b2f-4f66-b408-6f636d2ca0fe.webp?v=1714840030","width":2000},{"alt":null,"id":23885641810019,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44f5c3d126b5c33c4bcf86e690a2c31312deeb2e_6773271d-7f69-4690-92de-5a8f3de09c5b.webp?v=1714840032"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44f5c3d126b5c33c4bcf86e690a2c31312deeb2e_6773271d-7f69-4690-92de-5a8f3de09c5b.webp?v=1714840032","width":2000},{"alt":null,"id":23885642301539,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9250ff2e7647ee1779f5e47a173f0c83cedc49e_7964b9a2-519a-46a4-b75a-775811ec5836.webp?v=1714840034"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9250ff2e7647ee1779f5e47a173f0c83cedc49e_7964b9a2-519a-46a4-b75a-775811ec5836.webp?v=1714840034","width":2000},{"alt":null,"id":23885642924131,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a15ea41f911eeb41bc73257a5acb7f72a7144d97_893006d3-ccbb-4e04-bb77-b9df7b07fa8a.webp?v=1714840037"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a15ea41f911eeb41bc73257a5acb7f72a7144d97_893006d3-ccbb-4e04-bb77-b9df7b07fa8a.webp?v=1714840037","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41898692739171,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-HQ06","requires_shipping":true,"taxable":true,"featured_image":{"id":31480389337187,"product_id":7411422888035,"position":6,"created_at":"2024-05-05T00:27:07+08:00","updated_at":"2024-05-05T00:27:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f6239da9a0396df78235c8989a6b790c30f5e2b_a48fb43f-d22a-4857-b2ba-8ae2e9255dee.webp?v=1714840027","variant_ids":[41898692739171]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Pixel Jeff 皮傑 - 街頭潮流 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-HQ06","featured_media":{"alt":null,"id":23885640990819,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f6239da9a0396df78235c8989a6b790c30f5e2b_a48fb43f-d22a-4857-b2ba-8ae2e9255dee.webp?v=1714840027"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898692804707,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-HQ06","requires_shipping":true,"taxable":true,"featured_image":{"id":31480389697635,"product_id":7411422888035,"position":7,"created_at":"2024-05-05T00:27:10+08:00","updated_at":"2024-05-05T00:27:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fb6d9832b44fe0157736fc18f3636adc6de5449_dca947c2-7b2f-4f66-b408-6f636d2ca0fe.webp?v=1714840030","variant_ids":[41898692804707]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Pixel Jeff 皮傑 - 街頭潮流 - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-HQ06","featured_media":{"alt":null,"id":23885641384035,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fb6d9832b44fe0157736fc18f3636adc6de5449_dca947c2-7b2f-4f66-b408-6f636d2ca0fe.webp?v=1714840030"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898693034083,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-HQ06","requires_shipping":true,"taxable":true,"featured_image":{"id":31480391270499,"product_id":7411422888035,"position":10,"created_at":"2024-05-05T00:27:17+08:00","updated_at":"2024-05-05T00:27:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a15ea41f911eeb41bc73257a5acb7f72a7144d97_893006d3-ccbb-4e04-bb77-b9df7b07fa8a.webp?v=1714840037","variant_ids":[41898693034083]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Pixel Jeff 皮傑 - 街頭潮流 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01262J5-HQ06","featured_media":{"alt":null,"id":23885642924131,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a15ea41f911eeb41bc73257a5acb7f72a7144d97_893006d3-ccbb-4e04-bb77-b9df7b07fa8a.webp?v=1714840037"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41898692739171,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-HQ06","requires_shipping":true,"taxable":true,"featured_image":{"id":31480389337187,"product_id":7411422888035,"position":6,"created_at":"2024-05-05T00:27:07+08:00","updated_at":"2024-05-05T00:27:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f6239da9a0396df78235c8989a6b790c30f5e2b_a48fb43f-d22a-4857-b2ba-8ae2e9255dee.webp?v=1714840027","variant_ids":[41898692739171]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Pixel Jeff 皮傑 - 街頭潮流 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-HQ06","featured_media":{"alt":null,"id":23885640990819,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f6239da9a0396df78235c8989a6b790c30f5e2b_a48fb43f-d22a-4857-b2ba-8ae2e9255dee.webp?v=1714840027"}},"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: "停產"
}