$product = {"id":7411350306915,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 星際大戰-開場字幕","handle":"iphone-14-pro-mod-nx-magsafe-printable-pb70","description":null,"published_at":"2024-06-11T17:42:35+08:00","created_at":"2024-05-05T00:12:43+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 14 Pro","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":41897788702819,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB70","requires_shipping":true,"taxable":true,"featured_image":{"id":31480205148259,"product_id":7411350306915,"position":5,"created_at":"2024-05-05T00:12:56+08:00","updated_at":"2024-05-05T00:12:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e363ae62f4124183ad10bcf54a69149d9cea4f6_2d965d54-58e0-4018-8f3f-c704dad1211b.webp?v=1714839176","variant_ids":[41897788702819]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 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":"MPB0126224-PB70","featured_media":{"alt":null,"id":23885456179299,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e363ae62f4124183ad10bcf54a69149d9cea4f6_2d965d54-58e0-4018-8f3f-c704dad1211b.webp?v=1714839176"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897788768355,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB70","requires_shipping":true,"taxable":true,"featured_image":{"id":31480204623971,"product_id":7411350306915,"position":4,"created_at":"2024-05-05T00:12:53+08:00","updated_at":"2024-05-05T00:12:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f8b117acd366a6fb88bc91a5925cdf078ab6d29_59afa363-4864-43d1-890b-5663005e0981.webp?v=1714839173","variant_ids":[41897788768355]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 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":"MPB0126204-PB70","featured_media":{"alt":null,"id":23885455687779,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f8b117acd366a6fb88bc91a5925cdf078ab6d29_59afa363-4864-43d1-890b-5663005e0981.webp?v=1714839173"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897788997731,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB70","requires_shipping":true,"taxable":true,"featured_image":{"id":31480203608163,"product_id":7411350306915,"position":2,"created_at":"2024-05-05T00:12:48+08:00","updated_at":"2024-05-05T00:12:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ac7fe0e6e8d76dbfc9263ee802a18054465a1e8_5ab92d77-5ed7-42b7-b6ab-7982beb9824e.webp?v=1714839168","variant_ids":[41897788997731]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 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":"MPB01262J5-PB70","featured_media":{"alt":null,"id":23885454573667,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ac7fe0e6e8d76dbfc9263ee802a18054465a1e8_5ab92d77-5ed7-42b7-b6ab-7982beb9824e.webp?v=1714839168"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19cdb5f2304ed1b398c64a94bddc9f28218f8451_12602ed8-403d-40ea-9783-54dd2f5b4d97.webp?v=1714839166","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ac7fe0e6e8d76dbfc9263ee802a18054465a1e8_5ab92d77-5ed7-42b7-b6ab-7982beb9824e.webp?v=1714839168","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82ee59c4e2992108aaa2dbbb7d05b0de761c1c89_9cf45a70-f856-4b8d-850f-b6cde8ed9935.webp?v=1714839171","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f8b117acd366a6fb88bc91a5925cdf078ab6d29_59afa363-4864-43d1-890b-5663005e0981.webp?v=1714839173","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e363ae62f4124183ad10bcf54a69149d9cea4f6_2d965d54-58e0-4018-8f3f-c704dad1211b.webp?v=1714839176","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3eb9a23868da1a43db86c229040a1ed597ed9dd_775dc236-5518-4f27-9460-51268a74d6de.webp?v=1714839178","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e1e1dc5379e427d9035a7b5a7bb6812f49b356e_7ede5a6d-cb7c-4e97-866a-d11e0cce7d9d.webp?v=1714839180","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cca7e34d279605d64b857e6a96013b296f59bb5_3c724920-09db-4e7d-9b4a-f46ade534e08.webp?v=1714839183","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ca3b56168047e4ca29122c10e2845443b29a226_22d7c472-cb7c-4fdb-9393-9a9a8abd8889.webp?v=1714839185","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e85ce34384718ef0804f4ef9b84c7182e3d2543_4ced6ad6-d18c-4a3f-a21e-16a0ee77295d.webp?v=1714839187"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19cdb5f2304ed1b398c64a94bddc9f28218f8451_12602ed8-403d-40ea-9783-54dd2f5b4d97.webp?v=1714839166","options":["color"],"media":[{"alt":null,"id":23885454311523,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19cdb5f2304ed1b398c64a94bddc9f28218f8451_12602ed8-403d-40ea-9783-54dd2f5b4d97.webp?v=1714839166"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19cdb5f2304ed1b398c64a94bddc9f28218f8451_12602ed8-403d-40ea-9783-54dd2f5b4d97.webp?v=1714839166","width":2000},{"alt":null,"id":23885454573667,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ac7fe0e6e8d76dbfc9263ee802a18054465a1e8_5ab92d77-5ed7-42b7-b6ab-7982beb9824e.webp?v=1714839168"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ac7fe0e6e8d76dbfc9263ee802a18054465a1e8_5ab92d77-5ed7-42b7-b6ab-7982beb9824e.webp?v=1714839168","width":2000},{"alt":null,"id":23885455294563,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82ee59c4e2992108aaa2dbbb7d05b0de761c1c89_9cf45a70-f856-4b8d-850f-b6cde8ed9935.webp?v=1714839171"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82ee59c4e2992108aaa2dbbb7d05b0de761c1c89_9cf45a70-f856-4b8d-850f-b6cde8ed9935.webp?v=1714839171","width":2000},{"alt":null,"id":23885455687779,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f8b117acd366a6fb88bc91a5925cdf078ab6d29_59afa363-4864-43d1-890b-5663005e0981.webp?v=1714839173"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f8b117acd366a6fb88bc91a5925cdf078ab6d29_59afa363-4864-43d1-890b-5663005e0981.webp?v=1714839173","width":2000},{"alt":null,"id":23885456179299,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e363ae62f4124183ad10bcf54a69149d9cea4f6_2d965d54-58e0-4018-8f3f-c704dad1211b.webp?v=1714839176"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e363ae62f4124183ad10bcf54a69149d9cea4f6_2d965d54-58e0-4018-8f3f-c704dad1211b.webp?v=1714839176","width":2000},{"alt":null,"id":23885456638051,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3eb9a23868da1a43db86c229040a1ed597ed9dd_775dc236-5518-4f27-9460-51268a74d6de.webp?v=1714839178"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3eb9a23868da1a43db86c229040a1ed597ed9dd_775dc236-5518-4f27-9460-51268a74d6de.webp?v=1714839178","width":2000},{"alt":null,"id":23885457129571,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e1e1dc5379e427d9035a7b5a7bb6812f49b356e_7ede5a6d-cb7c-4e97-866a-d11e0cce7d9d.webp?v=1714839180"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e1e1dc5379e427d9035a7b5a7bb6812f49b356e_7ede5a6d-cb7c-4e97-866a-d11e0cce7d9d.webp?v=1714839180","width":2000},{"alt":null,"id":23885457424483,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cca7e34d279605d64b857e6a96013b296f59bb5_3c724920-09db-4e7d-9b4a-f46ade534e08.webp?v=1714839183"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cca7e34d279605d64b857e6a96013b296f59bb5_3c724920-09db-4e7d-9b4a-f46ade534e08.webp?v=1714839183","width":2000},{"alt":null,"id":23885457850467,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ca3b56168047e4ca29122c10e2845443b29a226_22d7c472-cb7c-4fdb-9393-9a9a8abd8889.webp?v=1714839185"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ca3b56168047e4ca29122c10e2845443b29a226_22d7c472-cb7c-4fdb-9393-9a9a8abd8889.webp?v=1714839185","width":2000},{"alt":null,"id":23885458243683,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e85ce34384718ef0804f4ef9b84c7182e3d2543_4ced6ad6-d18c-4a3f-a21e-16a0ee77295d.webp?v=1714839187"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e85ce34384718ef0804f4ef9b84c7182e3d2543_4ced6ad6-d18c-4a3f-a21e-16a0ee77295d.webp?v=1714839187","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41897788702819,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB70","requires_shipping":true,"taxable":true,"featured_image":{"id":31480205148259,"product_id":7411350306915,"position":5,"created_at":"2024-05-05T00:12:56+08:00","updated_at":"2024-05-05T00:12:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e363ae62f4124183ad10bcf54a69149d9cea4f6_2d965d54-58e0-4018-8f3f-c704dad1211b.webp?v=1714839176","variant_ids":[41897788702819]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 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":"MPB0126224-PB70","featured_media":{"alt":null,"id":23885456179299,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e363ae62f4124183ad10bcf54a69149d9cea4f6_2d965d54-58e0-4018-8f3f-c704dad1211b.webp?v=1714839176"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897788768355,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB70","requires_shipping":true,"taxable":true,"featured_image":{"id":31480204623971,"product_id":7411350306915,"position":4,"created_at":"2024-05-05T00:12:53+08:00","updated_at":"2024-05-05T00:12:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f8b117acd366a6fb88bc91a5925cdf078ab6d29_59afa363-4864-43d1-890b-5663005e0981.webp?v=1714839173","variant_ids":[41897788768355]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 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":"MPB0126204-PB70","featured_media":{"alt":null,"id":23885455687779,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f8b117acd366a6fb88bc91a5925cdf078ab6d29_59afa363-4864-43d1-890b-5663005e0981.webp?v=1714839173"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897788997731,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB70","requires_shipping":true,"taxable":true,"featured_image":{"id":31480203608163,"product_id":7411350306915,"position":2,"created_at":"2024-05-05T00:12:48+08:00","updated_at":"2024-05-05T00:12:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ac7fe0e6e8d76dbfc9263ee802a18054465a1e8_5ab92d77-5ed7-42b7-b6ab-7982beb9824e.webp?v=1714839168","variant_ids":[41897788997731]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 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":"MPB01262J5-PB70","featured_media":{"alt":null,"id":23885454573667,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ac7fe0e6e8d76dbfc9263ee802a18054465a1e8_5ab92d77-5ed7-42b7-b6ab-7982beb9824e.webp?v=1714839168"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41897788702819,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB70","requires_shipping":true,"taxable":true,"featured_image":{"id":31480205148259,"product_id":7411350306915,"position":5,"created_at":"2024-05-05T00:12:56+08:00","updated_at":"2024-05-05T00:12:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e363ae62f4124183ad10bcf54a69149d9cea4f6_2d965d54-58e0-4018-8f3f-c704dad1211b.webp?v=1714839176","variant_ids":[41897788702819]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 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":"MPB0126224-PB70","featured_media":{"alt":null,"id":23885456179299,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e363ae62f4124183ad10bcf54a69149d9cea4f6_2d965d54-58e0-4018-8f3f-c704dad1211b.webp?v=1714839176"}},"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: "停產"
}