$product = {"id":7411454410851,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 黑武士-溜溜球炫技-幽默系列","handle":"iphone-14-pro-mod-nx-magsafe-printable-pc11","description":null,"published_at":"2024-06-11T17:45:28+08:00","created_at":"2024-05-05T00:32:57+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":41899100569699,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PC11","requires_shipping":true,"taxable":true,"featured_image":{"id":31480465522787,"product_id":7411454410851,"position":4,"created_at":"2024-05-05T00:33:06+08:00","updated_at":"2024-05-05T00:33:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef53575fe43df16f56584e10e95177f3c3fe0582_0bad7f92-d470-48e2-9245-c1d7c92d41a6.webp?v=1714840386","variant_ids":[41899100569699]},"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-PC11","featured_media":{"alt":null,"id":23885717307491,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef53575fe43df16f56584e10e95177f3c3fe0582_0bad7f92-d470-48e2-9245-c1d7c92d41a6.webp?v=1714840386"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41899100635235,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PC11","requires_shipping":true,"taxable":true,"featured_image":{"id":31480467980387,"product_id":7411454410851,"position":10,"created_at":"2024-05-05T00:33:19+08:00","updated_at":"2024-05-05T00:33:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bcdd3504f6be1ad1217b9994968788c9e69e562_3479af67-8c3e-4861-ae05-39feb7b04fe5.webp?v=1714840399","variant_ids":[41899100635235]},"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-PC11","featured_media":{"alt":null,"id":23885719765091,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bcdd3504f6be1ad1217b9994968788c9e69e562_3479af67-8c3e-4861-ae05-39feb7b04fe5.webp?v=1714840399"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41899100864611,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PC11","requires_shipping":true,"taxable":true,"featured_image":{"id":31480466505827,"product_id":7411454410851,"position":6,"created_at":"2024-05-05T00:33:10+08:00","updated_at":"2024-05-05T00:33:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba81ee2606f86dd99285817ce037969f07516417_346e9ef2-355c-41e8-838e-a0698b4e6f91.webp?v=1714840390","variant_ids":[41899100864611]},"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-PC11","featured_media":{"alt":null,"id":23885718290531,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba81ee2606f86dd99285817ce037969f07516417_346e9ef2-355c-41e8-838e-a0698b4e6f91.webp?v=1714840390"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d7a9589f954df4efb2dfc3a7ddeb1c3a3256c9e_3bdca7a3-8799-4b30-8175-75155415ff6a.webp?v=1714840379","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d053dffce9069f5e5df6384c2f8a09cc93f8b1f_c04fd37a-9fe1-423c-95e5-d5516a526c4e.webp?v=1714840381","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e487a556178da59bb061e58596f386defa7e0376_d6903309-44df-495a-88ad-cf816306aff7.webp?v=1714840384","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef53575fe43df16f56584e10e95177f3c3fe0582_0bad7f92-d470-48e2-9245-c1d7c92d41a6.webp?v=1714840386","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e5a38a4fe4e2cd34c37200fecbf4b18dafd6aa3_262ad24b-74d1-49b4-90fa-82f000d44203.webp?v=1714840388","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba81ee2606f86dd99285817ce037969f07516417_346e9ef2-355c-41e8-838e-a0698b4e6f91.webp?v=1714840390","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff4b4bb813e7b1755c6117af94e6b29a8980aec8_3ca1442d-1da5-4154-b54c-0d40f3932cdb.webp?v=1714840392","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77ad9fe6925c658e08c09bc2b104cd9c12a21838_e53f0044-9a55-41be-8fe0-1486cd35d711.webp?v=1714840395","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39772c2c0d9a8557fea40f19f4700c64826afd32_38e6becd-ecf6-4d69-98d5-97383b1f6bc3.webp?v=1714840397","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bcdd3504f6be1ad1217b9994968788c9e69e562_3479af67-8c3e-4861-ae05-39feb7b04fe5.webp?v=1714840399"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d7a9589f954df4efb2dfc3a7ddeb1c3a3256c9e_3bdca7a3-8799-4b30-8175-75155415ff6a.webp?v=1714840379","options":["color"],"media":[{"alt":null,"id":23885715800163,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d7a9589f954df4efb2dfc3a7ddeb1c3a3256c9e_3bdca7a3-8799-4b30-8175-75155415ff6a.webp?v=1714840379"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d7a9589f954df4efb2dfc3a7ddeb1c3a3256c9e_3bdca7a3-8799-4b30-8175-75155415ff6a.webp?v=1714840379","width":2000},{"alt":null,"id":23885716422755,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d053dffce9069f5e5df6384c2f8a09cc93f8b1f_c04fd37a-9fe1-423c-95e5-d5516a526c4e.webp?v=1714840381"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d053dffce9069f5e5df6384c2f8a09cc93f8b1f_c04fd37a-9fe1-423c-95e5-d5516a526c4e.webp?v=1714840381","width":2000},{"alt":null,"id":23885716848739,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e487a556178da59bb061e58596f386defa7e0376_d6903309-44df-495a-88ad-cf816306aff7.webp?v=1714840384"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e487a556178da59bb061e58596f386defa7e0376_d6903309-44df-495a-88ad-cf816306aff7.webp?v=1714840384","width":2000},{"alt":null,"id":23885717307491,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef53575fe43df16f56584e10e95177f3c3fe0582_0bad7f92-d470-48e2-9245-c1d7c92d41a6.webp?v=1714840386"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef53575fe43df16f56584e10e95177f3c3fe0582_0bad7f92-d470-48e2-9245-c1d7c92d41a6.webp?v=1714840386","width":2000},{"alt":null,"id":23885717667939,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e5a38a4fe4e2cd34c37200fecbf4b18dafd6aa3_262ad24b-74d1-49b4-90fa-82f000d44203.webp?v=1714840388"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e5a38a4fe4e2cd34c37200fecbf4b18dafd6aa3_262ad24b-74d1-49b4-90fa-82f000d44203.webp?v=1714840388","width":2000},{"alt":null,"id":23885718290531,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba81ee2606f86dd99285817ce037969f07516417_346e9ef2-355c-41e8-838e-a0698b4e6f91.webp?v=1714840390"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba81ee2606f86dd99285817ce037969f07516417_346e9ef2-355c-41e8-838e-a0698b4e6f91.webp?v=1714840390","width":2000},{"alt":null,"id":23885718650979,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff4b4bb813e7b1755c6117af94e6b29a8980aec8_3ca1442d-1da5-4154-b54c-0d40f3932cdb.webp?v=1714840392"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff4b4bb813e7b1755c6117af94e6b29a8980aec8_3ca1442d-1da5-4154-b54c-0d40f3932cdb.webp?v=1714840392","width":2000},{"alt":null,"id":23885719109731,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77ad9fe6925c658e08c09bc2b104cd9c12a21838_e53f0044-9a55-41be-8fe0-1486cd35d711.webp?v=1714840395"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77ad9fe6925c658e08c09bc2b104cd9c12a21838_e53f0044-9a55-41be-8fe0-1486cd35d711.webp?v=1714840395","width":2000},{"alt":null,"id":23885719535715,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39772c2c0d9a8557fea40f19f4700c64826afd32_38e6becd-ecf6-4d69-98d5-97383b1f6bc3.webp?v=1714840397"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39772c2c0d9a8557fea40f19f4700c64826afd32_38e6becd-ecf6-4d69-98d5-97383b1f6bc3.webp?v=1714840397","width":2000},{"alt":null,"id":23885719765091,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bcdd3504f6be1ad1217b9994968788c9e69e562_3479af67-8c3e-4861-ae05-39feb7b04fe5.webp?v=1714840399"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bcdd3504f6be1ad1217b9994968788c9e69e562_3479af67-8c3e-4861-ae05-39feb7b04fe5.webp?v=1714840399","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41899100569699,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PC11","requires_shipping":true,"taxable":true,"featured_image":{"id":31480465522787,"product_id":7411454410851,"position":4,"created_at":"2024-05-05T00:33:06+08:00","updated_at":"2024-05-05T00:33:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef53575fe43df16f56584e10e95177f3c3fe0582_0bad7f92-d470-48e2-9245-c1d7c92d41a6.webp?v=1714840386","variant_ids":[41899100569699]},"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-PC11","featured_media":{"alt":null,"id":23885717307491,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef53575fe43df16f56584e10e95177f3c3fe0582_0bad7f92-d470-48e2-9245-c1d7c92d41a6.webp?v=1714840386"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41899100635235,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PC11","requires_shipping":true,"taxable":true,"featured_image":{"id":31480467980387,"product_id":7411454410851,"position":10,"created_at":"2024-05-05T00:33:19+08:00","updated_at":"2024-05-05T00:33:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bcdd3504f6be1ad1217b9994968788c9e69e562_3479af67-8c3e-4861-ae05-39feb7b04fe5.webp?v=1714840399","variant_ids":[41899100635235]},"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-PC11","featured_media":{"alt":null,"id":23885719765091,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bcdd3504f6be1ad1217b9994968788c9e69e562_3479af67-8c3e-4861-ae05-39feb7b04fe5.webp?v=1714840399"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41899100864611,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PC11","requires_shipping":true,"taxable":true,"featured_image":{"id":31480466505827,"product_id":7411454410851,"position":6,"created_at":"2024-05-05T00:33:10+08:00","updated_at":"2024-05-05T00:33:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba81ee2606f86dd99285817ce037969f07516417_346e9ef2-355c-41e8-838e-a0698b4e6f91.webp?v=1714840390","variant_ids":[41899100864611]},"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-PC11","featured_media":{"alt":null,"id":23885718290531,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba81ee2606f86dd99285817ce037969f07516417_346e9ef2-355c-41e8-838e-a0698b4e6f91.webp?v=1714840390"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41899100569699,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PC11","requires_shipping":true,"taxable":true,"featured_image":{"id":31480465522787,"product_id":7411454410851,"position":4,"created_at":"2024-05-05T00:33:06+08:00","updated_at":"2024-05-05T00:33:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef53575fe43df16f56584e10e95177f3c3fe0582_0bad7f92-d470-48e2-9245-c1d7c92d41a6.webp?v=1714840386","variant_ids":[41899100569699]},"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-PC11","featured_media":{"alt":null,"id":23885717307491,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef53575fe43df16f56584e10e95177f3c3fe0582_0bad7f92-d470-48e2-9245-c1d7c92d41a6.webp?v=1714840386"}},"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: "停產"
}