$product = {"id":7408226336867,"title":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER 原力-潮流系列","handle":"iphone-13-mini-mod-nx-printable-pb48","description":null,"published_at":"2024-06-11T16:34:46+08:00","created_at":"2024-05-03T12:24:30+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":41884067266659,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB48","requires_shipping":true,"taxable":true,"featured_image":{"id":31471524577379,"product_id":7408226336867,"position":10,"created_at":"2024-05-03T12:24:55+08:00","updated_at":"2024-05-03T12:24:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16dd2e2b3e9bf762f4f9f7ca37b8cf1e476a3b14_3e5c6ab9-f37f-4acb-8e21-90338eba7af5.webp?v=1714710295","variant_ids":[41884067266659]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER 原力-潮流系列 - 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-PB48","featured_media":{"alt":null,"id":23876431151203,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16dd2e2b3e9bf762f4f9f7ca37b8cf1e476a3b14_3e5c6ab9-f37f-4acb-8e21-90338eba7af5.webp?v=1714710295"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41884067332195,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB48","requires_shipping":true,"taxable":true,"featured_image":{"id":31471522840675,"product_id":7408226336867,"position":7,"created_at":"2024-05-03T12:24:47+08:00","updated_at":"2024-05-03T12:24:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d38e8b01388171453cea190b32f5aae63103b5a8_8d6140e3-ccb0-4b71-b834-b96163f47ace.webp?v=1714710287","variant_ids":[41884067332195]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER 原力-潮流系列 - 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-PB48","featured_media":{"alt":null,"id":23876429447267,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d38e8b01388171453cea190b32f5aae63103b5a8_8d6140e3-ccb0-4b71-b834-b96163f47ace.webp?v=1714710287"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41884067561571,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB48","requires_shipping":true,"taxable":true,"featured_image":{"id":31471520055395,"product_id":7408226336867,"position":2,"created_at":"2024-05-03T12:24:35+08:00","updated_at":"2024-05-03T12:24:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25a2ac3b87707a1a2a349860a17202e231809a07_62523de4-0722-4df2-add8-c2b4da0d010f.webp?v=1714710275","variant_ids":[41884067561571]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER 原力-潮流系列 - 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-PB48","featured_media":{"alt":null,"id":23876426629219,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25a2ac3b87707a1a2a349860a17202e231809a07_62523de4-0722-4df2-add8-c2b4da0d010f.webp?v=1714710275"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2ab649ec3ba355157f1f7668094cc521bea7c67_11206fcc-9a3f-48b7-91b1-b4ecfb2bfcfc.webp?v=1714710272","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25a2ac3b87707a1a2a349860a17202e231809a07_62523de4-0722-4df2-add8-c2b4da0d010f.webp?v=1714710275","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/950e2b5d778cd648bab3429664b9ed21f4cc2cb0_bdb7cfed-84a7-4ff7-af1b-ed4c6227bcce.webp?v=1714710278","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/225b0bb2368eedebfeface2f5e3ea1e9a45a62ea_d91b2dd2-cf63-4f1c-859d-e55fb67d3e84.webp?v=1714710280","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e8ba20bafb69164b9b2c637c97f69916e6fa894_0add8ef6-acbc-4be1-9ef5-76d5a02c5cb0.webp?v=1714710282","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/335367a1ad28ab36c2724514e2c89c29140071e1_1fe7d32f-793e-4241-803a-4bae5f230f51.webp?v=1714710285","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d38e8b01388171453cea190b32f5aae63103b5a8_8d6140e3-ccb0-4b71-b834-b96163f47ace.webp?v=1714710287","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/115562cb8167db97b0c3f2289ad27106f29fcdf1_be18c03c-fd21-4b58-ba3b-81695105cf98.webp?v=1714710290","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ac980e661a26a1fe760aff2fab1a34468986fdf_321a5ae8-d39d-417c-82bb-f03ad50ea100.webp?v=1714710292","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16dd2e2b3e9bf762f4f9f7ca37b8cf1e476a3b14_3e5c6ab9-f37f-4acb-8e21-90338eba7af5.webp?v=1714710295"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2ab649ec3ba355157f1f7668094cc521bea7c67_11206fcc-9a3f-48b7-91b1-b4ecfb2bfcfc.webp?v=1714710272","options":["color"],"media":[{"alt":null,"id":23876426072163,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2ab649ec3ba355157f1f7668094cc521bea7c67_11206fcc-9a3f-48b7-91b1-b4ecfb2bfcfc.webp?v=1714710272"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2ab649ec3ba355157f1f7668094cc521bea7c67_11206fcc-9a3f-48b7-91b1-b4ecfb2bfcfc.webp?v=1714710272","width":2000},{"alt":null,"id":23876426629219,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25a2ac3b87707a1a2a349860a17202e231809a07_62523de4-0722-4df2-add8-c2b4da0d010f.webp?v=1714710275"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25a2ac3b87707a1a2a349860a17202e231809a07_62523de4-0722-4df2-add8-c2b4da0d010f.webp?v=1714710275","width":2000},{"alt":null,"id":23876427219043,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/950e2b5d778cd648bab3429664b9ed21f4cc2cb0_bdb7cfed-84a7-4ff7-af1b-ed4c6227bcce.webp?v=1714710278"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/950e2b5d778cd648bab3429664b9ed21f4cc2cb0_bdb7cfed-84a7-4ff7-af1b-ed4c6227bcce.webp?v=1714710278","width":2000},{"alt":null,"id":23876427874403,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/225b0bb2368eedebfeface2f5e3ea1e9a45a62ea_d91b2dd2-cf63-4f1c-859d-e55fb67d3e84.webp?v=1714710280"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/225b0bb2368eedebfeface2f5e3ea1e9a45a62ea_d91b2dd2-cf63-4f1c-859d-e55fb67d3e84.webp?v=1714710280","width":2000},{"alt":null,"id":23876428202083,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e8ba20bafb69164b9b2c637c97f69916e6fa894_0add8ef6-acbc-4be1-9ef5-76d5a02c5cb0.webp?v=1714710282"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e8ba20bafb69164b9b2c637c97f69916e6fa894_0add8ef6-acbc-4be1-9ef5-76d5a02c5cb0.webp?v=1714710282","width":2000},{"alt":null,"id":23876429086819,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/335367a1ad28ab36c2724514e2c89c29140071e1_1fe7d32f-793e-4241-803a-4bae5f230f51.webp?v=1714710285"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/335367a1ad28ab36c2724514e2c89c29140071e1_1fe7d32f-793e-4241-803a-4bae5f230f51.webp?v=1714710285","width":2000},{"alt":null,"id":23876429447267,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d38e8b01388171453cea190b32f5aae63103b5a8_8d6140e3-ccb0-4b71-b834-b96163f47ace.webp?v=1714710287"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d38e8b01388171453cea190b32f5aae63103b5a8_8d6140e3-ccb0-4b71-b834-b96163f47ace.webp?v=1714710287","width":2000},{"alt":null,"id":23876430102627,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/115562cb8167db97b0c3f2289ad27106f29fcdf1_be18c03c-fd21-4b58-ba3b-81695105cf98.webp?v=1714710290"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/115562cb8167db97b0c3f2289ad27106f29fcdf1_be18c03c-fd21-4b58-ba3b-81695105cf98.webp?v=1714710290","width":2000},{"alt":null,"id":23876430659683,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ac980e661a26a1fe760aff2fab1a34468986fdf_321a5ae8-d39d-417c-82bb-f03ad50ea100.webp?v=1714710292"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ac980e661a26a1fe760aff2fab1a34468986fdf_321a5ae8-d39d-417c-82bb-f03ad50ea100.webp?v=1714710292","width":2000},{"alt":null,"id":23876431151203,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16dd2e2b3e9bf762f4f9f7ca37b8cf1e476a3b14_3e5c6ab9-f37f-4acb-8e21-90338eba7af5.webp?v=1714710295"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16dd2e2b3e9bf762f4f9f7ca37b8cf1e476a3b14_3e5c6ab9-f37f-4acb-8e21-90338eba7af5.webp?v=1714710295","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41884067266659,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB48","requires_shipping":true,"taxable":true,"featured_image":{"id":31471524577379,"product_id":7408226336867,"position":10,"created_at":"2024-05-03T12:24:55+08:00","updated_at":"2024-05-03T12:24:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16dd2e2b3e9bf762f4f9f7ca37b8cf1e476a3b14_3e5c6ab9-f37f-4acb-8e21-90338eba7af5.webp?v=1714710295","variant_ids":[41884067266659]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER 原力-潮流系列 - 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-PB48","featured_media":{"alt":null,"id":23876431151203,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16dd2e2b3e9bf762f4f9f7ca37b8cf1e476a3b14_3e5c6ab9-f37f-4acb-8e21-90338eba7af5.webp?v=1714710295"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41884067332195,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB48","requires_shipping":true,"taxable":true,"featured_image":{"id":31471522840675,"product_id":7408226336867,"position":7,"created_at":"2024-05-03T12:24:47+08:00","updated_at":"2024-05-03T12:24:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d38e8b01388171453cea190b32f5aae63103b5a8_8d6140e3-ccb0-4b71-b834-b96163f47ace.webp?v=1714710287","variant_ids":[41884067332195]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER 原力-潮流系列 - 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-PB48","featured_media":{"alt":null,"id":23876429447267,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d38e8b01388171453cea190b32f5aae63103b5a8_8d6140e3-ccb0-4b71-b834-b96163f47ace.webp?v=1714710287"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41884067561571,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB48","requires_shipping":true,"taxable":true,"featured_image":{"id":31471520055395,"product_id":7408226336867,"position":2,"created_at":"2024-05-03T12:24:35+08:00","updated_at":"2024-05-03T12:24:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25a2ac3b87707a1a2a349860a17202e231809a07_62523de4-0722-4df2-add8-c2b4da0d010f.webp?v=1714710275","variant_ids":[41884067561571]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER 原力-潮流系列 - 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-PB48","featured_media":{"alt":null,"id":23876426629219,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25a2ac3b87707a1a2a349860a17202e231809a07_62523de4-0722-4df2-add8-c2b4da0d010f.webp?v=1714710275"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41884067266659,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB48","requires_shipping":true,"taxable":true,"featured_image":{"id":31471524577379,"product_id":7408226336867,"position":10,"created_at":"2024-05-03T12:24:55+08:00","updated_at":"2024-05-03T12:24:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16dd2e2b3e9bf762f4f9f7ca37b8cf1e476a3b14_3e5c6ab9-f37f-4acb-8e21-90338eba7af5.webp?v=1714710295","variant_ids":[41884067266659]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER 原力-潮流系列 - 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-PB48","featured_media":{"alt":null,"id":23876431151203,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16dd2e2b3e9bf762f4f9f7ca37b8cf1e476a3b14_3e5c6ab9-f37f-4acb-8e21-90338eba7af5.webp?v=1714710295"}},"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: "停產"
}