Home
›
iPhone 15 Pro SolidX 火影忍者疾風傳 火影篇章-白
$product = {"id":7916496617571,"title":"iPhone 15 Pro SolidX 火影忍者疾風傳 火影篇章-白","handle":"iphone-15-pro-solidx-pk91","description":null,"published_at":"2025-12-16T09:35:44+08:00","created_at":"2025-11-06T11:08:22+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":43820116115555,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012970B-PK91","requires_shipping":true,"taxable":true,"featured_image":{"id":34756000514147,"product_id":7916496617571,"position":4,"created_at":"2025-11-06T11:08:29+08:00","updated_at":"2025-11-06T11:08:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a55185ba7948067bd3e4f19ca60faee8e15eab3.webp?v=1762398511","variant_ids":[43820116115555]},"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-PK91","featured_media":{"alt":null,"id":26322385010787,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a55185ba7948067bd3e4f19ca60faee8e15eab3.webp?v=1762398511"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43820119785571,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"NST01297Z8-PK91","requires_shipping":true,"taxable":true,"featured_image":{"id":34756000841827,"product_id":7916496617571,"position":5,"created_at":"2025-11-06T11:08:30+08:00","updated_at":"2025-11-06T11:08:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a937bc346c1a283983089b7470db335e50cf6a6.webp?v=1762398512","variant_ids":[43820119785571]},"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-PK91","featured_media":{"alt":null,"id":26322385305699,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a937bc346c1a283983089b7470db335e50cf6a6.webp?v=1762398512"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43820119851107,"title":"Ocean Blue","option1":"Ocean Blue","option2":null,"option3":null,"sku":"NST012970A-PK91","requires_shipping":true,"taxable":true,"featured_image":{"id":34755999826019,"product_id":7916496617571,"position":1,"created_at":"2025-11-06T11:08:27+08:00","updated_at":"2025-11-06T11:08:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/073fd2b349e240676d07f5772f1d51b87e89230e.webp?v=1762398509","variant_ids":[43820119851107]},"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-PK91","featured_media":{"alt":null,"id":26322384322659,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/073fd2b349e240676d07f5772f1d51b87e89230e.webp?v=1762398509"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43820119883875,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129752-PK91","requires_shipping":true,"taxable":true,"featured_image":{"id":34756001759331,"product_id":7916496617571,"position":8,"created_at":"2025-11-06T11:08:32+08:00","updated_at":"2025-11-06T11:08:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea1b4e562bb1ae3ed51000e9c91bd8eeef169dcd.webp?v=1762398514","variant_ids":[43820119883875]},"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-PK91","featured_media":{"alt":null,"id":26322386223203,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea1b4e562bb1ae3ed51000e9c91bd8eeef169dcd.webp?v=1762398514"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43820119916643,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NST0129753-PK91","requires_shipping":true,"taxable":true,"featured_image":{"id":34756000022627,"product_id":7916496617571,"position":2,"created_at":"2025-11-06T11:08:28+08:00","updated_at":"2025-11-06T11:08:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/670ad46d050890cf5de0bcf98e2374a4262b731e.webp?v=1762398510","variant_ids":[43820119916643]},"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-PK91","featured_media":{"alt":null,"id":26322384519267,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/670ad46d050890cf5de0bcf98e2374a4262b731e.webp?v=1762398510"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/073fd2b349e240676d07f5772f1d51b87e89230e.webp?v=1762398509","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/670ad46d050890cf5de0bcf98e2374a4262b731e.webp?v=1762398510","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e29975f393ec171874aad4f8966ad3bd64613db0.webp?v=1762398510","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a55185ba7948067bd3e4f19ca60faee8e15eab3.webp?v=1762398511","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a937bc346c1a283983089b7470db335e50cf6a6.webp?v=1762398512","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30ca71a0bfc8b75a5ec7028c73fb349fac927af2.webp?v=1762398513","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ce0c439b8502a7f01be5c374e41709c47523007.webp?v=1762398513","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea1b4e562bb1ae3ed51000e9c91bd8eeef169dcd.webp?v=1762398514","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21ec373e471a2312fc5253bd7823073d9660398d.webp?v=1762398515","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4561baa751f1dc8954b2a637d3c1541694b48e0b.webp?v=1762398516"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/073fd2b349e240676d07f5772f1d51b87e89230e.webp?v=1762398509","options":["color"],"media":[{"alt":null,"id":26322384322659,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/073fd2b349e240676d07f5772f1d51b87e89230e.webp?v=1762398509"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/073fd2b349e240676d07f5772f1d51b87e89230e.webp?v=1762398509","width":2000},{"alt":null,"id":26322384519267,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/670ad46d050890cf5de0bcf98e2374a4262b731e.webp?v=1762398510"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/670ad46d050890cf5de0bcf98e2374a4262b731e.webp?v=1762398510","width":2000},{"alt":null,"id":26322384748643,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e29975f393ec171874aad4f8966ad3bd64613db0.webp?v=1762398510"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e29975f393ec171874aad4f8966ad3bd64613db0.webp?v=1762398510","width":2000},{"alt":null,"id":26322385010787,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a55185ba7948067bd3e4f19ca60faee8e15eab3.webp?v=1762398511"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a55185ba7948067bd3e4f19ca60faee8e15eab3.webp?v=1762398511","width":2000},{"alt":null,"id":26322385305699,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a937bc346c1a283983089b7470db335e50cf6a6.webp?v=1762398512"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a937bc346c1a283983089b7470db335e50cf6a6.webp?v=1762398512","width":2000},{"alt":null,"id":26322385666147,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30ca71a0bfc8b75a5ec7028c73fb349fac927af2.webp?v=1762398513"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30ca71a0bfc8b75a5ec7028c73fb349fac927af2.webp?v=1762398513","width":2000},{"alt":null,"id":26322385928291,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ce0c439b8502a7f01be5c374e41709c47523007.webp?v=1762398513"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ce0c439b8502a7f01be5c374e41709c47523007.webp?v=1762398513","width":2000},{"alt":null,"id":26322386223203,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea1b4e562bb1ae3ed51000e9c91bd8eeef169dcd.webp?v=1762398514"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea1b4e562bb1ae3ed51000e9c91bd8eeef169dcd.webp?v=1762398514","width":2000},{"alt":null,"id":26322386518115,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21ec373e471a2312fc5253bd7823073d9660398d.webp?v=1762398515"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21ec373e471a2312fc5253bd7823073d9660398d.webp?v=1762398515","width":2000},{"alt":null,"id":26322386944099,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4561baa751f1dc8954b2a637d3c1541694b48e0b.webp?v=1762398516"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4561baa751f1dc8954b2a637d3c1541694b48e0b.webp?v=1762398516","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43820116115555,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012970B-PK91","requires_shipping":true,"taxable":true,"featured_image":{"id":34756000514147,"product_id":7916496617571,"position":4,"created_at":"2025-11-06T11:08:29+08:00","updated_at":"2025-11-06T11:08:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a55185ba7948067bd3e4f19ca60faee8e15eab3.webp?v=1762398511","variant_ids":[43820116115555]},"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-PK91","featured_media":{"alt":null,"id":26322385010787,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a55185ba7948067bd3e4f19ca60faee8e15eab3.webp?v=1762398511"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43820119785571,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"NST01297Z8-PK91","requires_shipping":true,"taxable":true,"featured_image":{"id":34756000841827,"product_id":7916496617571,"position":5,"created_at":"2025-11-06T11:08:30+08:00","updated_at":"2025-11-06T11:08:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a937bc346c1a283983089b7470db335e50cf6a6.webp?v=1762398512","variant_ids":[43820119785571]},"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-PK91","featured_media":{"alt":null,"id":26322385305699,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a937bc346c1a283983089b7470db335e50cf6a6.webp?v=1762398512"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43820119851107,"title":"Ocean Blue","option1":"Ocean Blue","option2":null,"option3":null,"sku":"NST012970A-PK91","requires_shipping":true,"taxable":true,"featured_image":{"id":34755999826019,"product_id":7916496617571,"position":1,"created_at":"2025-11-06T11:08:27+08:00","updated_at":"2025-11-06T11:08:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/073fd2b349e240676d07f5772f1d51b87e89230e.webp?v=1762398509","variant_ids":[43820119851107]},"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-PK91","featured_media":{"alt":null,"id":26322384322659,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/073fd2b349e240676d07f5772f1d51b87e89230e.webp?v=1762398509"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43820119883875,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129752-PK91","requires_shipping":true,"taxable":true,"featured_image":{"id":34756001759331,"product_id":7916496617571,"position":8,"created_at":"2025-11-06T11:08:32+08:00","updated_at":"2025-11-06T11:08:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea1b4e562bb1ae3ed51000e9c91bd8eeef169dcd.webp?v=1762398514","variant_ids":[43820119883875]},"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-PK91","featured_media":{"alt":null,"id":26322386223203,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea1b4e562bb1ae3ed51000e9c91bd8eeef169dcd.webp?v=1762398514"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43820119916643,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NST0129753-PK91","requires_shipping":true,"taxable":true,"featured_image":{"id":34756000022627,"product_id":7916496617571,"position":2,"created_at":"2025-11-06T11:08:28+08:00","updated_at":"2025-11-06T11:08:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/670ad46d050890cf5de0bcf98e2374a4262b731e.webp?v=1762398510","variant_ids":[43820119916643]},"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-PK91","featured_media":{"alt":null,"id":26322384519267,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/670ad46d050890cf5de0bcf98e2374a4262b731e.webp?v=1762398510"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43820116115555,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012970B-PK91","requires_shipping":true,"taxable":true,"featured_image":{"id":34756000514147,"product_id":7916496617571,"position":4,"created_at":"2025-11-06T11:08:29+08:00","updated_at":"2025-11-06T11:08:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a55185ba7948067bd3e4f19ca60faee8e15eab3.webp?v=1762398511","variant_ids":[43820116115555]},"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-PK91","featured_media":{"alt":null,"id":26322385010787,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a55185ba7948067bd3e4f19ca60faee8e15eab3.webp?v=1762398511"}},"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: "停產"
}