$product = {"id":7411380486243,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 星戰漫畫-貼紙系列","handle":"iphone-14-pro-mod-nx-magsafe-printable-pb83","description":null,"published_at":"2024-06-11T17:43:23+08:00","created_at":"2024-05-05T00:18:38+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":41898159243363,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB83","requires_shipping":true,"taxable":true,"featured_image":{"id":31480281464931,"product_id":7411380486243,"position":5,"created_at":"2024-05-05T00:18:51+08:00","updated_at":"2024-05-05T00:18:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49abe55ab090e40f1c78c151e6fdb2b6efc7b9ed_3d60ec15-5e0b-4fed-bee8-7762e58a0c3c.webp?v=1714839531","variant_ids":[41898159243363]},"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-PB83","featured_media":{"alt":null,"id":23885532790883,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49abe55ab090e40f1c78c151e6fdb2b6efc7b9ed_3d60ec15-5e0b-4fed-bee8-7762e58a0c3c.webp?v=1714839531"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898159308899,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB83","requires_shipping":true,"taxable":true,"featured_image":{"id":31480282153059,"product_id":7411380486243,"position":6,"created_at":"2024-05-05T00:18:54+08:00","updated_at":"2024-05-05T00:18:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/078075516d5262a63c61fc223a43c1132a917495_a5f7219b-cfe2-4560-ad6e-8ddc1944ed19.webp?v=1714839534","variant_ids":[41898159308899]},"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-PB83","featured_media":{"alt":null,"id":23885533479011,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/078075516d5262a63c61fc223a43c1132a917495_a5f7219b-cfe2-4560-ad6e-8ddc1944ed19.webp?v=1714839534"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898159571043,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB83","requires_shipping":true,"taxable":true,"featured_image":{"id":31480279597155,"product_id":7411380486243,"position":2,"created_at":"2024-05-05T00:18:43+08:00","updated_at":"2024-05-05T00:18:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bea7470973f04e2fc82ca647573ebc9355e96f62_7c42dc87-9622-4b41-b568-262e27178e94.webp?v=1714839523","variant_ids":[41898159571043]},"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-PB83","featured_media":{"alt":null,"id":23885530955875,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bea7470973f04e2fc82ca647573ebc9355e96f62_7c42dc87-9622-4b41-b568-262e27178e94.webp?v=1714839523"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ab729380a298b8ec0d2e0f4e8584b5ce039fcbf_26ea363e-35ee-4719-a072-52d98008f753.webp?v=1714839520","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bea7470973f04e2fc82ca647573ebc9355e96f62_7c42dc87-9622-4b41-b568-262e27178e94.webp?v=1714839523","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53f835840b5ae3d3d3260a42b25cc0b7cc9554b7_8c4193b7-d07a-436a-97d2-8f3a21537cd5.webp?v=1714839525","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0d14df096a1d7dba896e1e0200ad8adbabc6587_af2e7b09-acab-453d-ba7a-6a7c82eec28e.webp?v=1714839528","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49abe55ab090e40f1c78c151e6fdb2b6efc7b9ed_3d60ec15-5e0b-4fed-bee8-7762e58a0c3c.webp?v=1714839531","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/078075516d5262a63c61fc223a43c1132a917495_a5f7219b-cfe2-4560-ad6e-8ddc1944ed19.webp?v=1714839534","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c28a2c0cb983296b1b591a9564e6c83e77f48a50_51cddc7e-d3b6-44fc-a717-a5a461e37e88.webp?v=1714839536","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31bee5a3e3ae48461832e11e8d2c0012de10c531_aa88759b-5e3d-4a88-bd8d-838078b08b11.webp?v=1714839539","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bfc703955c1bcfd7ee7550561b229b4addb7b36_bfeedd85-72ec-438b-a4d0-cdc099b426fc.webp?v=1714839541","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa65565e86d2e9923b29c678e2669a654444eee0_85939295-7257-4d57-805e-e2a4b271930b.webp?v=1714839544"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ab729380a298b8ec0d2e0f4e8584b5ce039fcbf_26ea363e-35ee-4719-a072-52d98008f753.webp?v=1714839520","options":["color"],"media":[{"alt":null,"id":23885530464355,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ab729380a298b8ec0d2e0f4e8584b5ce039fcbf_26ea363e-35ee-4719-a072-52d98008f753.webp?v=1714839520"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ab729380a298b8ec0d2e0f4e8584b5ce039fcbf_26ea363e-35ee-4719-a072-52d98008f753.webp?v=1714839520","width":2000},{"alt":null,"id":23885530955875,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bea7470973f04e2fc82ca647573ebc9355e96f62_7c42dc87-9622-4b41-b568-262e27178e94.webp?v=1714839523"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bea7470973f04e2fc82ca647573ebc9355e96f62_7c42dc87-9622-4b41-b568-262e27178e94.webp?v=1714839523","width":2000},{"alt":null,"id":23885531611235,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53f835840b5ae3d3d3260a42b25cc0b7cc9554b7_8c4193b7-d07a-436a-97d2-8f3a21537cd5.webp?v=1714839525"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53f835840b5ae3d3d3260a42b25cc0b7cc9554b7_8c4193b7-d07a-436a-97d2-8f3a21537cd5.webp?v=1714839525","width":2000},{"alt":null,"id":23885532364899,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0d14df096a1d7dba896e1e0200ad8adbabc6587_af2e7b09-acab-453d-ba7a-6a7c82eec28e.webp?v=1714839528"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0d14df096a1d7dba896e1e0200ad8adbabc6587_af2e7b09-acab-453d-ba7a-6a7c82eec28e.webp?v=1714839528","width":2000},{"alt":null,"id":23885532790883,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49abe55ab090e40f1c78c151e6fdb2b6efc7b9ed_3d60ec15-5e0b-4fed-bee8-7762e58a0c3c.webp?v=1714839531"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49abe55ab090e40f1c78c151e6fdb2b6efc7b9ed_3d60ec15-5e0b-4fed-bee8-7762e58a0c3c.webp?v=1714839531","width":2000},{"alt":null,"id":23885533479011,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/078075516d5262a63c61fc223a43c1132a917495_a5f7219b-cfe2-4560-ad6e-8ddc1944ed19.webp?v=1714839534"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/078075516d5262a63c61fc223a43c1132a917495_a5f7219b-cfe2-4560-ad6e-8ddc1944ed19.webp?v=1714839534","width":2000},{"alt":null,"id":23885533872227,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c28a2c0cb983296b1b591a9564e6c83e77f48a50_51cddc7e-d3b6-44fc-a717-a5a461e37e88.webp?v=1714839536"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c28a2c0cb983296b1b591a9564e6c83e77f48a50_51cddc7e-d3b6-44fc-a717-a5a461e37e88.webp?v=1714839536","width":2000},{"alt":null,"id":23885534462051,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31bee5a3e3ae48461832e11e8d2c0012de10c531_aa88759b-5e3d-4a88-bd8d-838078b08b11.webp?v=1714839539"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31bee5a3e3ae48461832e11e8d2c0012de10c531_aa88759b-5e3d-4a88-bd8d-838078b08b11.webp?v=1714839539","width":2000},{"alt":null,"id":23885535051875,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bfc703955c1bcfd7ee7550561b229b4addb7b36_bfeedd85-72ec-438b-a4d0-cdc099b426fc.webp?v=1714839541"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bfc703955c1bcfd7ee7550561b229b4addb7b36_bfeedd85-72ec-438b-a4d0-cdc099b426fc.webp?v=1714839541","width":2000},{"alt":null,"id":23885535740003,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa65565e86d2e9923b29c678e2669a654444eee0_85939295-7257-4d57-805e-e2a4b271930b.webp?v=1714839544"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa65565e86d2e9923b29c678e2669a654444eee0_85939295-7257-4d57-805e-e2a4b271930b.webp?v=1714839544","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41898159243363,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB83","requires_shipping":true,"taxable":true,"featured_image":{"id":31480281464931,"product_id":7411380486243,"position":5,"created_at":"2024-05-05T00:18:51+08:00","updated_at":"2024-05-05T00:18:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49abe55ab090e40f1c78c151e6fdb2b6efc7b9ed_3d60ec15-5e0b-4fed-bee8-7762e58a0c3c.webp?v=1714839531","variant_ids":[41898159243363]},"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-PB83","featured_media":{"alt":null,"id":23885532790883,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49abe55ab090e40f1c78c151e6fdb2b6efc7b9ed_3d60ec15-5e0b-4fed-bee8-7762e58a0c3c.webp?v=1714839531"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898159308899,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB83","requires_shipping":true,"taxable":true,"featured_image":{"id":31480282153059,"product_id":7411380486243,"position":6,"created_at":"2024-05-05T00:18:54+08:00","updated_at":"2024-05-05T00:18:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/078075516d5262a63c61fc223a43c1132a917495_a5f7219b-cfe2-4560-ad6e-8ddc1944ed19.webp?v=1714839534","variant_ids":[41898159308899]},"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-PB83","featured_media":{"alt":null,"id":23885533479011,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/078075516d5262a63c61fc223a43c1132a917495_a5f7219b-cfe2-4560-ad6e-8ddc1944ed19.webp?v=1714839534"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898159571043,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB83","requires_shipping":true,"taxable":true,"featured_image":{"id":31480279597155,"product_id":7411380486243,"position":2,"created_at":"2024-05-05T00:18:43+08:00","updated_at":"2024-05-05T00:18:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bea7470973f04e2fc82ca647573ebc9355e96f62_7c42dc87-9622-4b41-b568-262e27178e94.webp?v=1714839523","variant_ids":[41898159571043]},"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-PB83","featured_media":{"alt":null,"id":23885530955875,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bea7470973f04e2fc82ca647573ebc9355e96f62_7c42dc87-9622-4b41-b568-262e27178e94.webp?v=1714839523"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41898159243363,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB83","requires_shipping":true,"taxable":true,"featured_image":{"id":31480281464931,"product_id":7411380486243,"position":5,"created_at":"2024-05-05T00:18:51+08:00","updated_at":"2024-05-05T00:18:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49abe55ab090e40f1c78c151e6fdb2b6efc7b9ed_3d60ec15-5e0b-4fed-bee8-7762e58a0c3c.webp?v=1714839531","variant_ids":[41898159243363]},"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-PB83","featured_media":{"alt":null,"id":23885532790883,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49abe55ab090e40f1c78c151e6fdb2b6efc7b9ed_3d60ec15-5e0b-4fed-bee8-7762e58a0c3c.webp?v=1714839531"}},"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: "停產"
}