Home
›
iPhone 15 Pro SolidX 火影忍者疾風傳 火影篇章-黑
$product = {"id":7916542558307,"title":"iPhone 15 Pro SolidX 火影忍者疾風傳 火影篇章-黑","handle":"iphone-15-pro-solidx-pk90","description":null,"published_at":"2025-12-16T09:28:39+08:00","created_at":"2025-11-06T11:19:30+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-naruto-shippuden","device-iPhone 15 Pro","merge","reseller-naruto-shippuden"],"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":43820273172579,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012970B-PK90","requires_shipping":true,"taxable":true,"featured_image":{"id":34756163928163,"product_id":7916542558307,"position":1,"created_at":"2025-11-06T11:19:33+08:00","updated_at":"2025-11-06T11:19:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65237b22f2bd11ef526462a6eeaecbc762488b0a.webp?v=1762399175","variant_ids":[43820273172579]},"available":true,"name":"iPhone 15 Pro SolidX 火影忍者疾風傳 火影篇章-黑 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST012970B-PK90","featured_media":{"alt":null,"id":26322548097123,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65237b22f2bd11ef526462a6eeaecbc762488b0a.webp?v=1762399175"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43820276023395,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"NST01297Z8-PK90","requires_shipping":true,"taxable":true,"featured_image":{"id":34756164550755,"product_id":7916542558307,"position":7,"created_at":"2025-11-06T11:19:37+08:00","updated_at":"2025-11-06T11:19:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc97b09789ffce4bcaa88bae75d0f95691a80e22.webp?v=1762399179","variant_ids":[43820276023395]},"available":true,"name":"iPhone 15 Pro SolidX 火影忍者疾風傳 火影篇章-黑 - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01297Z8-PK90","featured_media":{"alt":null,"id":26322548785251,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc97b09789ffce4bcaa88bae75d0f95691a80e22.webp?v=1762399179"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43820276088931,"title":"Ocean Blue","option1":"Ocean Blue","option2":null,"option3":null,"sku":"NST012970A-PK90","requires_shipping":true,"taxable":true,"featured_image":{"id":34756164190307,"product_id":7916542558307,"position":3,"created_at":"2025-11-06T11:19:35+08:00","updated_at":"2025-11-06T11:19:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89e0dec91b73275cfabda24483efdd6e5de43462.webp?v=1762399176","variant_ids":[43820276088931]},"available":true,"name":"iPhone 15 Pro SolidX 火影忍者疾風傳 火影篇章-黑 - Ocean Blue","public_title":"Ocean Blue","options":["Ocean Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST012970A-PK90","featured_media":{"alt":null,"id":26322548424803,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89e0dec91b73275cfabda24483efdd6e5de43462.webp?v=1762399176"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43820276121699,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129752-PK90","requires_shipping":true,"taxable":true,"featured_image":{"id":34756164059235,"product_id":7916542558307,"position":2,"created_at":"2025-11-06T11:19:34+08:00","updated_at":"2025-11-06T11:19:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8429d35274bb1a03929e48c84df7a46217f7d328.webp?v=1762399177","variant_ids":[43820276121699]},"available":true,"name":"iPhone 15 Pro 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":"NST0129752-PK90","featured_media":{"alt":null,"id":26322548293731,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8429d35274bb1a03929e48c84df7a46217f7d328.webp?v=1762399177"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43820276154467,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NST0129753-PK90","requires_shipping":true,"taxable":true,"featured_image":{"id":34756164485219,"product_id":7916542558307,"position":6,"created_at":"2025-11-06T11:19:37+08:00","updated_at":"2025-11-06T11:19:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0f6b119522259bb69fb4a680926d06badcb9069.webp?v=1762399178","variant_ids":[43820276154467]},"available":true,"name":"iPhone 15 Pro 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":"NST0129753-PK90","featured_media":{"alt":null,"id":26322548719715,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0f6b119522259bb69fb4a680926d06badcb9069.webp?v=1762399178"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65237b22f2bd11ef526462a6eeaecbc762488b0a.webp?v=1762399175","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8429d35274bb1a03929e48c84df7a46217f7d328.webp?v=1762399177","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89e0dec91b73275cfabda24483efdd6e5de43462.webp?v=1762399176","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/985800d2b372086c3f067009cf20c2c8e8c7f53b.webp?v=1762399177","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b15c35f20bd5db952f93af92507b82e2002ce214.webp?v=1762399178","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0f6b119522259bb69fb4a680926d06badcb9069.webp?v=1762399178","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc97b09789ffce4bcaa88bae75d0f95691a80e22.webp?v=1762399179","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1bceefa01c7e149c9e3eb66da323f52e42cd3be.webp?v=1762399180","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7a12b142fce2800c3995dc815af417bc133502c.webp?v=1762399180","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8503577fab45b2c38c60bc175b63374ff40555b.webp?v=1762399181"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65237b22f2bd11ef526462a6eeaecbc762488b0a.webp?v=1762399175","options":["color"],"media":[{"alt":null,"id":26322548097123,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65237b22f2bd11ef526462a6eeaecbc762488b0a.webp?v=1762399175"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65237b22f2bd11ef526462a6eeaecbc762488b0a.webp?v=1762399175","width":2000},{"alt":null,"id":26322548293731,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8429d35274bb1a03929e48c84df7a46217f7d328.webp?v=1762399177"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8429d35274bb1a03929e48c84df7a46217f7d328.webp?v=1762399177","width":2000},{"alt":null,"id":26322548424803,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89e0dec91b73275cfabda24483efdd6e5de43462.webp?v=1762399176"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89e0dec91b73275cfabda24483efdd6e5de43462.webp?v=1762399176","width":2000},{"alt":null,"id":26322548523107,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/985800d2b372086c3f067009cf20c2c8e8c7f53b.webp?v=1762399177"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/985800d2b372086c3f067009cf20c2c8e8c7f53b.webp?v=1762399177","width":2000},{"alt":null,"id":26322548621411,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b15c35f20bd5db952f93af92507b82e2002ce214.webp?v=1762399178"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b15c35f20bd5db952f93af92507b82e2002ce214.webp?v=1762399178","width":2000},{"alt":null,"id":26322548719715,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0f6b119522259bb69fb4a680926d06badcb9069.webp?v=1762399178"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0f6b119522259bb69fb4a680926d06badcb9069.webp?v=1762399178","width":2000},{"alt":null,"id":26322548785251,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc97b09789ffce4bcaa88bae75d0f95691a80e22.webp?v=1762399179"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc97b09789ffce4bcaa88bae75d0f95691a80e22.webp?v=1762399179","width":2000},{"alt":null,"id":26322548883555,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1bceefa01c7e149c9e3eb66da323f52e42cd3be.webp?v=1762399180"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1bceefa01c7e149c9e3eb66da323f52e42cd3be.webp?v=1762399180","width":2000},{"alt":null,"id":26322549080163,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7a12b142fce2800c3995dc815af417bc133502c.webp?v=1762399180"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7a12b142fce2800c3995dc815af417bc133502c.webp?v=1762399180","width":2000},{"alt":null,"id":26322549244003,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8503577fab45b2c38c60bc175b63374ff40555b.webp?v=1762399181"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8503577fab45b2c38c60bc175b63374ff40555b.webp?v=1762399181","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43820273172579,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012970B-PK90","requires_shipping":true,"taxable":true,"featured_image":{"id":34756163928163,"product_id":7916542558307,"position":1,"created_at":"2025-11-06T11:19:33+08:00","updated_at":"2025-11-06T11:19:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65237b22f2bd11ef526462a6eeaecbc762488b0a.webp?v=1762399175","variant_ids":[43820273172579]},"available":true,"name":"iPhone 15 Pro SolidX 火影忍者疾風傳 火影篇章-黑 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST012970B-PK90","featured_media":{"alt":null,"id":26322548097123,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65237b22f2bd11ef526462a6eeaecbc762488b0a.webp?v=1762399175"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43820276023395,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"NST01297Z8-PK90","requires_shipping":true,"taxable":true,"featured_image":{"id":34756164550755,"product_id":7916542558307,"position":7,"created_at":"2025-11-06T11:19:37+08:00","updated_at":"2025-11-06T11:19:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc97b09789ffce4bcaa88bae75d0f95691a80e22.webp?v=1762399179","variant_ids":[43820276023395]},"available":true,"name":"iPhone 15 Pro SolidX 火影忍者疾風傳 火影篇章-黑 - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01297Z8-PK90","featured_media":{"alt":null,"id":26322548785251,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc97b09789ffce4bcaa88bae75d0f95691a80e22.webp?v=1762399179"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43820276088931,"title":"Ocean Blue","option1":"Ocean Blue","option2":null,"option3":null,"sku":"NST012970A-PK90","requires_shipping":true,"taxable":true,"featured_image":{"id":34756164190307,"product_id":7916542558307,"position":3,"created_at":"2025-11-06T11:19:35+08:00","updated_at":"2025-11-06T11:19:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89e0dec91b73275cfabda24483efdd6e5de43462.webp?v=1762399176","variant_ids":[43820276088931]},"available":true,"name":"iPhone 15 Pro SolidX 火影忍者疾風傳 火影篇章-黑 - Ocean Blue","public_title":"Ocean Blue","options":["Ocean Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST012970A-PK90","featured_media":{"alt":null,"id":26322548424803,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89e0dec91b73275cfabda24483efdd6e5de43462.webp?v=1762399176"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43820276121699,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129752-PK90","requires_shipping":true,"taxable":true,"featured_image":{"id":34756164059235,"product_id":7916542558307,"position":2,"created_at":"2025-11-06T11:19:34+08:00","updated_at":"2025-11-06T11:19:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8429d35274bb1a03929e48c84df7a46217f7d328.webp?v=1762399177","variant_ids":[43820276121699]},"available":true,"name":"iPhone 15 Pro 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":"NST0129752-PK90","featured_media":{"alt":null,"id":26322548293731,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8429d35274bb1a03929e48c84df7a46217f7d328.webp?v=1762399177"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43820276154467,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NST0129753-PK90","requires_shipping":true,"taxable":true,"featured_image":{"id":34756164485219,"product_id":7916542558307,"position":6,"created_at":"2025-11-06T11:19:37+08:00","updated_at":"2025-11-06T11:19:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0f6b119522259bb69fb4a680926d06badcb9069.webp?v=1762399178","variant_ids":[43820276154467]},"available":true,"name":"iPhone 15 Pro 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":"NST0129753-PK90","featured_media":{"alt":null,"id":26322548719715,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0f6b119522259bb69fb4a680926d06badcb9069.webp?v=1762399178"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43820273172579,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012970B-PK90","requires_shipping":true,"taxable":true,"featured_image":{"id":34756163928163,"product_id":7916542558307,"position":1,"created_at":"2025-11-06T11:19:33+08:00","updated_at":"2025-11-06T11:19:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65237b22f2bd11ef526462a6eeaecbc762488b0a.webp?v=1762399175","variant_ids":[43820273172579]},"available":true,"name":"iPhone 15 Pro SolidX 火影忍者疾風傳 火影篇章-黑 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST012970B-PK90","featured_media":{"alt":null,"id":26322548097123,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65237b22f2bd11ef526462a6eeaecbc762488b0a.webp?v=1762399175"}},"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: "停產"
}