Home
›
iPhone 17 Pro Clear (MagSafe 兼容 & 相機按鈕) 咒術迴戰 懷玉・玉折劇照系列-五條悟&夏油傑雨天款
$product = {"id":7920596385891,"title":"iPhone 17 Pro Clear (MagSafe 兼容 \u0026 相機按鈕) 咒術迴戰 懷玉・玉折劇照系列-五條悟&夏油傑雨天款","handle":"iphone-17-pro-jellytint-magsafe-with-capture-button-ptt10","description":null,"published_at":"2025-11-10T16:25:35+08:00","created_at":"2025-11-10T15:50:40+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-jujutsu-kaisen","device-iPhone 17 Pro","merge","reseller-jujutsu-kaisen"],"price":148000,"price_min":148000,"price_max":148000,"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":43829119516771,"title":"Nocturne Blue","option1":"Nocturne Blue","option2":null,"option3":null,"sku":"MJB013524M-PTT10","requires_shipping":true,"taxable":true,"featured_image":{"id":36125577871459,"product_id":7920596385891,"position":11,"created_at":"2026-06-29T16:06:43+08:00","updated_at":"2026-06-29T16:06:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/befd1d33f000d436b0762afac44213cd1394e71b_2406374b-777e-45fb-b139-f0c8bccb4f51.webp?v=1782720405","variant_ids":[43829119516771]},"available":true,"name":"iPhone 17 Pro Clear (MagSafe 兼容 \u0026 相機按鈕) 咒術迴戰 懷玉・玉折劇照系列-五條悟&夏油傑雨天款 - Nocturne Blue","public_title":"Nocturne Blue","options":["Nocturne Blue"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MJB013524M-PTT10","featured_media":{"alt":null,"id":27630819901539,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/befd1d33f000d436b0762afac44213cd1394e71b_2406374b-777e-45fb-b139-f0c8bccb4f51.webp?v=1782720405"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43829121286243,"title":"Gleam Rosé","option1":"Gleam Rosé","option2":null,"option3":null,"sku":"MJB013524L-PTT10","requires_shipping":true,"taxable":true,"featured_image":{"id":36125577642083,"product_id":7920596385891,"position":10,"created_at":"2026-06-29T16:06:43+08:00","updated_at":"2026-06-29T16:06:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b3ee8b8461d478dd02dc080a7b2511b7ae114d8_bb055329-ba16-46f1-a583-ee0256071b04.webp?v=1782720405","variant_ids":[43829121286243]},"available":true,"name":"iPhone 17 Pro Clear (MagSafe 兼容 \u0026 相機按鈕) 咒術迴戰 懷玉・玉折劇照系列-五條悟&夏油傑雨天款 - Gleam Rosé","public_title":"Gleam Rosé","options":["Gleam Rosé"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MJB013524L-PTT10","featured_media":{"alt":null,"id":27630819672163,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b3ee8b8461d478dd02dc080a7b2511b7ae114d8_bb055329-ba16-46f1-a583-ee0256071b04.webp?v=1782720405"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43829121319011,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MJB013520G-PTT10","requires_shipping":true,"taxable":true,"featured_image":{"id":36125578068067,"product_id":7920596385891,"position":12,"created_at":"2026-06-29T16:06:44+08:00","updated_at":"2026-06-29T16:06:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b5d0ac6e90ad5d24f4b823e54c620809477e7a0_7924028b-8c78-4828-b37f-154f44126b9c.webp?v=1782720406","variant_ids":[43829121319011]},"available":true,"name":"iPhone 17 Pro Clear (MagSafe 兼容 \u0026 相機按鈕) 咒術迴戰 懷玉・玉折劇照系列-五條悟&夏油傑雨天款 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MJB013520G-PTT10","featured_media":{"alt":null,"id":27630820098147,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b5d0ac6e90ad5d24f4b823e54c620809477e7a0_7924028b-8c78-4828-b37f-154f44126b9c.webp?v=1782720406"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b3ee8b8461d478dd02dc080a7b2511b7ae114d8.webp?v=1762761046","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/befd1d33f000d436b0762afac44213cd1394e71b.webp?v=1762761047","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b5d0ac6e90ad5d24f4b823e54c620809477e7a0.webp?v=1762761047","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b3ee8b8461d478dd02dc080a7b2511b7ae114d8_547ea325-7458-4502-b9c5-773c5a8b5deb.webp?v=1782267420","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b5d0ac6e90ad5d24f4b823e54c620809477e7a0_5c21160b-e3b5-42d7-9d6b-fc86937b1f3f.webp?v=1782267421","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/befd1d33f000d436b0762afac44213cd1394e71b_e053f195-1e51-423a-9a0d-2a3a1561edcb.webp?v=1782267422","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b3ee8b8461d478dd02dc080a7b2511b7ae114d8_783a76a7-016a-422b-9184-298a65c25f87.webp?v=1782292319","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b5d0ac6e90ad5d24f4b823e54c620809477e7a0_5084d0ed-71cb-41e7-aa02-6b18625d5cf0.webp?v=1782292319","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/befd1d33f000d436b0762afac44213cd1394e71b_34ab6b36-224d-4ac2-8a5d-071d7133aecf.webp?v=1782292320","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b3ee8b8461d478dd02dc080a7b2511b7ae114d8_bb055329-ba16-46f1-a583-ee0256071b04.webp?v=1782720405","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/befd1d33f000d436b0762afac44213cd1394e71b_2406374b-777e-45fb-b139-f0c8bccb4f51.webp?v=1782720405","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b5d0ac6e90ad5d24f4b823e54c620809477e7a0_7924028b-8c78-4828-b37f-154f44126b9c.webp?v=1782720406"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b3ee8b8461d478dd02dc080a7b2511b7ae114d8.webp?v=1762761046","options":["color"],"media":[{"alt":null,"id":26348091080803,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b3ee8b8461d478dd02dc080a7b2511b7ae114d8.webp?v=1762761046"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b3ee8b8461d478dd02dc080a7b2511b7ae114d8.webp?v=1762761046","width":2000},{"alt":null,"id":26348091310179,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/befd1d33f000d436b0762afac44213cd1394e71b.webp?v=1762761047"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/befd1d33f000d436b0762afac44213cd1394e71b.webp?v=1762761047","width":2000},{"alt":null,"id":26348091474019,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b5d0ac6e90ad5d24f4b823e54c620809477e7a0.webp?v=1762761047"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b5d0ac6e90ad5d24f4b823e54c620809477e7a0.webp?v=1762761047","width":2000},{"alt":null,"id":27587964305507,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b3ee8b8461d478dd02dc080a7b2511b7ae114d8_547ea325-7458-4502-b9c5-773c5a8b5deb.webp?v=1782267420"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b3ee8b8461d478dd02dc080a7b2511b7ae114d8_547ea325-7458-4502-b9c5-773c5a8b5deb.webp?v=1782267420","width":2000},{"alt":null,"id":27587964665955,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b5d0ac6e90ad5d24f4b823e54c620809477e7a0_5c21160b-e3b5-42d7-9d6b-fc86937b1f3f.webp?v=1782267421"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b5d0ac6e90ad5d24f4b823e54c620809477e7a0_5c21160b-e3b5-42d7-9d6b-fc86937b1f3f.webp?v=1782267421","width":2000},{"alt":null,"id":27587964960867,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/befd1d33f000d436b0762afac44213cd1394e71b_e053f195-1e51-423a-9a0d-2a3a1561edcb.webp?v=1782267422"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/befd1d33f000d436b0762afac44213cd1394e71b_e053f195-1e51-423a-9a0d-2a3a1561edcb.webp?v=1782267422","width":2000},{"alt":null,"id":27594873569379,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b3ee8b8461d478dd02dc080a7b2511b7ae114d8_783a76a7-016a-422b-9184-298a65c25f87.webp?v=1782292319"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b3ee8b8461d478dd02dc080a7b2511b7ae114d8_783a76a7-016a-422b-9184-298a65c25f87.webp?v=1782292319","width":2000},{"alt":null,"id":27594873864291,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b5d0ac6e90ad5d24f4b823e54c620809477e7a0_5084d0ed-71cb-41e7-aa02-6b18625d5cf0.webp?v=1782292319"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b5d0ac6e90ad5d24f4b823e54c620809477e7a0_5084d0ed-71cb-41e7-aa02-6b18625d5cf0.webp?v=1782292319","width":2000},{"alt":null,"id":27594874224739,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/befd1d33f000d436b0762afac44213cd1394e71b_34ab6b36-224d-4ac2-8a5d-071d7133aecf.webp?v=1782292320"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/befd1d33f000d436b0762afac44213cd1394e71b_34ab6b36-224d-4ac2-8a5d-071d7133aecf.webp?v=1782292320","width":2000},{"alt":null,"id":27630819672163,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b3ee8b8461d478dd02dc080a7b2511b7ae114d8_bb055329-ba16-46f1-a583-ee0256071b04.webp?v=1782720405"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b3ee8b8461d478dd02dc080a7b2511b7ae114d8_bb055329-ba16-46f1-a583-ee0256071b04.webp?v=1782720405","width":2000},{"alt":null,"id":27630819901539,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/befd1d33f000d436b0762afac44213cd1394e71b_2406374b-777e-45fb-b139-f0c8bccb4f51.webp?v=1782720405"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/befd1d33f000d436b0762afac44213cd1394e71b_2406374b-777e-45fb-b139-f0c8bccb4f51.webp?v=1782720405","width":2000},{"alt":null,"id":27630820098147,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b5d0ac6e90ad5d24f4b823e54c620809477e7a0_7924028b-8c78-4828-b37f-154f44126b9c.webp?v=1782720406"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b5d0ac6e90ad5d24f4b823e54c620809477e7a0_7924028b-8c78-4828-b37f-154f44126b9c.webp?v=1782720406","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43829119516771,"title":"Nocturne Blue","option1":"Nocturne Blue","option2":null,"option3":null,"sku":"MJB013524M-PTT10","requires_shipping":true,"taxable":true,"featured_image":{"id":36125577871459,"product_id":7920596385891,"position":11,"created_at":"2026-06-29T16:06:43+08:00","updated_at":"2026-06-29T16:06:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/befd1d33f000d436b0762afac44213cd1394e71b_2406374b-777e-45fb-b139-f0c8bccb4f51.webp?v=1782720405","variant_ids":[43829119516771]},"available":true,"name":"iPhone 17 Pro Clear (MagSafe 兼容 \u0026 相機按鈕) 咒術迴戰 懷玉・玉折劇照系列-五條悟&夏油傑雨天款 - Nocturne Blue","public_title":"Nocturne Blue","options":["Nocturne Blue"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MJB013524M-PTT10","featured_media":{"alt":null,"id":27630819901539,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/befd1d33f000d436b0762afac44213cd1394e71b_2406374b-777e-45fb-b139-f0c8bccb4f51.webp?v=1782720405"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43829121286243,"title":"Gleam Rosé","option1":"Gleam Rosé","option2":null,"option3":null,"sku":"MJB013524L-PTT10","requires_shipping":true,"taxable":true,"featured_image":{"id":36125577642083,"product_id":7920596385891,"position":10,"created_at":"2026-06-29T16:06:43+08:00","updated_at":"2026-06-29T16:06:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b3ee8b8461d478dd02dc080a7b2511b7ae114d8_bb055329-ba16-46f1-a583-ee0256071b04.webp?v=1782720405","variant_ids":[43829121286243]},"available":true,"name":"iPhone 17 Pro Clear (MagSafe 兼容 \u0026 相機按鈕) 咒術迴戰 懷玉・玉折劇照系列-五條悟&夏油傑雨天款 - Gleam Rosé","public_title":"Gleam Rosé","options":["Gleam Rosé"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MJB013524L-PTT10","featured_media":{"alt":null,"id":27630819672163,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b3ee8b8461d478dd02dc080a7b2511b7ae114d8_bb055329-ba16-46f1-a583-ee0256071b04.webp?v=1782720405"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43829121319011,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MJB013520G-PTT10","requires_shipping":true,"taxable":true,"featured_image":{"id":36125578068067,"product_id":7920596385891,"position":12,"created_at":"2026-06-29T16:06:44+08:00","updated_at":"2026-06-29T16:06:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b5d0ac6e90ad5d24f4b823e54c620809477e7a0_7924028b-8c78-4828-b37f-154f44126b9c.webp?v=1782720406","variant_ids":[43829121319011]},"available":true,"name":"iPhone 17 Pro Clear (MagSafe 兼容 \u0026 相機按鈕) 咒術迴戰 懷玉・玉折劇照系列-五條悟&夏油傑雨天款 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MJB013520G-PTT10","featured_media":{"alt":null,"id":27630820098147,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b5d0ac6e90ad5d24f4b823e54c620809477e7a0_7924028b-8c78-4828-b37f-154f44126b9c.webp?v=1782720406"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43829119516771,"title":"Nocturne Blue","option1":"Nocturne Blue","option2":null,"option3":null,"sku":"MJB013524M-PTT10","requires_shipping":true,"taxable":true,"featured_image":{"id":36125577871459,"product_id":7920596385891,"position":11,"created_at":"2026-06-29T16:06:43+08:00","updated_at":"2026-06-29T16:06:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/befd1d33f000d436b0762afac44213cd1394e71b_2406374b-777e-45fb-b139-f0c8bccb4f51.webp?v=1782720405","variant_ids":[43829119516771]},"available":true,"name":"iPhone 17 Pro Clear (MagSafe 兼容 \u0026 相機按鈕) 咒術迴戰 懷玉・玉折劇照系列-五條悟&夏油傑雨天款 - Nocturne Blue","public_title":"Nocturne Blue","options":["Nocturne Blue"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MJB013524M-PTT10","featured_media":{"alt":null,"id":27630819901539,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/befd1d33f000d436b0762afac44213cd1394e71b_2406374b-777e-45fb-b139-f0c8bccb4f51.webp?v=1782720405"}},"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: "停產"
}