$product = {"id":7823860301923,"title":"iPhone 15 Pro Max SolidX Discovery 繽紛世界","handle":"iphone-15-pro-max-solidx-ym14","description":null,"published_at":"2025-07-31T13:10:30+08:00","created_at":"2025-06-20T10:33:27+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-discovery","device-iPhone 15 Pro Max","merge","reseller-discovery"],"price":125000,"price_min":125000,"price_max":125000,"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":43473756520547,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129852-YM14","requires_shipping":true,"taxable":true,"featured_image":{"id":36142952644707,"product_id":7823860301923,"position":8,"created_at":"2026-07-01T13:22:26+08:00","updated_at":"2026-07-01T13:22:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10031221a3c7853ab5bb3dc3cdacb7fd91761f10.webp?v=1782883349","variant_ids":[43473756520547]},"available":true,"name":"iPhone 15 Pro Max SolidX Discovery 繽紛世界 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129852-YM14","featured_media":{"alt":null,"id":27647842812003,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10031221a3c7853ab5bb3dc3cdacb7fd91761f10.webp?v=1782883349"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43473761042531,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NST0129853-YM14","requires_shipping":true,"taxable":true,"featured_image":{"id":36142953365603,"product_id":7823860301923,"position":9,"created_at":"2026-07-01T13:22:27+08:00","updated_at":"2026-07-01T13:22:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04136b25d34ac5ea5d1d3609131e0ceca5f0e81b.webp?v=1782883349","variant_ids":[43473761042531]},"available":true,"name":"iPhone 15 Pro Max SolidX Discovery 繽紛世界 - White","public_title":"White","options":["White"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129853-YM14","featured_media":{"alt":null,"id":27647843532899,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04136b25d34ac5ea5d1d3609131e0ceca5f0e81b.webp?v=1782883349"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43473761140835,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"NST01298O8-YM14","requires_shipping":true,"taxable":true,"featured_image":{"id":36142952185955,"product_id":7823860301923,"position":7,"created_at":"2026-07-01T13:22:24+08:00","updated_at":"2026-07-01T13:22:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd2a52ef18937d38b24ab518956fb0d3d665cb59.webp?v=1782883346","variant_ids":[43473761140835]},"available":true,"name":"iPhone 15 Pro Max SolidX Discovery 繽紛世界 - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01298O8-YM14","featured_media":{"alt":null,"id":27647842353251,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd2a52ef18937d38b24ab518956fb0d3d665cb59.webp?v=1782883346"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43473761173603,"title":"Glacier Blue","option1":"Glacier Blue","option2":null,"option3":null,"sku":"NST01298Z7-YM14","requires_shipping":true,"taxable":true,"featured_image":{"id":36142951628899,"product_id":7823860301923,"position":5,"created_at":"2026-07-01T13:22:23+08:00","updated_at":"2026-07-01T13:22:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69689e76e9e2aa04f1e1e5648622c0b895928cc1.webp?v=1782883345","variant_ids":[43473761173603]},"available":true,"name":"iPhone 15 Pro Max SolidX Discovery 繽紛世界 - Glacier Blue","public_title":"Glacier Blue","options":["Glacier Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01298Z7-YM14","featured_media":{"alt":null,"id":27647841796195,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69689e76e9e2aa04f1e1e5648622c0b895928cc1.webp?v=1782883345"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43494214598755,"title":"Blush Pink","option1":"Blush Pink","option2":null,"option3":null,"sku":"NST0129857-YM14","requires_shipping":true,"taxable":true,"featured_image":{"id":36142951137379,"product_id":7823860301923,"position":4,"created_at":"2026-07-01T13:22:22+08:00","updated_at":"2026-07-01T13:22:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67c39e3620e057ec7fdd4a5c1793a9804eabdab4.webp?v=1782883344","variant_ids":[43494214598755]},"available":true,"name":"iPhone 15 Pro Max SolidX Discovery 繽紛世界 - Blush Pink","public_title":"Blush Pink","options":["Blush Pink"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129857-YM14","featured_media":{"alt":null,"id":27647841304675,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67c39e3620e057ec7fdd4a5c1793a9804eabdab4.webp?v=1782883344"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-298-YM14_c75514b7-e7a1-49c9-b3e2-18c8f81de702.png?v=1750386810","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-YM14_9bef4064-9a38-412a-ad5a-65b94cad53f9.png?v=1750831813","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acfae1852e7f47f8197211048305060cbfba5964.webp?v=1782883343","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67c39e3620e057ec7fdd4a5c1793a9804eabdab4.webp?v=1782883344","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69689e76e9e2aa04f1e1e5648622c0b895928cc1.webp?v=1782883345","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c09b797f38f278ebd196ca9d8689e53a4b5d0971.webp?v=1782883345","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd2a52ef18937d38b24ab518956fb0d3d665cb59.webp?v=1782883346","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10031221a3c7853ab5bb3dc3cdacb7fd91761f10.webp?v=1782883349","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04136b25d34ac5ea5d1d3609131e0ceca5f0e81b.webp?v=1782883349"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-298-YM14_c75514b7-e7a1-49c9-b3e2-18c8f81de702.png?v=1750386810","options":["color"],"media":[{"alt":null,"id":25720434163811,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-298-YM14_c75514b7-e7a1-49c9-b3e2-18c8f81de702.png?v=1750386810"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-298-YM14_c75514b7-e7a1-49c9-b3e2-18c8f81de702.png?v=1750386810","width":2000},{"alt":null,"id":25736267202659,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-YM14_9bef4064-9a38-412a-ad5a-65b94cad53f9.png?v=1750831813"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-YM14_9bef4064-9a38-412a-ad5a-65b94cad53f9.png?v=1750831813","width":2000},{"alt":null,"id":27647840878691,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acfae1852e7f47f8197211048305060cbfba5964.webp?v=1782883343"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acfae1852e7f47f8197211048305060cbfba5964.webp?v=1782883343","width":2000},{"alt":null,"id":27647841304675,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67c39e3620e057ec7fdd4a5c1793a9804eabdab4.webp?v=1782883344"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67c39e3620e057ec7fdd4a5c1793a9804eabdab4.webp?v=1782883344","width":2000},{"alt":null,"id":27647841796195,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69689e76e9e2aa04f1e1e5648622c0b895928cc1.webp?v=1782883345"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69689e76e9e2aa04f1e1e5648622c0b895928cc1.webp?v=1782883345","width":2000},{"alt":null,"id":27647842025571,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c09b797f38f278ebd196ca9d8689e53a4b5d0971.webp?v=1782883345"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c09b797f38f278ebd196ca9d8689e53a4b5d0971.webp?v=1782883345","width":2000},{"alt":null,"id":27647842353251,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd2a52ef18937d38b24ab518956fb0d3d665cb59.webp?v=1782883346"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd2a52ef18937d38b24ab518956fb0d3d665cb59.webp?v=1782883346","width":2000},{"alt":null,"id":27647842812003,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10031221a3c7853ab5bb3dc3cdacb7fd91761f10.webp?v=1782883349"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10031221a3c7853ab5bb3dc3cdacb7fd91761f10.webp?v=1782883349","width":2000},{"alt":null,"id":27647843532899,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04136b25d34ac5ea5d1d3609131e0ceca5f0e81b.webp?v=1782883349"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04136b25d34ac5ea5d1d3609131e0ceca5f0e81b.webp?v=1782883349","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43473756520547,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129852-YM14","requires_shipping":true,"taxable":true,"featured_image":{"id":36142952644707,"product_id":7823860301923,"position":8,"created_at":"2026-07-01T13:22:26+08:00","updated_at":"2026-07-01T13:22:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10031221a3c7853ab5bb3dc3cdacb7fd91761f10.webp?v=1782883349","variant_ids":[43473756520547]},"available":true,"name":"iPhone 15 Pro Max SolidX Discovery 繽紛世界 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129852-YM14","featured_media":{"alt":null,"id":27647842812003,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10031221a3c7853ab5bb3dc3cdacb7fd91761f10.webp?v=1782883349"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43473761042531,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NST0129853-YM14","requires_shipping":true,"taxable":true,"featured_image":{"id":36142953365603,"product_id":7823860301923,"position":9,"created_at":"2026-07-01T13:22:27+08:00","updated_at":"2026-07-01T13:22:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04136b25d34ac5ea5d1d3609131e0ceca5f0e81b.webp?v=1782883349","variant_ids":[43473761042531]},"available":true,"name":"iPhone 15 Pro Max SolidX Discovery 繽紛世界 - White","public_title":"White","options":["White"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129853-YM14","featured_media":{"alt":null,"id":27647843532899,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04136b25d34ac5ea5d1d3609131e0ceca5f0e81b.webp?v=1782883349"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43473761140835,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"NST01298O8-YM14","requires_shipping":true,"taxable":true,"featured_image":{"id":36142952185955,"product_id":7823860301923,"position":7,"created_at":"2026-07-01T13:22:24+08:00","updated_at":"2026-07-01T13:22:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd2a52ef18937d38b24ab518956fb0d3d665cb59.webp?v=1782883346","variant_ids":[43473761140835]},"available":true,"name":"iPhone 15 Pro Max SolidX Discovery 繽紛世界 - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01298O8-YM14","featured_media":{"alt":null,"id":27647842353251,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd2a52ef18937d38b24ab518956fb0d3d665cb59.webp?v=1782883346"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43473761173603,"title":"Glacier Blue","option1":"Glacier Blue","option2":null,"option3":null,"sku":"NST01298Z7-YM14","requires_shipping":true,"taxable":true,"featured_image":{"id":36142951628899,"product_id":7823860301923,"position":5,"created_at":"2026-07-01T13:22:23+08:00","updated_at":"2026-07-01T13:22:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69689e76e9e2aa04f1e1e5648622c0b895928cc1.webp?v=1782883345","variant_ids":[43473761173603]},"available":true,"name":"iPhone 15 Pro Max SolidX Discovery 繽紛世界 - Glacier Blue","public_title":"Glacier Blue","options":["Glacier Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01298Z7-YM14","featured_media":{"alt":null,"id":27647841796195,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69689e76e9e2aa04f1e1e5648622c0b895928cc1.webp?v=1782883345"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43494214598755,"title":"Blush Pink","option1":"Blush Pink","option2":null,"option3":null,"sku":"NST0129857-YM14","requires_shipping":true,"taxable":true,"featured_image":{"id":36142951137379,"product_id":7823860301923,"position":4,"created_at":"2026-07-01T13:22:22+08:00","updated_at":"2026-07-01T13:22:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67c39e3620e057ec7fdd4a5c1793a9804eabdab4.webp?v=1782883344","variant_ids":[43494214598755]},"available":true,"name":"iPhone 15 Pro Max SolidX Discovery 繽紛世界 - Blush Pink","public_title":"Blush Pink","options":["Blush Pink"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129857-YM14","featured_media":{"alt":null,"id":27647841304675,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67c39e3620e057ec7fdd4a5c1793a9804eabdab4.webp?v=1782883344"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43473756520547,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129852-YM14","requires_shipping":true,"taxable":true,"featured_image":{"id":36142952644707,"product_id":7823860301923,"position":8,"created_at":"2026-07-01T13:22:26+08:00","updated_at":"2026-07-01T13:22:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10031221a3c7853ab5bb3dc3cdacb7fd91761f10.webp?v=1782883349","variant_ids":[43473756520547]},"available":true,"name":"iPhone 15 Pro Max SolidX Discovery 繽紛世界 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129852-YM14","featured_media":{"alt":null,"id":27647842812003,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10031221a3c7853ab5bb3dc3cdacb7fd91761f10.webp?v=1782883349"}},"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: "停產"
}