$product = {"id":7411419381859,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 黑武士-園丁-幽默系列","handle":"iphone-14-pro-mod-nx-magsafe-printable-pc12","description":null,"published_at":"2024-06-11T17:44:29+08:00","created_at":"2024-05-05T00:26:12+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":41898650894435,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PC12","requires_shipping":true,"taxable":true,"featured_image":{"id":31480379244643,"product_id":7411419381859,"position":2,"created_at":"2024-05-05T00:26:17+08:00","updated_at":"2024-05-05T00:26:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c80b9070e3168a94a1243ecbb6e91cb69464f7f1_53fb5ea7-834a-4a3c-bdc8-1c1ef143b40a.webp?v=1714839977","variant_ids":[41898650894435]},"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-PC12","featured_media":{"alt":null,"id":23885630898275,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c80b9070e3168a94a1243ecbb6e91cb69464f7f1_53fb5ea7-834a-4a3c-bdc8-1c1ef143b40a.webp?v=1714839977"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898650959971,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PC12","requires_shipping":true,"taxable":true,"featured_image":{"id":31480379637859,"product_id":7411419381859,"position":3,"created_at":"2024-05-05T00:26:19+08:00","updated_at":"2024-05-05T00:26:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/187036bc29bc1081f24f8106d2cf71a60aa04c03_745a193d-d97a-471a-8f41-46a56e5162b3.webp?v=1714839979","variant_ids":[41898650959971]},"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-PC12","featured_media":{"alt":null,"id":23885631357027,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/187036bc29bc1081f24f8106d2cf71a60aa04c03_745a193d-d97a-471a-8f41-46a56e5162b3.webp?v=1714839979"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898651287651,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PC12","requires_shipping":true,"taxable":true,"featured_image":{"id":31480378785891,"product_id":7411419381859,"position":1,"created_at":"2024-05-05T00:26:14+08:00","updated_at":"2024-05-05T00:26:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1ccfc9b094f79d3902ab2751bca2b4548a1e74a_57f7a1aa-77b3-429d-9cfa-6bd0ca735d9d.webp?v=1714839974","variant_ids":[41898651287651]},"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-PC12","featured_media":{"alt":null,"id":23885630472291,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1ccfc9b094f79d3902ab2751bca2b4548a1e74a_57f7a1aa-77b3-429d-9cfa-6bd0ca735d9d.webp?v=1714839974"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1ccfc9b094f79d3902ab2751bca2b4548a1e74a_57f7a1aa-77b3-429d-9cfa-6bd0ca735d9d.webp?v=1714839974","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c80b9070e3168a94a1243ecbb6e91cb69464f7f1_53fb5ea7-834a-4a3c-bdc8-1c1ef143b40a.webp?v=1714839977","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/187036bc29bc1081f24f8106d2cf71a60aa04c03_745a193d-d97a-471a-8f41-46a56e5162b3.webp?v=1714839979","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06b2fd69a32c60a51f16a1acb432ef6f52802b6b_d1e812f6-2ebf-4585-b45f-dab44ca40c02.webp?v=1714839981","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10412646358e04f6e629cf05658af5b1151f1037_27762941-beb5-4716-943a-711e31312405.webp?v=1714839984","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09a69bee0d4fbc816fd0e8533fa26d931dd7bb48_19965730-1d06-41dd-b10e-68c350b2abd4.webp?v=1714839986","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f998d1b2fe27cf17dafba4aac5797e239f16f53e_79166429-1ecd-4130-b322-3433646d52fc.webp?v=1714839988","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/930635118089caf2375276ce2ddb24d63b2d09a2_80a6424d-8581-4b87-90ae-b8453dd6cbf4.webp?v=1714839991","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6e94f91289632af198fe3f3e1345bcee84bf0bd_e1893ad6-0768-4b5a-b47d-bb1027d6dab1.webp?v=1714839993","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ee8db128a5bc57a9904ef2d5aceac1eb946c737_6f96012a-da25-4f52-94a1-9c2f75e7f807.webp?v=1714839995"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1ccfc9b094f79d3902ab2751bca2b4548a1e74a_57f7a1aa-77b3-429d-9cfa-6bd0ca735d9d.webp?v=1714839974","options":["color"],"media":[{"alt":null,"id":23885630472291,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1ccfc9b094f79d3902ab2751bca2b4548a1e74a_57f7a1aa-77b3-429d-9cfa-6bd0ca735d9d.webp?v=1714839974"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1ccfc9b094f79d3902ab2751bca2b4548a1e74a_57f7a1aa-77b3-429d-9cfa-6bd0ca735d9d.webp?v=1714839974","width":2000},{"alt":null,"id":23885630898275,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c80b9070e3168a94a1243ecbb6e91cb69464f7f1_53fb5ea7-834a-4a3c-bdc8-1c1ef143b40a.webp?v=1714839977"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c80b9070e3168a94a1243ecbb6e91cb69464f7f1_53fb5ea7-834a-4a3c-bdc8-1c1ef143b40a.webp?v=1714839977","width":2000},{"alt":null,"id":23885631357027,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/187036bc29bc1081f24f8106d2cf71a60aa04c03_745a193d-d97a-471a-8f41-46a56e5162b3.webp?v=1714839979"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/187036bc29bc1081f24f8106d2cf71a60aa04c03_745a193d-d97a-471a-8f41-46a56e5162b3.webp?v=1714839979","width":2000},{"alt":null,"id":23885631783011,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06b2fd69a32c60a51f16a1acb432ef6f52802b6b_d1e812f6-2ebf-4585-b45f-dab44ca40c02.webp?v=1714839981"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06b2fd69a32c60a51f16a1acb432ef6f52802b6b_d1e812f6-2ebf-4585-b45f-dab44ca40c02.webp?v=1714839981","width":2000},{"alt":null,"id":23885632438371,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10412646358e04f6e629cf05658af5b1151f1037_27762941-beb5-4716-943a-711e31312405.webp?v=1714839984"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10412646358e04f6e629cf05658af5b1151f1037_27762941-beb5-4716-943a-711e31312405.webp?v=1714839984","width":2000},{"alt":null,"id":23885632864355,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09a69bee0d4fbc816fd0e8533fa26d931dd7bb48_19965730-1d06-41dd-b10e-68c350b2abd4.webp?v=1714839986"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09a69bee0d4fbc816fd0e8533fa26d931dd7bb48_19965730-1d06-41dd-b10e-68c350b2abd4.webp?v=1714839986","width":2000},{"alt":null,"id":23885633290339,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f998d1b2fe27cf17dafba4aac5797e239f16f53e_79166429-1ecd-4130-b322-3433646d52fc.webp?v=1714839988"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f998d1b2fe27cf17dafba4aac5797e239f16f53e_79166429-1ecd-4130-b322-3433646d52fc.webp?v=1714839988","width":2000},{"alt":null,"id":23885633814627,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/930635118089caf2375276ce2ddb24d63b2d09a2_80a6424d-8581-4b87-90ae-b8453dd6cbf4.webp?v=1714839991"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/930635118089caf2375276ce2ddb24d63b2d09a2_80a6424d-8581-4b87-90ae-b8453dd6cbf4.webp?v=1714839991","width":2000},{"alt":null,"id":23885634207843,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6e94f91289632af198fe3f3e1345bcee84bf0bd_e1893ad6-0768-4b5a-b47d-bb1027d6dab1.webp?v=1714839993"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6e94f91289632af198fe3f3e1345bcee84bf0bd_e1893ad6-0768-4b5a-b47d-bb1027d6dab1.webp?v=1714839993","width":2000},{"alt":null,"id":23885634764899,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ee8db128a5bc57a9904ef2d5aceac1eb946c737_6f96012a-da25-4f52-94a1-9c2f75e7f807.webp?v=1714839995"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ee8db128a5bc57a9904ef2d5aceac1eb946c737_6f96012a-da25-4f52-94a1-9c2f75e7f807.webp?v=1714839995","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41898650894435,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PC12","requires_shipping":true,"taxable":true,"featured_image":{"id":31480379244643,"product_id":7411419381859,"position":2,"created_at":"2024-05-05T00:26:17+08:00","updated_at":"2024-05-05T00:26:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c80b9070e3168a94a1243ecbb6e91cb69464f7f1_53fb5ea7-834a-4a3c-bdc8-1c1ef143b40a.webp?v=1714839977","variant_ids":[41898650894435]},"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-PC12","featured_media":{"alt":null,"id":23885630898275,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c80b9070e3168a94a1243ecbb6e91cb69464f7f1_53fb5ea7-834a-4a3c-bdc8-1c1ef143b40a.webp?v=1714839977"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898650959971,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PC12","requires_shipping":true,"taxable":true,"featured_image":{"id":31480379637859,"product_id":7411419381859,"position":3,"created_at":"2024-05-05T00:26:19+08:00","updated_at":"2024-05-05T00:26:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/187036bc29bc1081f24f8106d2cf71a60aa04c03_745a193d-d97a-471a-8f41-46a56e5162b3.webp?v=1714839979","variant_ids":[41898650959971]},"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-PC12","featured_media":{"alt":null,"id":23885631357027,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/187036bc29bc1081f24f8106d2cf71a60aa04c03_745a193d-d97a-471a-8f41-46a56e5162b3.webp?v=1714839979"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898651287651,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PC12","requires_shipping":true,"taxable":true,"featured_image":{"id":31480378785891,"product_id":7411419381859,"position":1,"created_at":"2024-05-05T00:26:14+08:00","updated_at":"2024-05-05T00:26:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1ccfc9b094f79d3902ab2751bca2b4548a1e74a_57f7a1aa-77b3-429d-9cfa-6bd0ca735d9d.webp?v=1714839974","variant_ids":[41898651287651]},"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-PC12","featured_media":{"alt":null,"id":23885630472291,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1ccfc9b094f79d3902ab2751bca2b4548a1e74a_57f7a1aa-77b3-429d-9cfa-6bd0ca735d9d.webp?v=1714839974"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41898650894435,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PC12","requires_shipping":true,"taxable":true,"featured_image":{"id":31480379244643,"product_id":7411419381859,"position":2,"created_at":"2024-05-05T00:26:17+08:00","updated_at":"2024-05-05T00:26:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c80b9070e3168a94a1243ecbb6e91cb69464f7f1_53fb5ea7-834a-4a3c-bdc8-1c1ef143b40a.webp?v=1714839977","variant_ids":[41898650894435]},"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-PC12","featured_media":{"alt":null,"id":23885630898275,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c80b9070e3168a94a1243ecbb6e91cb69464f7f1_53fb5ea7-834a-4a3c-bdc8-1c1ef143b40a.webp?v=1714839977"}},"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: "停產"
}