$product = {"id":7921185063011,"title":"iPhone 14 Pro Mod NX 懶散兔與啾先生 Happy pet Happy life","handle":"iphone-14-pro-mod-nx-ec80","description":null,"published_at":"2025-11-14T10:46:29+08:00","created_at":"2025-11-11T10:14:42+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-bylobster","device-iPhone 14 Pro","merge","reseller-bylobster"],"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":43831079501923,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-EC80","requires_shipping":true,"taxable":true,"featured_image":{"id":36054652190819,"product_id":7921185063011,"position":13,"created_at":"2026-06-23T09:57:06+08:00","updated_at":"2026-06-23T09:57:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f5c111cab5e79329c0186347e3e9089bd7aff25_9df0af32-8667-461e-939e-5a27f98aa872.webp?v=1782179828","variant_ids":[43831079501923]},"available":true,"name":"iPhone 14 Pro Mod NX 懶散兔與啾先生 Happy pet Happy life - 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":"NPB01262J5-EC80","featured_media":{"alt":null,"id":27567502557283,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f5c111cab5e79329c0186347e3e9089bd7aff25_9df0af32-8667-461e-939e-5a27f98aa872.webp?v=1782179828"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43831079665763,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-EC80","requires_shipping":true,"taxable":true,"featured_image":{"id":36054652616803,"product_id":7921185063011,"position":15,"created_at":"2026-06-23T09:57:07+08:00","updated_at":"2026-06-23T09:57:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7724a254c6b96706b583f68ab68242d0366cedc2_04c02abc-886e-4708-ba31-f9709116f27f.webp?v=1782179829","variant_ids":[43831079665763]},"available":true,"name":"iPhone 14 Pro Mod NX 懶散兔與啾先生 Happy pet Happy life - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-EC80","featured_media":{"alt":null,"id":27567503016035,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7724a254c6b96706b583f68ab68242d0366cedc2_04c02abc-886e-4708-ba31-f9709116f27f.webp?v=1782179829"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43831079764067,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-EC80","requires_shipping":true,"taxable":true,"featured_image":{"id":36054652452963,"product_id":7921185063011,"position":14,"created_at":"2026-06-23T09:57:06+08:00","updated_at":"2026-06-23T09:57:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/198d79719569826e66f6091e087148d79eec5e68_c6d63594-b49c-4a9e-a459-cc71a5212078.webp?v=1782179828","variant_ids":[43831079764067]},"available":true,"name":"iPhone 14 Pro Mod NX 懶散兔與啾先生 Happy pet Happy life - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126204-EC80","featured_media":{"alt":null,"id":27567502852195,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/198d79719569826e66f6091e087148d79eec5e68_c6d63594-b49c-4a9e-a459-cc71a5212078.webp?v=1782179828"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/741e485fdf06074b31f1015430505f624a72b741.webp?v=1762827288","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2335ecf63a9f99bb8e6f6dfd8fa0f34abc67219b.webp?v=1762827289","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae5203dd13658b00fca3bf49f05645a13aab6261.webp?v=1762827290","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f879cf35d7b96afc7b6cab7be648ded0feb6ef81.webp?v=1762827290","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/832290676059d0183339011eef44bd97a1c350f6.webp?v=1762827291","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f00f2fa3e81b4814cc92eab9b7cad5fcad653836.webp?v=1762827292","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97e729d3501d5a8a3af3dc00f0b15ce91a60d572.webp?v=1762827293","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/801f15cb0b9d3aa89f3e24774cf968f496e419ed.webp?v=1762827294","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f79b14200761a371dd3fa48b8ee4633e36fea1dc.webp?v=1762827295","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f5c111cab5e79329c0186347e3e9089bd7aff25.webp?v=1762827296","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7724a254c6b96706b583f68ab68242d0366cedc2.webp?v=1762827296","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/198d79719569826e66f6091e087148d79eec5e68.webp?v=1762827297","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f5c111cab5e79329c0186347e3e9089bd7aff25_9df0af32-8667-461e-939e-5a27f98aa872.webp?v=1782179828","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/198d79719569826e66f6091e087148d79eec5e68_c6d63594-b49c-4a9e-a459-cc71a5212078.webp?v=1782179828","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7724a254c6b96706b583f68ab68242d0366cedc2_04c02abc-886e-4708-ba31-f9709116f27f.webp?v=1782179829"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/741e485fdf06074b31f1015430505f624a72b741.webp?v=1762827288","options":["color"],"media":[{"alt":null,"id":26351954821219,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/741e485fdf06074b31f1015430505f624a72b741.webp?v=1762827288"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/741e485fdf06074b31f1015430505f624a72b741.webp?v=1762827288","width":2000},{"alt":null,"id":26351954985059,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2335ecf63a9f99bb8e6f6dfd8fa0f34abc67219b.webp?v=1762827289"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2335ecf63a9f99bb8e6f6dfd8fa0f34abc67219b.webp?v=1762827289","width":2000},{"alt":null,"id":26351955181667,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae5203dd13658b00fca3bf49f05645a13aab6261.webp?v=1762827290"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae5203dd13658b00fca3bf49f05645a13aab6261.webp?v=1762827290","width":2000},{"alt":null,"id":26351955542115,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f879cf35d7b96afc7b6cab7be648ded0feb6ef81.webp?v=1762827290"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f879cf35d7b96afc7b6cab7be648ded0feb6ef81.webp?v=1762827290","width":2000},{"alt":null,"id":26351955738723,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/832290676059d0183339011eef44bd97a1c350f6.webp?v=1762827291"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/832290676059d0183339011eef44bd97a1c350f6.webp?v=1762827291","width":2000},{"alt":null,"id":26351955968099,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f00f2fa3e81b4814cc92eab9b7cad5fcad653836.webp?v=1762827292"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f00f2fa3e81b4814cc92eab9b7cad5fcad653836.webp?v=1762827292","width":2000},{"alt":null,"id":26351956230243,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97e729d3501d5a8a3af3dc00f0b15ce91a60d572.webp?v=1762827293"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97e729d3501d5a8a3af3dc00f0b15ce91a60d572.webp?v=1762827293","width":2000},{"alt":null,"id":26351956394083,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/801f15cb0b9d3aa89f3e24774cf968f496e419ed.webp?v=1762827294"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/801f15cb0b9d3aa89f3e24774cf968f496e419ed.webp?v=1762827294","width":2000},{"alt":null,"id":26351956590691,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f79b14200761a371dd3fa48b8ee4633e36fea1dc.webp?v=1762827295"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f79b14200761a371dd3fa48b8ee4633e36fea1dc.webp?v=1762827295","width":2000},{"alt":null,"id":26351956754531,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f5c111cab5e79329c0186347e3e9089bd7aff25.webp?v=1762827296"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f5c111cab5e79329c0186347e3e9089bd7aff25.webp?v=1762827296","width":2000},{"alt":null,"id":26351956918371,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7724a254c6b96706b583f68ab68242d0366cedc2.webp?v=1762827296"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7724a254c6b96706b583f68ab68242d0366cedc2.webp?v=1762827296","width":2000},{"alt":null,"id":26351957147747,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/198d79719569826e66f6091e087148d79eec5e68.webp?v=1762827297"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/198d79719569826e66f6091e087148d79eec5e68.webp?v=1762827297","width":2000},{"alt":null,"id":27567502557283,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f5c111cab5e79329c0186347e3e9089bd7aff25_9df0af32-8667-461e-939e-5a27f98aa872.webp?v=1782179828"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f5c111cab5e79329c0186347e3e9089bd7aff25_9df0af32-8667-461e-939e-5a27f98aa872.webp?v=1782179828","width":2000},{"alt":null,"id":27567502852195,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/198d79719569826e66f6091e087148d79eec5e68_c6d63594-b49c-4a9e-a459-cc71a5212078.webp?v=1782179828"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/198d79719569826e66f6091e087148d79eec5e68_c6d63594-b49c-4a9e-a459-cc71a5212078.webp?v=1782179828","width":2000},{"alt":null,"id":27567503016035,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7724a254c6b96706b583f68ab68242d0366cedc2_04c02abc-886e-4708-ba31-f9709116f27f.webp?v=1782179829"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7724a254c6b96706b583f68ab68242d0366cedc2_04c02abc-886e-4708-ba31-f9709116f27f.webp?v=1782179829","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43831079501923,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-EC80","requires_shipping":true,"taxable":true,"featured_image":{"id":36054652190819,"product_id":7921185063011,"position":13,"created_at":"2026-06-23T09:57:06+08:00","updated_at":"2026-06-23T09:57:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f5c111cab5e79329c0186347e3e9089bd7aff25_9df0af32-8667-461e-939e-5a27f98aa872.webp?v=1782179828","variant_ids":[43831079501923]},"available":true,"name":"iPhone 14 Pro Mod NX 懶散兔與啾先生 Happy pet Happy life - 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":"NPB01262J5-EC80","featured_media":{"alt":null,"id":27567502557283,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f5c111cab5e79329c0186347e3e9089bd7aff25_9df0af32-8667-461e-939e-5a27f98aa872.webp?v=1782179828"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43831079665763,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-EC80","requires_shipping":true,"taxable":true,"featured_image":{"id":36054652616803,"product_id":7921185063011,"position":15,"created_at":"2026-06-23T09:57:07+08:00","updated_at":"2026-06-23T09:57:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7724a254c6b96706b583f68ab68242d0366cedc2_04c02abc-886e-4708-ba31-f9709116f27f.webp?v=1782179829","variant_ids":[43831079665763]},"available":true,"name":"iPhone 14 Pro Mod NX 懶散兔與啾先生 Happy pet Happy life - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-EC80","featured_media":{"alt":null,"id":27567503016035,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7724a254c6b96706b583f68ab68242d0366cedc2_04c02abc-886e-4708-ba31-f9709116f27f.webp?v=1782179829"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43831079764067,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-EC80","requires_shipping":true,"taxable":true,"featured_image":{"id":36054652452963,"product_id":7921185063011,"position":14,"created_at":"2026-06-23T09:57:06+08:00","updated_at":"2026-06-23T09:57:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/198d79719569826e66f6091e087148d79eec5e68_c6d63594-b49c-4a9e-a459-cc71a5212078.webp?v=1782179828","variant_ids":[43831079764067]},"available":true,"name":"iPhone 14 Pro Mod NX 懶散兔與啾先生 Happy pet Happy life - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126204-EC80","featured_media":{"alt":null,"id":27567502852195,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/198d79719569826e66f6091e087148d79eec5e68_c6d63594-b49c-4a9e-a459-cc71a5212078.webp?v=1782179828"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43831079501923,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-EC80","requires_shipping":true,"taxable":true,"featured_image":{"id":36054652190819,"product_id":7921185063011,"position":13,"created_at":"2026-06-23T09:57:06+08:00","updated_at":"2026-06-23T09:57:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f5c111cab5e79329c0186347e3e9089bd7aff25_9df0af32-8667-461e-939e-5a27f98aa872.webp?v=1782179828","variant_ids":[43831079501923]},"available":true,"name":"iPhone 14 Pro Mod NX 懶散兔與啾先生 Happy pet Happy life - 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":"NPB01262J5-EC80","featured_media":{"alt":null,"id":27567502557283,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f5c111cab5e79329c0186347e3e9089bd7aff25_9df0af32-8667-461e-939e-5a27f98aa872.webp?v=1782179828"}},"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: "停產"
}