$product = {"id":7408141664355,"title":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章2-潮流系列","handle":"iphone-13-mini-mod-nx-printable-pb47","description":null,"published_at":"2024-06-11T16:32:31+08:00","created_at":"2024-05-03T12:08:07+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 13 mini","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-star-wars","Top50","type-Mod NX Printable"],"price":90000,"price_min":90000,"price_max":90000,"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":41883144093795,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB47","requires_shipping":true,"taxable":true,"featured_image":{"id":31471304179811,"product_id":7408141664355,"position":10,"created_at":"2024-05-03T12:08:31+08:00","updated_at":"2024-05-03T12:08:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b7450e3ac2b4bc3f3e082d3d1353e9bc93b7d2a_4de73af1-6342-45e1-8f7e-0e516456f56b.webp?v=1714709311","variant_ids":[41883144093795]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章2-潮流系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0122824-PB47","featured_media":{"alt":null,"id":23876209770595,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b7450e3ac2b4bc3f3e082d3d1353e9bc93b7d2a_4de73af1-6342-45e1-8f7e-0e516456f56b.webp?v=1714709311"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883144224867,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB47","requires_shipping":true,"taxable":true,"featured_image":{"id":31471300345955,"product_id":7408141664355,"position":4,"created_at":"2024-05-03T12:08:17+08:00","updated_at":"2024-05-03T12:08:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ef5d576bfbe434a398eaf2bb2f12a4454d93a10_bfbe7c16-e779-4b96-8b10-56a514c84e8b.webp?v=1714709297","variant_ids":[41883144224867]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章2-潮流系列 - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0122804-PB47","featured_media":{"alt":null,"id":23876206035043,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ef5d576bfbe434a398eaf2bb2f12a4454d93a10_bfbe7c16-e779-4b96-8b10-56a514c84e8b.webp?v=1714709297"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883144683619,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB47","requires_shipping":true,"taxable":true,"featured_image":{"id":31471303786595,"product_id":7408141664355,"position":9,"created_at":"2024-05-03T12:08:29+08:00","updated_at":"2024-05-03T12:08:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be7602e92f435bb46f442e9ca0af0e2157cb9b37_c1207e83-bcf4-47f8-9278-ce8a4770ee55.webp?v=1714709309","variant_ids":[41883144683619]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章2-潮流系列 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01228J5-PB47","featured_media":{"alt":null,"id":23876209442915,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be7602e92f435bb46f442e9ca0af0e2157cb9b37_c1207e83-bcf4-47f8-9278-ce8a4770ee55.webp?v=1714709309"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1c999b3dbb79bca4e384a89bf320a4ede3e9c13_a9096709-0dc4-40e4-81de-0c7979f19881.webp?v=1714709290","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4dfcf4c63ca2f51829cbdea8bc1fb2d3c2923df7_01bf5250-22ef-4388-b1a6-651718638b65.webp?v=1714709292","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b86c2b942f28bfe74bc055c1a5987120fa756ca9_3a9fe615-3bc3-4bd5-8050-bceea5bf1e12.webp?v=1714709295","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ef5d576bfbe434a398eaf2bb2f12a4454d93a10_bfbe7c16-e779-4b96-8b10-56a514c84e8b.webp?v=1714709297","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/318ec9035f5dc4ab16428f15c7bd0b4633996273_e2a95959-ff69-4321-9e1e-36406d71a487.webp?v=1714709300","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc5379d4c08685721a17f9c365ff2bbe6edd4fcf_8e3b3a3a-78ec-44cd-a425-8d3bc5963e26.webp?v=1714709302","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9acc3548e5f30c29c283124d1f0db6b9336112db_694c099e-639e-45fb-803e-182bae9b6179.webp?v=1714709304","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6aa956fc361c75222a8fe9ef8c04888b645e9be_123b71d1-47c6-444e-92f9-c8209298dd9a.webp?v=1714709307","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be7602e92f435bb46f442e9ca0af0e2157cb9b37_c1207e83-bcf4-47f8-9278-ce8a4770ee55.webp?v=1714709309","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b7450e3ac2b4bc3f3e082d3d1353e9bc93b7d2a_4de73af1-6342-45e1-8f7e-0e516456f56b.webp?v=1714709311"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1c999b3dbb79bca4e384a89bf320a4ede3e9c13_a9096709-0dc4-40e4-81de-0c7979f19881.webp?v=1714709290","options":["color"],"media":[{"alt":null,"id":23876204757091,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1c999b3dbb79bca4e384a89bf320a4ede3e9c13_a9096709-0dc4-40e4-81de-0c7979f19881.webp?v=1714709290"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1c999b3dbb79bca4e384a89bf320a4ede3e9c13_a9096709-0dc4-40e4-81de-0c7979f19881.webp?v=1714709290","width":2000},{"alt":null,"id":23876205183075,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4dfcf4c63ca2f51829cbdea8bc1fb2d3c2923df7_01bf5250-22ef-4388-b1a6-651718638b65.webp?v=1714709292"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4dfcf4c63ca2f51829cbdea8bc1fb2d3c2923df7_01bf5250-22ef-4388-b1a6-651718638b65.webp?v=1714709292","width":2000},{"alt":null,"id":23876205576291,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b86c2b942f28bfe74bc055c1a5987120fa756ca9_3a9fe615-3bc3-4bd5-8050-bceea5bf1e12.webp?v=1714709295"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b86c2b942f28bfe74bc055c1a5987120fa756ca9_3a9fe615-3bc3-4bd5-8050-bceea5bf1e12.webp?v=1714709295","width":2000},{"alt":null,"id":23876206035043,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ef5d576bfbe434a398eaf2bb2f12a4454d93a10_bfbe7c16-e779-4b96-8b10-56a514c84e8b.webp?v=1714709297"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ef5d576bfbe434a398eaf2bb2f12a4454d93a10_bfbe7c16-e779-4b96-8b10-56a514c84e8b.webp?v=1714709297","width":2000},{"alt":null,"id":23876206559331,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/318ec9035f5dc4ab16428f15c7bd0b4633996273_e2a95959-ff69-4321-9e1e-36406d71a487.webp?v=1714709300"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/318ec9035f5dc4ab16428f15c7bd0b4633996273_e2a95959-ff69-4321-9e1e-36406d71a487.webp?v=1714709300","width":2000},{"alt":null,"id":23876206952547,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc5379d4c08685721a17f9c365ff2bbe6edd4fcf_8e3b3a3a-78ec-44cd-a425-8d3bc5963e26.webp?v=1714709302"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc5379d4c08685721a17f9c365ff2bbe6edd4fcf_8e3b3a3a-78ec-44cd-a425-8d3bc5963e26.webp?v=1714709302","width":2000},{"alt":null,"id":23876207509603,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9acc3548e5f30c29c283124d1f0db6b9336112db_694c099e-639e-45fb-803e-182bae9b6179.webp?v=1714709304"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9acc3548e5f30c29c283124d1f0db6b9336112db_694c099e-639e-45fb-803e-182bae9b6179.webp?v=1714709304","width":2000},{"alt":null,"id":23876208885859,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6aa956fc361c75222a8fe9ef8c04888b645e9be_123b71d1-47c6-444e-92f9-c8209298dd9a.webp?v=1714709307"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6aa956fc361c75222a8fe9ef8c04888b645e9be_123b71d1-47c6-444e-92f9-c8209298dd9a.webp?v=1714709307","width":2000},{"alt":null,"id":23876209442915,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be7602e92f435bb46f442e9ca0af0e2157cb9b37_c1207e83-bcf4-47f8-9278-ce8a4770ee55.webp?v=1714709309"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be7602e92f435bb46f442e9ca0af0e2157cb9b37_c1207e83-bcf4-47f8-9278-ce8a4770ee55.webp?v=1714709309","width":2000},{"alt":null,"id":23876209770595,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b7450e3ac2b4bc3f3e082d3d1353e9bc93b7d2a_4de73af1-6342-45e1-8f7e-0e516456f56b.webp?v=1714709311"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b7450e3ac2b4bc3f3e082d3d1353e9bc93b7d2a_4de73af1-6342-45e1-8f7e-0e516456f56b.webp?v=1714709311","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41883144093795,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB47","requires_shipping":true,"taxable":true,"featured_image":{"id":31471304179811,"product_id":7408141664355,"position":10,"created_at":"2024-05-03T12:08:31+08:00","updated_at":"2024-05-03T12:08:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b7450e3ac2b4bc3f3e082d3d1353e9bc93b7d2a_4de73af1-6342-45e1-8f7e-0e516456f56b.webp?v=1714709311","variant_ids":[41883144093795]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章2-潮流系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0122824-PB47","featured_media":{"alt":null,"id":23876209770595,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b7450e3ac2b4bc3f3e082d3d1353e9bc93b7d2a_4de73af1-6342-45e1-8f7e-0e516456f56b.webp?v=1714709311"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883144224867,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB47","requires_shipping":true,"taxable":true,"featured_image":{"id":31471300345955,"product_id":7408141664355,"position":4,"created_at":"2024-05-03T12:08:17+08:00","updated_at":"2024-05-03T12:08:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ef5d576bfbe434a398eaf2bb2f12a4454d93a10_bfbe7c16-e779-4b96-8b10-56a514c84e8b.webp?v=1714709297","variant_ids":[41883144224867]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章2-潮流系列 - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0122804-PB47","featured_media":{"alt":null,"id":23876206035043,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ef5d576bfbe434a398eaf2bb2f12a4454d93a10_bfbe7c16-e779-4b96-8b10-56a514c84e8b.webp?v=1714709297"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883144683619,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB47","requires_shipping":true,"taxable":true,"featured_image":{"id":31471303786595,"product_id":7408141664355,"position":9,"created_at":"2024-05-03T12:08:29+08:00","updated_at":"2024-05-03T12:08:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be7602e92f435bb46f442e9ca0af0e2157cb9b37_c1207e83-bcf4-47f8-9278-ce8a4770ee55.webp?v=1714709309","variant_ids":[41883144683619]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章2-潮流系列 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01228J5-PB47","featured_media":{"alt":null,"id":23876209442915,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be7602e92f435bb46f442e9ca0af0e2157cb9b37_c1207e83-bcf4-47f8-9278-ce8a4770ee55.webp?v=1714709309"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41883144093795,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB47","requires_shipping":true,"taxable":true,"featured_image":{"id":31471304179811,"product_id":7408141664355,"position":10,"created_at":"2024-05-03T12:08:31+08:00","updated_at":"2024-05-03T12:08:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b7450e3ac2b4bc3f3e082d3d1353e9bc93b7d2a_4de73af1-6342-45e1-8f7e-0e516456f56b.webp?v=1714709311","variant_ids":[41883144093795]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章2-潮流系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0122824-PB47","featured_media":{"alt":null,"id":23876209770595,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b7450e3ac2b4bc3f3e082d3d1353e9bc93b7d2a_4de73af1-6342-45e1-8f7e-0e516456f56b.webp?v=1714709311"}},"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: "停產"
}