Home
›
iPhone 13 Clear 咒術迴戰 懷玉・玉折角色系列-最強組合
$product = {"id":7920471179363,"title":"iPhone 13 Clear 咒術迴戰 懷玉・玉折角色系列-最強組合","handle":"iphone-13-jellytint-ptt05","description":null,"published_at":"2025-11-10T16:42:25+08:00","created_at":"2025-11-10T14:52:11+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-jujutsu-kaisen","device-iPhone 13","merge","reseller-jujutsu-kaisen"],"price":128000,"price_min":128000,"price_max":128000,"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":43828698775651,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012600J-PTT05","requires_shipping":true,"taxable":true,"featured_image":{"id":36124749430883,"product_id":7920471179363,"position":11,"created_at":"2026-06-29T15:21:29+08:00","updated_at":"2026-06-29T15:21:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adcbdd0fa4adc27716e4fd9342b7dd3702ddd19f_c4ee5791-45f7-430c-a6a1-f19980d32743.webp?v=1782717692","variant_ids":[43828698775651]},"available":true,"name":"iPhone 13 Clear 咒術迴戰 懷玉・玉折角色系列-最強組合 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012600J-PTT05","featured_media":{"alt":null,"id":27629992378467,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adcbdd0fa4adc27716e4fd9342b7dd3702ddd19f_c4ee5791-45f7-430c-a6a1-f19980d32743.webp?v=1782717692"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43828700151907,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012600I-PTT05","requires_shipping":true,"taxable":true,"featured_image":{"id":36124749955171,"product_id":7920471179363,"position":13,"created_at":"2026-06-29T15:21:30+08:00","updated_at":"2026-06-29T15:21:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e936b84dc19f5ab9d5733415cfc6cff70cc2fa05_2cb4c26b-a27d-48b5-a9bd-7bc78abbbcc1.webp?v=1782717693","variant_ids":[43828700151907]},"available":true,"name":"iPhone 13 Clear 咒術迴戰 懷玉・玉折角色系列-最強組合 - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012600I-PTT05","featured_media":{"alt":null,"id":27629992902755,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e936b84dc19f5ab9d5733415cfc6cff70cc2fa05_2cb4c26b-a27d-48b5-a9bd-7bc78abbbcc1.webp?v=1782717693"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43828700184675,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012600G-PTT05","requires_shipping":true,"taxable":true,"featured_image":{"id":36124749758563,"product_id":7920471179363,"position":12,"created_at":"2026-06-29T15:21:30+08:00","updated_at":"2026-06-29T15:21:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3abafb0bef8948eaed49a2d3bac54f07163fa181_85c8f64c-9904-44e2-a358-97b9dada47e8.webp?v=1782717692","variant_ids":[43828700184675]},"available":true,"name":"iPhone 13 Clear 咒術迴戰 懷玉・玉折角色系列-最強組合 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012600G-PTT05","featured_media":{"alt":null,"id":27629992706147,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3abafb0bef8948eaed49a2d3bac54f07163fa181_85c8f64c-9904-44e2-a358-97b9dada47e8.webp?v=1782717692"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3abafb0bef8948eaed49a2d3bac54f07163fa181.webp?v=1762757538","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adcbdd0fa4adc27716e4fd9342b7dd3702ddd19f.webp?v=1762757539","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7109cdeae1533ea468ced7b56f076112278dda87.webp?v=1762757540","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e936b84dc19f5ab9d5733415cfc6cff70cc2fa05.webp?v=1762757540","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e936b84dc19f5ab9d5733415cfc6cff70cc2fa05_52d3edab-83b1-45f1-8552-107be3252dc8.webp?v=1782265101","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adcbdd0fa4adc27716e4fd9342b7dd3702ddd19f_f2fcbcfb-0d84-46e7-9f0a-94edbcb04c48.webp?v=1782265102","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3abafb0bef8948eaed49a2d3bac54f07163fa181_851e06a2-35ab-4542-bc2e-f8b770172429.webp?v=1782265102","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e936b84dc19f5ab9d5733415cfc6cff70cc2fa05_3c37f91b-db23-4061-aa0a-7c689e4e93fd.webp?v=1782291262","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adcbdd0fa4adc27716e4fd9342b7dd3702ddd19f_368276d6-cc9c-4a03-b31b-259b66609844.webp?v=1782291263","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3abafb0bef8948eaed49a2d3bac54f07163fa181_4ee4ff80-7951-4fb3-809b-f0321d2bfae3.webp?v=1782291264","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adcbdd0fa4adc27716e4fd9342b7dd3702ddd19f_c4ee5791-45f7-430c-a6a1-f19980d32743.webp?v=1782717692","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3abafb0bef8948eaed49a2d3bac54f07163fa181_85c8f64c-9904-44e2-a358-97b9dada47e8.webp?v=1782717692","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e936b84dc19f5ab9d5733415cfc6cff70cc2fa05_2cb4c26b-a27d-48b5-a9bd-7bc78abbbcc1.webp?v=1782717693"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3abafb0bef8948eaed49a2d3bac54f07163fa181.webp?v=1762757538","options":["color"],"media":[{"alt":null,"id":26347626201187,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3abafb0bef8948eaed49a2d3bac54f07163fa181.webp?v=1762757538"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3abafb0bef8948eaed49a2d3bac54f07163fa181.webp?v=1762757538","width":2000},{"alt":null,"id":26347626299491,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adcbdd0fa4adc27716e4fd9342b7dd3702ddd19f.webp?v=1762757539"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adcbdd0fa4adc27716e4fd9342b7dd3702ddd19f.webp?v=1762757539","width":2000},{"alt":null,"id":26347626430563,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7109cdeae1533ea468ced7b56f076112278dda87.webp?v=1762757540"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7109cdeae1533ea468ced7b56f076112278dda87.webp?v=1762757540","width":2000},{"alt":null,"id":26347626561635,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e936b84dc19f5ab9d5733415cfc6cff70cc2fa05.webp?v=1762757540"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e936b84dc19f5ab9d5733415cfc6cff70cc2fa05.webp?v=1762757540","width":2000},{"alt":null,"id":27586961244259,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e936b84dc19f5ab9d5733415cfc6cff70cc2fa05_52d3edab-83b1-45f1-8552-107be3252dc8.webp?v=1782265101"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e936b84dc19f5ab9d5733415cfc6cff70cc2fa05_52d3edab-83b1-45f1-8552-107be3252dc8.webp?v=1782265101","width":2000},{"alt":null,"id":27586962096227,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adcbdd0fa4adc27716e4fd9342b7dd3702ddd19f_f2fcbcfb-0d84-46e7-9f0a-94edbcb04c48.webp?v=1782265102"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adcbdd0fa4adc27716e4fd9342b7dd3702ddd19f_f2fcbcfb-0d84-46e7-9f0a-94edbcb04c48.webp?v=1782265102","width":2000},{"alt":null,"id":27586962686051,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3abafb0bef8948eaed49a2d3bac54f07163fa181_851e06a2-35ab-4542-bc2e-f8b770172429.webp?v=1782265102"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3abafb0bef8948eaed49a2d3bac54f07163fa181_851e06a2-35ab-4542-bc2e-f8b770172429.webp?v=1782265102","width":2000},{"alt":null,"id":27594571120739,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e936b84dc19f5ab9d5733415cfc6cff70cc2fa05_3c37f91b-db23-4061-aa0a-7c689e4e93fd.webp?v=1782291262"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e936b84dc19f5ab9d5733415cfc6cff70cc2fa05_3c37f91b-db23-4061-aa0a-7c689e4e93fd.webp?v=1782291262","width":2000},{"alt":null,"id":27594571284579,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adcbdd0fa4adc27716e4fd9342b7dd3702ddd19f_368276d6-cc9c-4a03-b31b-259b66609844.webp?v=1782291263"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adcbdd0fa4adc27716e4fd9342b7dd3702ddd19f_368276d6-cc9c-4a03-b31b-259b66609844.webp?v=1782291263","width":2000},{"alt":null,"id":27594571645027,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3abafb0bef8948eaed49a2d3bac54f07163fa181_4ee4ff80-7951-4fb3-809b-f0321d2bfae3.webp?v=1782291264"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3abafb0bef8948eaed49a2d3bac54f07163fa181_4ee4ff80-7951-4fb3-809b-f0321d2bfae3.webp?v=1782291264","width":2000},{"alt":null,"id":27629992378467,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adcbdd0fa4adc27716e4fd9342b7dd3702ddd19f_c4ee5791-45f7-430c-a6a1-f19980d32743.webp?v=1782717692"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adcbdd0fa4adc27716e4fd9342b7dd3702ddd19f_c4ee5791-45f7-430c-a6a1-f19980d32743.webp?v=1782717692","width":2000},{"alt":null,"id":27629992706147,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3abafb0bef8948eaed49a2d3bac54f07163fa181_85c8f64c-9904-44e2-a358-97b9dada47e8.webp?v=1782717692"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3abafb0bef8948eaed49a2d3bac54f07163fa181_85c8f64c-9904-44e2-a358-97b9dada47e8.webp?v=1782717692","width":2000},{"alt":null,"id":27629992902755,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e936b84dc19f5ab9d5733415cfc6cff70cc2fa05_2cb4c26b-a27d-48b5-a9bd-7bc78abbbcc1.webp?v=1782717693"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e936b84dc19f5ab9d5733415cfc6cff70cc2fa05_2cb4c26b-a27d-48b5-a9bd-7bc78abbbcc1.webp?v=1782717693","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43828698775651,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012600J-PTT05","requires_shipping":true,"taxable":true,"featured_image":{"id":36124749430883,"product_id":7920471179363,"position":11,"created_at":"2026-06-29T15:21:29+08:00","updated_at":"2026-06-29T15:21:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adcbdd0fa4adc27716e4fd9342b7dd3702ddd19f_c4ee5791-45f7-430c-a6a1-f19980d32743.webp?v=1782717692","variant_ids":[43828698775651]},"available":true,"name":"iPhone 13 Clear 咒術迴戰 懷玉・玉折角色系列-最強組合 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012600J-PTT05","featured_media":{"alt":null,"id":27629992378467,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adcbdd0fa4adc27716e4fd9342b7dd3702ddd19f_c4ee5791-45f7-430c-a6a1-f19980d32743.webp?v=1782717692"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43828700151907,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012600I-PTT05","requires_shipping":true,"taxable":true,"featured_image":{"id":36124749955171,"product_id":7920471179363,"position":13,"created_at":"2026-06-29T15:21:30+08:00","updated_at":"2026-06-29T15:21:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e936b84dc19f5ab9d5733415cfc6cff70cc2fa05_2cb4c26b-a27d-48b5-a9bd-7bc78abbbcc1.webp?v=1782717693","variant_ids":[43828700151907]},"available":true,"name":"iPhone 13 Clear 咒術迴戰 懷玉・玉折角色系列-最強組合 - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012600I-PTT05","featured_media":{"alt":null,"id":27629992902755,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e936b84dc19f5ab9d5733415cfc6cff70cc2fa05_2cb4c26b-a27d-48b5-a9bd-7bc78abbbcc1.webp?v=1782717693"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43828700184675,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012600G-PTT05","requires_shipping":true,"taxable":true,"featured_image":{"id":36124749758563,"product_id":7920471179363,"position":12,"created_at":"2026-06-29T15:21:30+08:00","updated_at":"2026-06-29T15:21:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3abafb0bef8948eaed49a2d3bac54f07163fa181_85c8f64c-9904-44e2-a358-97b9dada47e8.webp?v=1782717692","variant_ids":[43828700184675]},"available":true,"name":"iPhone 13 Clear 咒術迴戰 懷玉・玉折角色系列-最強組合 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012600G-PTT05","featured_media":{"alt":null,"id":27629992706147,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3abafb0bef8948eaed49a2d3bac54f07163fa181_85c8f64c-9904-44e2-a358-97b9dada47e8.webp?v=1782717692"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43828698775651,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012600J-PTT05","requires_shipping":true,"taxable":true,"featured_image":{"id":36124749430883,"product_id":7920471179363,"position":11,"created_at":"2026-06-29T15:21:29+08:00","updated_at":"2026-06-29T15:21:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adcbdd0fa4adc27716e4fd9342b7dd3702ddd19f_c4ee5791-45f7-430c-a6a1-f19980d32743.webp?v=1782717692","variant_ids":[43828698775651]},"available":true,"name":"iPhone 13 Clear 咒術迴戰 懷玉・玉折角色系列-最強組合 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012600J-PTT05","featured_media":{"alt":null,"id":27629992378467,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adcbdd0fa4adc27716e4fd9342b7dd3702ddd19f_c4ee5791-45f7-430c-a6a1-f19980d32743.webp?v=1782717692"}},"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: "停產"
}