$product = {"id":7411232145507,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 波巴費特-線稿風格白","handle":"iphone-14-pro-mod-nx-magsafe-printable-pb52","description":null,"published_at":"2024-06-11T17:39:26+08:00","created_at":"2024-05-04T23:50:10+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":41896300937315,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB52","requires_shipping":true,"taxable":true,"featured_image":{"id":31479916396643,"product_id":7411232145507,"position":8,"created_at":"2024-05-04T23:50:29+08:00","updated_at":"2024-05-04T23:50:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfeb03881dc9212a2b7dce018eb6e139f2b9bbd6_515af4f4-2ef6-4b2c-82ae-56d896ff8bb1.webp?v=1714837829","variant_ids":[41896300937315]},"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-PB52","featured_media":{"alt":null,"id":23885166805091,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfeb03881dc9212a2b7dce018eb6e139f2b9bbd6_515af4f4-2ef6-4b2c-82ae-56d896ff8bb1.webp?v=1714837829"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41896301101155,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB52","requires_shipping":true,"taxable":true,"featured_image":{"id":31479912497251,"product_id":7411232145507,"position":1,"created_at":"2024-05-04T23:50:13+08:00","updated_at":"2024-05-04T23:50:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a50efda1975b68bf888a3dc8306be304908261b_c504c3a0-3f5a-4e3b-b9f7-88c245cf4478.webp?v=1714837813","variant_ids":[41896301101155]},"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-PB52","featured_media":{"alt":null,"id":23885162872931,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a50efda1975b68bf888a3dc8306be304908261b_c504c3a0-3f5a-4e3b-b9f7-88c245cf4478.webp?v=1714837813"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41896301527139,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB52","requires_shipping":true,"taxable":true,"featured_image":{"id":31479914201187,"product_id":7411232145507,"position":4,"created_at":"2024-05-04T23:50:20+08:00","updated_at":"2024-05-04T23:50:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a776de9b8cd032ec5a4d7bec05afe10420974a21_50e3e13e-dfe9-42e0-97b4-bf6b9fa3d9e5.webp?v=1714837820","variant_ids":[41896301527139]},"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-PB52","featured_media":{"alt":null,"id":23885164642403,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a776de9b8cd032ec5a4d7bec05afe10420974a21_50e3e13e-dfe9-42e0-97b4-bf6b9fa3d9e5.webp?v=1714837820"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a50efda1975b68bf888a3dc8306be304908261b_c504c3a0-3f5a-4e3b-b9f7-88c245cf4478.webp?v=1714837813","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09e1cdaffc3fc23d3590fbd89aa199880eeaa428_d246cba5-7719-4cb8-8bab-c22d290d0561.webp?v=1714837815","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/619f8b09a8aed8ff159e0cb024b30fe42b990b87_2e003c91-3e6b-4fbf-9229-9051904dfcbb.webp?v=1714837818","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a776de9b8cd032ec5a4d7bec05afe10420974a21_50e3e13e-dfe9-42e0-97b4-bf6b9fa3d9e5.webp?v=1714837820","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85f6bd2bb22d62b7e27df1dfe49867704b38282a_18e909aa-e117-45a4-9645-c711cfd0c434.webp?v=1714837822","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f3b874a75f25cd20cb6ba69145c9c9e9158a0cd_2b913736-693d-4ab5-a285-9b9428381aa6.webp?v=1714837824","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70371a951d31badd215eb1bea91cce1f214b0fa8_e1be4a48-9faf-4541-915c-ed6c2b509993.webp?v=1714837827","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfeb03881dc9212a2b7dce018eb6e139f2b9bbd6_515af4f4-2ef6-4b2c-82ae-56d896ff8bb1.webp?v=1714837829","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c76295cf5df02ecd65a54ea262bda0fad1af035_f6d95d68-616d-44e9-aa7b-77f1389d39a6.webp?v=1714837831","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73200dcab54dce9669bb39ef57e04f00e888d1de_a6fea793-4740-4f54-84bb-bcf82b3b1cc2.webp?v=1714837833"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a50efda1975b68bf888a3dc8306be304908261b_c504c3a0-3f5a-4e3b-b9f7-88c245cf4478.webp?v=1714837813","options":["color"],"media":[{"alt":null,"id":23885162872931,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a50efda1975b68bf888a3dc8306be304908261b_c504c3a0-3f5a-4e3b-b9f7-88c245cf4478.webp?v=1714837813"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a50efda1975b68bf888a3dc8306be304908261b_c504c3a0-3f5a-4e3b-b9f7-88c245cf4478.webp?v=1714837813","width":2000},{"alt":null,"id":23885163757667,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09e1cdaffc3fc23d3590fbd89aa199880eeaa428_d246cba5-7719-4cb8-8bab-c22d290d0561.webp?v=1714837815"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09e1cdaffc3fc23d3590fbd89aa199880eeaa428_d246cba5-7719-4cb8-8bab-c22d290d0561.webp?v=1714837815","width":2000},{"alt":null,"id":23885164085347,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/619f8b09a8aed8ff159e0cb024b30fe42b990b87_2e003c91-3e6b-4fbf-9229-9051904dfcbb.webp?v=1714837818"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/619f8b09a8aed8ff159e0cb024b30fe42b990b87_2e003c91-3e6b-4fbf-9229-9051904dfcbb.webp?v=1714837818","width":2000},{"alt":null,"id":23885164642403,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a776de9b8cd032ec5a4d7bec05afe10420974a21_50e3e13e-dfe9-42e0-97b4-bf6b9fa3d9e5.webp?v=1714837820"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a776de9b8cd032ec5a4d7bec05afe10420974a21_50e3e13e-dfe9-42e0-97b4-bf6b9fa3d9e5.webp?v=1714837820","width":2000},{"alt":null,"id":23885165101155,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85f6bd2bb22d62b7e27df1dfe49867704b38282a_18e909aa-e117-45a4-9645-c711cfd0c434.webp?v=1714837822"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85f6bd2bb22d62b7e27df1dfe49867704b38282a_18e909aa-e117-45a4-9645-c711cfd0c434.webp?v=1714837822","width":2000},{"alt":null,"id":23885165723747,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f3b874a75f25cd20cb6ba69145c9c9e9158a0cd_2b913736-693d-4ab5-a285-9b9428381aa6.webp?v=1714837824"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f3b874a75f25cd20cb6ba69145c9c9e9158a0cd_2b913736-693d-4ab5-a285-9b9428381aa6.webp?v=1714837824","width":2000},{"alt":null,"id":23885166248035,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70371a951d31badd215eb1bea91cce1f214b0fa8_e1be4a48-9faf-4541-915c-ed6c2b509993.webp?v=1714837827"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70371a951d31badd215eb1bea91cce1f214b0fa8_e1be4a48-9faf-4541-915c-ed6c2b509993.webp?v=1714837827","width":2000},{"alt":null,"id":23885166805091,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfeb03881dc9212a2b7dce018eb6e139f2b9bbd6_515af4f4-2ef6-4b2c-82ae-56d896ff8bb1.webp?v=1714837829"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfeb03881dc9212a2b7dce018eb6e139f2b9bbd6_515af4f4-2ef6-4b2c-82ae-56d896ff8bb1.webp?v=1714837829","width":2000},{"alt":null,"id":23885167263843,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c76295cf5df02ecd65a54ea262bda0fad1af035_f6d95d68-616d-44e9-aa7b-77f1389d39a6.webp?v=1714837831"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c76295cf5df02ecd65a54ea262bda0fad1af035_f6d95d68-616d-44e9-aa7b-77f1389d39a6.webp?v=1714837831","width":2000},{"alt":null,"id":23885167722595,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73200dcab54dce9669bb39ef57e04f00e888d1de_a6fea793-4740-4f54-84bb-bcf82b3b1cc2.webp?v=1714837833"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73200dcab54dce9669bb39ef57e04f00e888d1de_a6fea793-4740-4f54-84bb-bcf82b3b1cc2.webp?v=1714837833","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41896300937315,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB52","requires_shipping":true,"taxable":true,"featured_image":{"id":31479916396643,"product_id":7411232145507,"position":8,"created_at":"2024-05-04T23:50:29+08:00","updated_at":"2024-05-04T23:50:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfeb03881dc9212a2b7dce018eb6e139f2b9bbd6_515af4f4-2ef6-4b2c-82ae-56d896ff8bb1.webp?v=1714837829","variant_ids":[41896300937315]},"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-PB52","featured_media":{"alt":null,"id":23885166805091,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfeb03881dc9212a2b7dce018eb6e139f2b9bbd6_515af4f4-2ef6-4b2c-82ae-56d896ff8bb1.webp?v=1714837829"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41896301101155,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB52","requires_shipping":true,"taxable":true,"featured_image":{"id":31479912497251,"product_id":7411232145507,"position":1,"created_at":"2024-05-04T23:50:13+08:00","updated_at":"2024-05-04T23:50:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a50efda1975b68bf888a3dc8306be304908261b_c504c3a0-3f5a-4e3b-b9f7-88c245cf4478.webp?v=1714837813","variant_ids":[41896301101155]},"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-PB52","featured_media":{"alt":null,"id":23885162872931,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a50efda1975b68bf888a3dc8306be304908261b_c504c3a0-3f5a-4e3b-b9f7-88c245cf4478.webp?v=1714837813"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41896301527139,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB52","requires_shipping":true,"taxable":true,"featured_image":{"id":31479914201187,"product_id":7411232145507,"position":4,"created_at":"2024-05-04T23:50:20+08:00","updated_at":"2024-05-04T23:50:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a776de9b8cd032ec5a4d7bec05afe10420974a21_50e3e13e-dfe9-42e0-97b4-bf6b9fa3d9e5.webp?v=1714837820","variant_ids":[41896301527139]},"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-PB52","featured_media":{"alt":null,"id":23885164642403,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a776de9b8cd032ec5a4d7bec05afe10420974a21_50e3e13e-dfe9-42e0-97b4-bf6b9fa3d9e5.webp?v=1714837820"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41896300937315,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB52","requires_shipping":true,"taxable":true,"featured_image":{"id":31479916396643,"product_id":7411232145507,"position":8,"created_at":"2024-05-04T23:50:29+08:00","updated_at":"2024-05-04T23:50:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfeb03881dc9212a2b7dce018eb6e139f2b9bbd6_515af4f4-2ef6-4b2c-82ae-56d896ff8bb1.webp?v=1714837829","variant_ids":[41896300937315]},"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-PB52","featured_media":{"alt":null,"id":23885166805091,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfeb03881dc9212a2b7dce018eb6e139f2b9bbd6_515af4f4-2ef6-4b2c-82ae-56d896ff8bb1.webp?v=1714837829"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}};
$device_handle = null;
$type = "";
var sellingStatus
if ($isMerge) {
$(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: "停產"
}