Home
›
iPhone 15 Pro Clear 咒術迴戰 懷玉・玉折戰鬥系列-五條悟
$product = {"id":7920570695779,"title":"iPhone 15 Pro Clear 咒術迴戰 懷玉・玉折戰鬥系列-五條悟","handle":"iphone-15-pro-jellytint-ptt01","description":null,"published_at":"2025-11-10T16:29:30+08:00","created_at":"2025-11-10T15:13:14+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-jujutsu-kaisen","device-iPhone 15 Pro","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":43829023965283,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"CCN012970H-PTT01","requires_shipping":true,"taxable":true,"featured_image":{"id":36125168402531,"product_id":7920570695779,"position":12,"created_at":"2026-06-29T15:43:39+08:00","updated_at":"2026-06-29T15:43:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30b713a4930bc419fdcd6c8b96339164973ddd0e_1c208170-67b4-478d-9d53-4c2b5a2204a1.webp?v=1782719021","variant_ids":[43829023965283]},"available":true,"name":"iPhone 15 Pro Clear 咒術迴戰 懷玉・玉折戰鬥系列-五條悟 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012970H-PTT01","featured_media":{"alt":null,"id":27630411186275,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30b713a4930bc419fdcd6c8b96339164973ddd0e_1c208170-67b4-478d-9d53-4c2b5a2204a1.webp?v=1782719021"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43829023998051,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012970I-PTT01","requires_shipping":true,"taxable":true,"featured_image":{"id":36125167845475,"product_id":7920570695779,"position":11,"created_at":"2026-06-29T15:43:39+08:00","updated_at":"2026-06-29T15:43:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6795d9261909c611e7a2447bfd9c202c76b0694_6f1c4df2-1745-4c91-87c5-0fb0a66807fb.webp?v=1782719021","variant_ids":[43829023998051]},"available":true,"name":"iPhone 15 Pro 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":"CCN012970I-PTT01","featured_media":{"alt":null,"id":27630410629219,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6795d9261909c611e7a2447bfd9c202c76b0694_6f1c4df2-1745-4c91-87c5-0fb0a66807fb.webp?v=1782719021"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43829024030819,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012970G-PTT01","requires_shipping":true,"taxable":true,"featured_image":{"id":36125168861283,"product_id":7920570695779,"position":13,"created_at":"2026-06-29T15:43:40+08:00","updated_at":"2026-06-29T15:43:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e27d823d763c6ce3e0612efbcbc850e2c4374cb_c8eea88e-0f97-4006-a037-0b1d485c5d51.webp?v=1782719022","variant_ids":[43829024030819]},"available":true,"name":"iPhone 15 Pro 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":"CCN012970G-PTT01","featured_media":{"alt":null,"id":27630411645027,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e27d823d763c6ce3e0612efbcbc850e2c4374cb_c8eea88e-0f97-4006-a037-0b1d485c5d51.webp?v=1782719022"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e27d823d763c6ce3e0612efbcbc850e2c4374cb.webp?v=1762758801","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6795d9261909c611e7a2447bfd9c202c76b0694.webp?v=1762758801","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30b713a4930bc419fdcd6c8b96339164973ddd0e.webp?v=1762758802","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b9f89f9e5d39d83c1d5e6ca2824b381f8e374cb.webp?v=1762758802","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6795d9261909c611e7a2447bfd9c202c76b0694_df49b90f-8bd1-4fb6-bfa2-7e53eea6010e.webp?v=1782266187","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30b713a4930bc419fdcd6c8b96339164973ddd0e_422a5853-2974-48c9-8efa-1f28f6bd0bc8.webp?v=1782266188","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e27d823d763c6ce3e0612efbcbc850e2c4374cb_9e046b8b-81a0-4b87-a490-266ace713a7f.webp?v=1782266188","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6795d9261909c611e7a2447bfd9c202c76b0694_03941a1a-bb31-48fe-908f-aacaf43c808c.webp?v=1782291761","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30b713a4930bc419fdcd6c8b96339164973ddd0e_66441716-8b91-4ca7-9a51-d4e4b90c7cf7.webp?v=1782291762","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e27d823d763c6ce3e0612efbcbc850e2c4374cb_f9815192-4fe0-4417-9226-4b5be5d6ae05.webp?v=1782291762","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6795d9261909c611e7a2447bfd9c202c76b0694_6f1c4df2-1745-4c91-87c5-0fb0a66807fb.webp?v=1782719021","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30b713a4930bc419fdcd6c8b96339164973ddd0e_1c208170-67b4-478d-9d53-4c2b5a2204a1.webp?v=1782719021","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e27d823d763c6ce3e0612efbcbc850e2c4374cb_c8eea88e-0f97-4006-a037-0b1d485c5d51.webp?v=1782719022"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e27d823d763c6ce3e0612efbcbc850e2c4374cb.webp?v=1762758801","options":["color"],"media":[{"alt":null,"id":26347929141347,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e27d823d763c6ce3e0612efbcbc850e2c4374cb.webp?v=1762758801"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e27d823d763c6ce3e0612efbcbc850e2c4374cb.webp?v=1762758801","width":2000},{"alt":null,"id":26347929403491,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6795d9261909c611e7a2447bfd9c202c76b0694.webp?v=1762758801"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6795d9261909c611e7a2447bfd9c202c76b0694.webp?v=1762758801","width":2000},{"alt":null,"id":26347929534563,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30b713a4930bc419fdcd6c8b96339164973ddd0e.webp?v=1762758802"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30b713a4930bc419fdcd6c8b96339164973ddd0e.webp?v=1762758802","width":2000},{"alt":null,"id":26347929763939,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b9f89f9e5d39d83c1d5e6ca2824b381f8e374cb.webp?v=1762758802"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b9f89f9e5d39d83c1d5e6ca2824b381f8e374cb.webp?v=1762758802","width":2000},{"alt":null,"id":27587429793891,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6795d9261909c611e7a2447bfd9c202c76b0694_df49b90f-8bd1-4fb6-bfa2-7e53eea6010e.webp?v=1782266187"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6795d9261909c611e7a2447bfd9c202c76b0694_df49b90f-8bd1-4fb6-bfa2-7e53eea6010e.webp?v=1782266187","width":2000},{"alt":null,"id":27587430121571,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30b713a4930bc419fdcd6c8b96339164973ddd0e_422a5853-2974-48c9-8efa-1f28f6bd0bc8.webp?v=1782266188"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30b713a4930bc419fdcd6c8b96339164973ddd0e_422a5853-2974-48c9-8efa-1f28f6bd0bc8.webp?v=1782266188","width":2000},{"alt":null,"id":27587430416483,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e27d823d763c6ce3e0612efbcbc850e2c4374cb_9e046b8b-81a0-4b87-a490-266ace713a7f.webp?v=1782266188"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e27d823d763c6ce3e0612efbcbc850e2c4374cb_9e046b8b-81a0-4b87-a490-266ace713a7f.webp?v=1782266188","width":2000},{"alt":null,"id":27594723917923,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6795d9261909c611e7a2447bfd9c202c76b0694_03941a1a-bb31-48fe-908f-aacaf43c808c.webp?v=1782291761"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6795d9261909c611e7a2447bfd9c202c76b0694_03941a1a-bb31-48fe-908f-aacaf43c808c.webp?v=1782291761","width":2000},{"alt":null,"id":27594724245603,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30b713a4930bc419fdcd6c8b96339164973ddd0e_66441716-8b91-4ca7-9a51-d4e4b90c7cf7.webp?v=1782291762"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30b713a4930bc419fdcd6c8b96339164973ddd0e_66441716-8b91-4ca7-9a51-d4e4b90c7cf7.webp?v=1782291762","width":2000},{"alt":null,"id":27594724376675,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e27d823d763c6ce3e0612efbcbc850e2c4374cb_f9815192-4fe0-4417-9226-4b5be5d6ae05.webp?v=1782291762"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e27d823d763c6ce3e0612efbcbc850e2c4374cb_f9815192-4fe0-4417-9226-4b5be5d6ae05.webp?v=1782291762","width":2000},{"alt":null,"id":27630410629219,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6795d9261909c611e7a2447bfd9c202c76b0694_6f1c4df2-1745-4c91-87c5-0fb0a66807fb.webp?v=1782719021"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6795d9261909c611e7a2447bfd9c202c76b0694_6f1c4df2-1745-4c91-87c5-0fb0a66807fb.webp?v=1782719021","width":2000},{"alt":null,"id":27630411186275,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30b713a4930bc419fdcd6c8b96339164973ddd0e_1c208170-67b4-478d-9d53-4c2b5a2204a1.webp?v=1782719021"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30b713a4930bc419fdcd6c8b96339164973ddd0e_1c208170-67b4-478d-9d53-4c2b5a2204a1.webp?v=1782719021","width":2000},{"alt":null,"id":27630411645027,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e27d823d763c6ce3e0612efbcbc850e2c4374cb_c8eea88e-0f97-4006-a037-0b1d485c5d51.webp?v=1782719022"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e27d823d763c6ce3e0612efbcbc850e2c4374cb_c8eea88e-0f97-4006-a037-0b1d485c5d51.webp?v=1782719022","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43829023965283,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"CCN012970H-PTT01","requires_shipping":true,"taxable":true,"featured_image":{"id":36125168402531,"product_id":7920570695779,"position":12,"created_at":"2026-06-29T15:43:39+08:00","updated_at":"2026-06-29T15:43:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30b713a4930bc419fdcd6c8b96339164973ddd0e_1c208170-67b4-478d-9d53-4c2b5a2204a1.webp?v=1782719021","variant_ids":[43829023965283]},"available":true,"name":"iPhone 15 Pro Clear 咒術迴戰 懷玉・玉折戰鬥系列-五條悟 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012970H-PTT01","featured_media":{"alt":null,"id":27630411186275,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30b713a4930bc419fdcd6c8b96339164973ddd0e_1c208170-67b4-478d-9d53-4c2b5a2204a1.webp?v=1782719021"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43829023998051,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012970I-PTT01","requires_shipping":true,"taxable":true,"featured_image":{"id":36125167845475,"product_id":7920570695779,"position":11,"created_at":"2026-06-29T15:43:39+08:00","updated_at":"2026-06-29T15:43:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6795d9261909c611e7a2447bfd9c202c76b0694_6f1c4df2-1745-4c91-87c5-0fb0a66807fb.webp?v=1782719021","variant_ids":[43829023998051]},"available":true,"name":"iPhone 15 Pro 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":"CCN012970I-PTT01","featured_media":{"alt":null,"id":27630410629219,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6795d9261909c611e7a2447bfd9c202c76b0694_6f1c4df2-1745-4c91-87c5-0fb0a66807fb.webp?v=1782719021"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43829024030819,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012970G-PTT01","requires_shipping":true,"taxable":true,"featured_image":{"id":36125168861283,"product_id":7920570695779,"position":13,"created_at":"2026-06-29T15:43:40+08:00","updated_at":"2026-06-29T15:43:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e27d823d763c6ce3e0612efbcbc850e2c4374cb_c8eea88e-0f97-4006-a037-0b1d485c5d51.webp?v=1782719022","variant_ids":[43829024030819]},"available":true,"name":"iPhone 15 Pro 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":"CCN012970G-PTT01","featured_media":{"alt":null,"id":27630411645027,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e27d823d763c6ce3e0612efbcbc850e2c4374cb_c8eea88e-0f97-4006-a037-0b1d485c5d51.webp?v=1782719022"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43829023965283,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"CCN012970H-PTT01","requires_shipping":true,"taxable":true,"featured_image":{"id":36125168402531,"product_id":7920570695779,"position":12,"created_at":"2026-06-29T15:43:39+08:00","updated_at":"2026-06-29T15:43:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30b713a4930bc419fdcd6c8b96339164973ddd0e_1c208170-67b4-478d-9d53-4c2b5a2204a1.webp?v=1782719021","variant_ids":[43829023965283]},"available":true,"name":"iPhone 15 Pro Clear 咒術迴戰 懷玉・玉折戰鬥系列-五條悟 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012970H-PTT01","featured_media":{"alt":null,"id":27630411186275,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30b713a4930bc419fdcd6c8b96339164973ddd0e_1c208170-67b4-478d-9d53-4c2b5a2204a1.webp?v=1782719021"}},"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: "停產"
}