$product = {"id":7823845851235,"title":"iPhone 15 Pro Max SolidX 太空 機密","handle":"iphone-15-pro-max-solidx-xk21","description":null,"published_at":"2025-07-01T19:08:15+08:00","created_at":"2025-06-20T10:31:52+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-nasa","device-iPhone 15 Pro Max","merge","reseller-nasa"],"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":43473610965091,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129852-XK21","requires_shipping":true,"taxable":true,"featured_image":{"id":36480791707747,"product_id":7823845851235,"position":17,"created_at":"2026-08-04T19:14:18+08:00","updated_at":"2026-08-04T19:14:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ea69dfee0f60662b26cb47385efa8dfc51ac7d3_6c437ede-8d87-4a50-93bf-b0359bea4d30.webp?v=1785842060","variant_ids":[43473610965091]},"available":true,"name":"iPhone 15 Pro Max SolidX 太空 機密 - 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-XK21","featured_media":{"alt":null,"id":27984110551139,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ea69dfee0f60662b26cb47385efa8dfc51ac7d3_6c437ede-8d87-4a50-93bf-b0359bea4d30.webp?v=1785842060"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43473615093859,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NST0129853-XK21","requires_shipping":true,"taxable":true,"featured_image":{"id":36480791117923,"product_id":7823845851235,"position":15,"created_at":"2026-08-04T19:14:16+08:00","updated_at":"2026-08-04T19:14:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c47cd228980af26f13ad0ac91da1af399796664_6292fcdd-8c80-4d88-aac3-c4162be54472.webp?v=1785842059","variant_ids":[43473615093859]},"available":true,"name":"iPhone 15 Pro Max SolidX 太空 機密 - 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-XK21","featured_media":{"alt":null,"id":27984109994083,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c47cd228980af26f13ad0ac91da1af399796664_6292fcdd-8c80-4d88-aac3-c4162be54472.webp?v=1785842059"}},"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-XK21_7f2117ca-7c3a-433e-bef2-21a68382a549.png?v=1750386715","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-XK21_ff63cce5-5473-4142-ac0f-9e55fb1ab0f4.png?v=1750832227","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d67a831aa0a48ce93c2e07f62c8dfc01d4d2b6a.webp?v=1783997449","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c47cd228980af26f13ad0ac91da1af399796664.webp?v=1783997450","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3a81d588ecbb7def1a800bb40556b29e73c6893.webp?v=1783997451","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47e317eb4e8a424b27c6660810d34883535cf87a.webp?v=1783997452","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ea69dfee0f60662b26cb47385efa8dfc51ac7d3.webp?v=1783997452","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d67a831aa0a48ce93c2e07f62c8dfc01d4d2b6a_191a2049-7d69-4639-ba90-0d775196be74.webp?v=1785840148","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3a81d588ecbb7def1a800bb40556b29e73c6893_051a0cc8-cdc2-4490-8909-0ee6db2e6ea0.webp?v=1785840150","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c47cd228980af26f13ad0ac91da1af399796664_2687686c-3982-4a97-9024-3d60c97685e0.webp?v=1785840152","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47e317eb4e8a424b27c6660810d34883535cf87a_0720cd0f-4b08-4454-a0df-93cfd4b1b154.webp?v=1785840154","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ea69dfee0f60662b26cb47385efa8dfc51ac7d3_3e298733-f507-4f40-8c17-171dcf6cff60.webp?v=1785840155","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d67a831aa0a48ce93c2e07f62c8dfc01d4d2b6a_4eb619db-9ef0-42de-a169-0c871a5ac0f4.webp?v=1785842056","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3a81d588ecbb7def1a800bb40556b29e73c6893_b4b769e4-bc09-43d1-9c7b-ad858bcd0bd6.webp?v=1785842058","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c47cd228980af26f13ad0ac91da1af399796664_6292fcdd-8c80-4d88-aac3-c4162be54472.webp?v=1785842059","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47e317eb4e8a424b27c6660810d34883535cf87a_a9271c6b-bf5e-464d-8833-a3254573a569.webp?v=1785842059","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ea69dfee0f60662b26cb47385efa8dfc51ac7d3_6c437ede-8d87-4a50-93bf-b0359bea4d30.webp?v=1785842060"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-298-XK21_7f2117ca-7c3a-433e-bef2-21a68382a549.png?v=1750386715","options":["color"],"media":[{"alt":null,"id":25720417255523,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-298-XK21_7f2117ca-7c3a-433e-bef2-21a68382a549.png?v=1750386715"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-298-XK21_7f2117ca-7c3a-433e-bef2-21a68382a549.png?v=1750386715","width":2000},{"alt":null,"id":25736361115747,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-XK21_ff63cce5-5473-4142-ac0f-9e55fb1ab0f4.png?v=1750832227"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-XK21_ff63cce5-5473-4142-ac0f-9e55fb1ab0f4.png?v=1750832227","width":2000},{"alt":null,"id":27759556788323,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d67a831aa0a48ce93c2e07f62c8dfc01d4d2b6a.webp?v=1783997449"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d67a831aa0a48ce93c2e07f62c8dfc01d4d2b6a.webp?v=1783997449","width":2000},{"alt":null,"id":27759557214307,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c47cd228980af26f13ad0ac91da1af399796664.webp?v=1783997450"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c47cd228980af26f13ad0ac91da1af399796664.webp?v=1783997450","width":2000},{"alt":null,"id":27759557705827,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3a81d588ecbb7def1a800bb40556b29e73c6893.webp?v=1783997451"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3a81d588ecbb7def1a800bb40556b29e73c6893.webp?v=1783997451","width":2000},{"alt":null,"id":27759558000739,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47e317eb4e8a424b27c6660810d34883535cf87a.webp?v=1783997452"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47e317eb4e8a424b27c6660810d34883535cf87a.webp?v=1783997452","width":2000},{"alt":null,"id":27759558197347,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ea69dfee0f60662b26cb47385efa8dfc51ac7d3.webp?v=1783997452"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ea69dfee0f60662b26cb47385efa8dfc51ac7d3.webp?v=1783997452","width":2000},{"alt":null,"id":27983509913699,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d67a831aa0a48ce93c2e07f62c8dfc01d4d2b6a_191a2049-7d69-4639-ba90-0d775196be74.webp?v=1785840148"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d67a831aa0a48ce93c2e07f62c8dfc01d4d2b6a_191a2049-7d69-4639-ba90-0d775196be74.webp?v=1785840148","width":2000},{"alt":null,"id":27983510503523,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3a81d588ecbb7def1a800bb40556b29e73c6893_051a0cc8-cdc2-4490-8909-0ee6db2e6ea0.webp?v=1785840150"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3a81d588ecbb7def1a800bb40556b29e73c6893_051a0cc8-cdc2-4490-8909-0ee6db2e6ea0.webp?v=1785840150","width":2000},{"alt":null,"id":27983511322723,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c47cd228980af26f13ad0ac91da1af399796664_2687686c-3982-4a97-9024-3d60c97685e0.webp?v=1785840152"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c47cd228980af26f13ad0ac91da1af399796664_2687686c-3982-4a97-9024-3d60c97685e0.webp?v=1785840152","width":2000},{"alt":null,"id":27983512174691,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47e317eb4e8a424b27c6660810d34883535cf87a_0720cd0f-4b08-4454-a0df-93cfd4b1b154.webp?v=1785840154"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47e317eb4e8a424b27c6660810d34883535cf87a_0720cd0f-4b08-4454-a0df-93cfd4b1b154.webp?v=1785840154","width":2000},{"alt":null,"id":27983512436835,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ea69dfee0f60662b26cb47385efa8dfc51ac7d3_3e298733-f507-4f40-8c17-171dcf6cff60.webp?v=1785840155"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ea69dfee0f60662b26cb47385efa8dfc51ac7d3_3e298733-f507-4f40-8c17-171dcf6cff60.webp?v=1785840155","width":2000},{"alt":null,"id":27984109273187,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d67a831aa0a48ce93c2e07f62c8dfc01d4d2b6a_4eb619db-9ef0-42de-a169-0c871a5ac0f4.webp?v=1785842056"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d67a831aa0a48ce93c2e07f62c8dfc01d4d2b6a_4eb619db-9ef0-42de-a169-0c871a5ac0f4.webp?v=1785842056","width":2000},{"alt":null,"id":27984109764707,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3a81d588ecbb7def1a800bb40556b29e73c6893_b4b769e4-bc09-43d1-9c7b-ad858bcd0bd6.webp?v=1785842058"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3a81d588ecbb7def1a800bb40556b29e73c6893_b4b769e4-bc09-43d1-9c7b-ad858bcd0bd6.webp?v=1785842058","width":2000},{"alt":null,"id":27984109994083,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c47cd228980af26f13ad0ac91da1af399796664_6292fcdd-8c80-4d88-aac3-c4162be54472.webp?v=1785842059"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c47cd228980af26f13ad0ac91da1af399796664_6292fcdd-8c80-4d88-aac3-c4162be54472.webp?v=1785842059","width":2000},{"alt":null,"id":27984110288995,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47e317eb4e8a424b27c6660810d34883535cf87a_a9271c6b-bf5e-464d-8833-a3254573a569.webp?v=1785842059"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47e317eb4e8a424b27c6660810d34883535cf87a_a9271c6b-bf5e-464d-8833-a3254573a569.webp?v=1785842059","width":2000},{"alt":null,"id":27984110551139,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ea69dfee0f60662b26cb47385efa8dfc51ac7d3_6c437ede-8d87-4a50-93bf-b0359bea4d30.webp?v=1785842060"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ea69dfee0f60662b26cb47385efa8dfc51ac7d3_6c437ede-8d87-4a50-93bf-b0359bea4d30.webp?v=1785842060","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43473610965091,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129852-XK21","requires_shipping":true,"taxable":true,"featured_image":{"id":36480791707747,"product_id":7823845851235,"position":17,"created_at":"2026-08-04T19:14:18+08:00","updated_at":"2026-08-04T19:14:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ea69dfee0f60662b26cb47385efa8dfc51ac7d3_6c437ede-8d87-4a50-93bf-b0359bea4d30.webp?v=1785842060","variant_ids":[43473610965091]},"available":true,"name":"iPhone 15 Pro Max SolidX 太空 機密 - 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-XK21","featured_media":{"alt":null,"id":27984110551139,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ea69dfee0f60662b26cb47385efa8dfc51ac7d3_6c437ede-8d87-4a50-93bf-b0359bea4d30.webp?v=1785842060"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43473615093859,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NST0129853-XK21","requires_shipping":true,"taxable":true,"featured_image":{"id":36480791117923,"product_id":7823845851235,"position":15,"created_at":"2026-08-04T19:14:16+08:00","updated_at":"2026-08-04T19:14:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c47cd228980af26f13ad0ac91da1af399796664_6292fcdd-8c80-4d88-aac3-c4162be54472.webp?v=1785842059","variant_ids":[43473615093859]},"available":true,"name":"iPhone 15 Pro Max SolidX 太空 機密 - 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-XK21","featured_media":{"alt":null,"id":27984109994083,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c47cd228980af26f13ad0ac91da1af399796664_6292fcdd-8c80-4d88-aac3-c4162be54472.webp?v=1785842059"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43473610965091,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129852-XK21","requires_shipping":true,"taxable":true,"featured_image":{"id":36480791707747,"product_id":7823845851235,"position":17,"created_at":"2026-08-04T19:14:18+08:00","updated_at":"2026-08-04T19:14:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ea69dfee0f60662b26cb47385efa8dfc51ac7d3_6c437ede-8d87-4a50-93bf-b0359bea4d30.webp?v=1785842060","variant_ids":[43473610965091]},"available":true,"name":"iPhone 15 Pro Max SolidX 太空 機密 - 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-XK21","featured_media":{"alt":null,"id":27984110551139,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ea69dfee0f60662b26cb47385efa8dfc51ac7d3_6c437ede-8d87-4a50-93bf-b0359bea4d30.webp?v=1785842060"}},"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: "停產"
}