$product = {"id":7931699069027,"title":"iPhone 17 Pro Mod NX -邊框背蓋組合 (相機按鈕) 產房 • 廢料棲息地 海獺與海膽","handle":"iphone-17-pro-mod-nx-with-capture-button-bir05","description":null,"published_at":"2026-01-27T14:08:26+08:00","created_at":"2025-11-28T11:48:12+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-everydayishappybirthday","device-iPhone 17 Pro","merge","reseller-everydayishappybirthday"],"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":43861603024995,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NXB01352J5-BIR05","requires_shipping":true,"taxable":true,"featured_image":{"id":36351914442851,"product_id":7931699069027,"position":14,"created_at":"2026-07-22T21:29:35+08:00","updated_at":"2026-07-22T21:29:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93038b34b734769c5b9ac670c574246cd36082bb_a8c303b1-90d6-443b-adb8-8d7529b00274.webp?v=1784726977","variant_ids":[43861603024995]},"available":true,"name":"iPhone 17 Pro Mod NX -邊框背蓋組合 (相機按鈕) 產房 • 廢料棲息地 海獺與海膽 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NXB01352J5-BIR05","featured_media":{"alt":null,"id":27855719727203,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93038b34b734769c5b9ac670c574246cd36082bb_a8c303b1-90d6-443b-adb8-8d7529b00274.webp?v=1784726977"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43861604892771,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"NXB0135269-BIR05","requires_shipping":true,"taxable":true,"featured_image":{"id":36351919063139,"product_id":7931699069027,"position":16,"created_at":"2026-07-22T21:29:38+08:00","updated_at":"2026-07-22T21:29:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a0ba497593d48cd5ac3ce6136bafe79fdc586dc_11bb58e1-8e98-4f2a-8f6a-75641943f1b1.webp?v=1784726980","variant_ids":[43861604892771]},"available":true,"name":"iPhone 17 Pro Mod NX -邊框背蓋組合 (相機按鈕) 產房 • 廢料棲息地 海獺與海膽 - Graphite","public_title":"Graphite","options":["Graphite"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NXB0135269-BIR05","featured_media":{"alt":null,"id":27855724249187,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a0ba497593d48cd5ac3ce6136bafe79fdc586dc_11bb58e1-8e98-4f2a-8f6a-75641943f1b1.webp?v=1784726980"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a0ba497593d48cd5ac3ce6136bafe79fdc586dc.webp?v=1764301698","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93038b34b734769c5b9ac670c574246cd36082bb.webp?v=1764301698","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eba1735db5ba997773a1d16d4970ce6c6b97be47.webp?v=1764301698","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80b20ed7dd61707f738a4ea460577aaf0196fe0c.webp?v=1764301699","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80b20ed7dd61707f738a4ea460577aaf0196fe0c_906dd332-612b-4e19-8621-b56a6ce3492c.webp?v=1784721802","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93038b34b734769c5b9ac670c574246cd36082bb_442567f1-0ac5-4bf6-a71d-2bf9b9700f00.webp?v=1784721804","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eba1735db5ba997773a1d16d4970ce6c6b97be47_5236656a-5d2d-497f-8c6d-df755939a1be.webp?v=1784721805","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a0ba497593d48cd5ac3ce6136bafe79fdc586dc_f2d132fc-921b-4466-89bf-a76c11fe8c57.webp?v=1784721806","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80b20ed7dd61707f738a4ea460577aaf0196fe0c_020caa53-b55c-4dc6-935b-00464b095e4f.webp?v=1784725913","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93038b34b734769c5b9ac670c574246cd36082bb_40d806b1-ae42-424a-a341-be6dcc8f1bc4.webp?v=1784725916","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eba1735db5ba997773a1d16d4970ce6c6b97be47_d38f35d1-a546-49c6-a260-bbec746393d1.webp?v=1784725918","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a0ba497593d48cd5ac3ce6136bafe79fdc586dc_3cc06568-fe4a-4380-bff6-6354f69ef377.webp?v=1784725920","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80b20ed7dd61707f738a4ea460577aaf0196fe0c_dd7daa41-911a-4ceb-b219-bfcc977b138a.webp?v=1784726955","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93038b34b734769c5b9ac670c574246cd36082bb_a8c303b1-90d6-443b-adb8-8d7529b00274.webp?v=1784726977","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eba1735db5ba997773a1d16d4970ce6c6b97be47_32b124df-900b-4cbe-a674-83b740e4a105.webp?v=1784726979","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a0ba497593d48cd5ac3ce6136bafe79fdc586dc_11bb58e1-8e98-4f2a-8f6a-75641943f1b1.webp?v=1784726980"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a0ba497593d48cd5ac3ce6136bafe79fdc586dc.webp?v=1764301698","options":["color"],"media":[{"alt":null,"id":26428394111075,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a0ba497593d48cd5ac3ce6136bafe79fdc586dc.webp?v=1764301698"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a0ba497593d48cd5ac3ce6136bafe79fdc586dc.webp?v=1764301698","width":2000},{"alt":null,"id":26428394209379,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93038b34b734769c5b9ac670c574246cd36082bb.webp?v=1764301698"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93038b34b734769c5b9ac670c574246cd36082bb.webp?v=1764301698","width":2000},{"alt":null,"id":26428394373219,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eba1735db5ba997773a1d16d4970ce6c6b97be47.webp?v=1764301698"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eba1735db5ba997773a1d16d4970ce6c6b97be47.webp?v=1764301698","width":2000},{"alt":null,"id":26428394471523,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80b20ed7dd61707f738a4ea460577aaf0196fe0c.webp?v=1764301699"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80b20ed7dd61707f738a4ea460577aaf0196fe0c.webp?v=1764301699","width":2000},{"alt":null,"id":27853897891939,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80b20ed7dd61707f738a4ea460577aaf0196fe0c_906dd332-612b-4e19-8621-b56a6ce3492c.webp?v=1784721802"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80b20ed7dd61707f738a4ea460577aaf0196fe0c_906dd332-612b-4e19-8621-b56a6ce3492c.webp?v=1784721802","width":2000},{"alt":null,"id":27853899399267,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93038b34b734769c5b9ac670c574246cd36082bb_442567f1-0ac5-4bf6-a71d-2bf9b9700f00.webp?v=1784721804"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93038b34b734769c5b9ac670c574246cd36082bb_442567f1-0ac5-4bf6-a71d-2bf9b9700f00.webp?v=1784721804","width":2000},{"alt":null,"id":27853900972131,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eba1735db5ba997773a1d16d4970ce6c6b97be47_5236656a-5d2d-497f-8c6d-df755939a1be.webp?v=1784721805"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eba1735db5ba997773a1d16d4970ce6c6b97be47_5236656a-5d2d-497f-8c6d-df755939a1be.webp?v=1784721805","width":2000},{"alt":null,"id":27853901987939,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a0ba497593d48cd5ac3ce6136bafe79fdc586dc_f2d132fc-921b-4466-89bf-a76c11fe8c57.webp?v=1784721806"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a0ba497593d48cd5ac3ce6136bafe79fdc586dc_f2d132fc-921b-4466-89bf-a76c11fe8c57.webp?v=1784721806","width":2000},{"alt":null,"id":27855160410211,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80b20ed7dd61707f738a4ea460577aaf0196fe0c_020caa53-b55c-4dc6-935b-00464b095e4f.webp?v=1784725913"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80b20ed7dd61707f738a4ea460577aaf0196fe0c_020caa53-b55c-4dc6-935b-00464b095e4f.webp?v=1784725913","width":2000},{"alt":null,"id":27855162474595,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93038b34b734769c5b9ac670c574246cd36082bb_40d806b1-ae42-424a-a341-be6dcc8f1bc4.webp?v=1784725916"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93038b34b734769c5b9ac670c574246cd36082bb_40d806b1-ae42-424a-a341-be6dcc8f1bc4.webp?v=1784725916","width":2000},{"alt":null,"id":27855164964963,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eba1735db5ba997773a1d16d4970ce6c6b97be47_d38f35d1-a546-49c6-a260-bbec746393d1.webp?v=1784725918"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eba1735db5ba997773a1d16d4970ce6c6b97be47_d38f35d1-a546-49c6-a260-bbec746393d1.webp?v=1784725918","width":2000},{"alt":null,"id":27855165522019,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a0ba497593d48cd5ac3ce6136bafe79fdc586dc_3cc06568-fe4a-4380-bff6-6354f69ef377.webp?v=1784725920"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a0ba497593d48cd5ac3ce6136bafe79fdc586dc_3cc06568-fe4a-4380-bff6-6354f69ef377.webp?v=1784725920","width":2000},{"alt":null,"id":27855713435747,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80b20ed7dd61707f738a4ea460577aaf0196fe0c_dd7daa41-911a-4ceb-b219-bfcc977b138a.webp?v=1784726955"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80b20ed7dd61707f738a4ea460577aaf0196fe0c_dd7daa41-911a-4ceb-b219-bfcc977b138a.webp?v=1784726955","width":2000},{"alt":null,"id":27855719727203,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93038b34b734769c5b9ac670c574246cd36082bb_a8c303b1-90d6-443b-adb8-8d7529b00274.webp?v=1784726977"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93038b34b734769c5b9ac670c574246cd36082bb_a8c303b1-90d6-443b-adb8-8d7529b00274.webp?v=1784726977","width":2000},{"alt":null,"id":27855721955427,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eba1735db5ba997773a1d16d4970ce6c6b97be47_32b124df-900b-4cbe-a674-83b740e4a105.webp?v=1784726979"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eba1735db5ba997773a1d16d4970ce6c6b97be47_32b124df-900b-4cbe-a674-83b740e4a105.webp?v=1784726979","width":2000},{"alt":null,"id":27855724249187,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a0ba497593d48cd5ac3ce6136bafe79fdc586dc_11bb58e1-8e98-4f2a-8f6a-75641943f1b1.webp?v=1784726980"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a0ba497593d48cd5ac3ce6136bafe79fdc586dc_11bb58e1-8e98-4f2a-8f6a-75641943f1b1.webp?v=1784726980","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43861603024995,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NXB01352J5-BIR05","requires_shipping":true,"taxable":true,"featured_image":{"id":36351914442851,"product_id":7931699069027,"position":14,"created_at":"2026-07-22T21:29:35+08:00","updated_at":"2026-07-22T21:29:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93038b34b734769c5b9ac670c574246cd36082bb_a8c303b1-90d6-443b-adb8-8d7529b00274.webp?v=1784726977","variant_ids":[43861603024995]},"available":true,"name":"iPhone 17 Pro Mod NX -邊框背蓋組合 (相機按鈕) 產房 • 廢料棲息地 海獺與海膽 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NXB01352J5-BIR05","featured_media":{"alt":null,"id":27855719727203,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93038b34b734769c5b9ac670c574246cd36082bb_a8c303b1-90d6-443b-adb8-8d7529b00274.webp?v=1784726977"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43861604892771,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"NXB0135269-BIR05","requires_shipping":true,"taxable":true,"featured_image":{"id":36351919063139,"product_id":7931699069027,"position":16,"created_at":"2026-07-22T21:29:38+08:00","updated_at":"2026-07-22T21:29:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a0ba497593d48cd5ac3ce6136bafe79fdc586dc_11bb58e1-8e98-4f2a-8f6a-75641943f1b1.webp?v=1784726980","variant_ids":[43861604892771]},"available":true,"name":"iPhone 17 Pro Mod NX -邊框背蓋組合 (相機按鈕) 產房 • 廢料棲息地 海獺與海膽 - Graphite","public_title":"Graphite","options":["Graphite"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NXB0135269-BIR05","featured_media":{"alt":null,"id":27855724249187,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a0ba497593d48cd5ac3ce6136bafe79fdc586dc_11bb58e1-8e98-4f2a-8f6a-75641943f1b1.webp?v=1784726980"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43861603024995,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NXB01352J5-BIR05","requires_shipping":true,"taxable":true,"featured_image":{"id":36351914442851,"product_id":7931699069027,"position":14,"created_at":"2026-07-22T21:29:35+08:00","updated_at":"2026-07-22T21:29:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93038b34b734769c5b9ac670c574246cd36082bb_a8c303b1-90d6-443b-adb8-8d7529b00274.webp?v=1784726977","variant_ids":[43861603024995]},"available":true,"name":"iPhone 17 Pro Mod NX -邊框背蓋組合 (相機按鈕) 產房 • 廢料棲息地 海獺與海膽 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NXB01352J5-BIR05","featured_media":{"alt":null,"id":27855719727203,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93038b34b734769c5b9ac670c574246cd36082bb_a8c303b1-90d6-443b-adb8-8d7529b00274.webp?v=1784726977"}},"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: "停產"
}