Home
›
iPhone 16 Pro Clear (相機按鈕) Doraemon 哆啦A夢 哆啦A夢表情包
$product = {"id":7729215045731,"title":"iPhone 16 Pro Clear (相機按鈕) Doraemon 哆啦A夢 哆啦A夢表情包","handle":"iphone-16-pro-jellytint-with-capture-button-yr05","description":null,"published_at":"2025-02-06T12:46:19+08:00","created_at":"2025-02-05T17:54:02+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-doraemon","device-iPhone 16 Pro","merge","reseller-doraemon"],"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":43158464659555,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"JTB013270H-YR05","requires_shipping":true,"taxable":true,"featured_image":{"id":36084791672931,"product_id":7729215045731,"position":12,"created_at":"2026-06-24T16:17:54+08:00","updated_at":"2026-06-24T16:17:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04b4cd264c6fc8c1ab9bc3ea942745527e0c8a55_63ad5eb6-ae6b-431d-8497-cb13608b4a7a.webp?v=1782289076","variant_ids":[43158464659555]},"available":true,"name":"iPhone 16 Pro Clear (相機按鈕) Doraemon 哆啦A夢 哆啦A夢表情包 - 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":"JTB013270H-YR05","featured_media":{"alt":null,"id":27593921822819,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04b4cd264c6fc8c1ab9bc3ea942745527e0c8a55_63ad5eb6-ae6b-431d-8497-cb13608b4a7a.webp?v=1782289076"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43158464692323,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"JTB013270G-YR05","requires_shipping":true,"taxable":true,"featured_image":{"id":36084790624355,"product_id":7729215045731,"position":11,"created_at":"2026-06-24T16:17:52+08:00","updated_at":"2026-06-24T16:17:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45b4e888080e0a51ca76f0ff827bead222531f3a_89a2608e-b68e-4656-9783-0557550f0ad8.webp?v=1782289074","variant_ids":[43158464692323]},"available":true,"name":"iPhone 16 Pro Clear (相機按鈕) Doraemon 哆啦A夢 哆啦A夢表情包 - 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":"JTB013270G-YR05","featured_media":{"alt":null,"id":27593920741475,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45b4e888080e0a51ca76f0ff827bead222531f3a_89a2608e-b68e-4656-9783-0557550f0ad8.webp?v=1782289074"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44117236482147,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"JTB013270J-YR05","requires_shipping":true,"taxable":true,"featured_image":{"id":36084792754275,"product_id":7729215045731,"position":13,"created_at":"2026-06-24T16:17:56+08:00","updated_at":"2026-06-24T16:17:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cdc348a02d5443ddf0137f921911cf21b0ac1b9_8f94ef4f-3bd9-4782-bfe1-82b3710b71e6.webp?v=1782289078","variant_ids":[44117236482147]},"available":true,"name":"iPhone 16 Pro Clear (相機按鈕) Doraemon 哆啦A夢 哆啦A夢表情包 - 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":"JTB013270J-YR05","featured_media":{"alt":null,"id":27593922904163,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cdc348a02d5443ddf0137f921911cf21b0ac1b9_8f94ef4f-3bd9-4782-bfe1-82b3710b71e6.webp?v=1782289078"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6014f915f1969a388bfe68e6a8cb415cb38203b2_3c79f762-ae34-475d-953a-8c2e2bb239da.webp?v=1738749244","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04b4cd264c6fc8c1ab9bc3ea942745527e0c8a55.webp?v=1776139883","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45b4e888080e0a51ca76f0ff827bead222531f3a.webp?v=1776139883","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c41629020913f3e5e44d68826e9583b2cd17fa5.webp?v=1776139884","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cdc348a02d5443ddf0137f921911cf21b0ac1b9.webp?v=1776139885","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c41629020913f3e5e44d68826e9583b2cd17fa5_61b5ebd7-447a-40f3-93d6-7c0fa11df3e6.webp?v=1782266778","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45b4e888080e0a51ca76f0ff827bead222531f3a_83a4ff2a-29dd-4636-92cf-4198eea94490.webp?v=1782266779","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04b4cd264c6fc8c1ab9bc3ea942745527e0c8a55_cef0f17f-d473-46ed-82a3-f483ea255981.webp?v=1782266780","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cdc348a02d5443ddf0137f921911cf21b0ac1b9_145cd46e-9372-485a-a755-06c967ee4d8b.webp?v=1782266781","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c41629020913f3e5e44d68826e9583b2cd17fa5_d8d2c54f-b053-4e60-865b-c01c0c75cfbb.webp?v=1782289073","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45b4e888080e0a51ca76f0ff827bead222531f3a_89a2608e-b68e-4656-9783-0557550f0ad8.webp?v=1782289074","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04b4cd264c6fc8c1ab9bc3ea942745527e0c8a55_63ad5eb6-ae6b-431d-8497-cb13608b4a7a.webp?v=1782289076","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cdc348a02d5443ddf0137f921911cf21b0ac1b9_8f94ef4f-3bd9-4782-bfe1-82b3710b71e6.webp?v=1782289078"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6014f915f1969a388bfe68e6a8cb415cb38203b2_3c79f762-ae34-475d-953a-8c2e2bb239da.webp?v=1738749244","options":["color"],"media":[{"alt":null,"id":25256064942179,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6014f915f1969a388bfe68e6a8cb415cb38203b2_3c79f762-ae34-475d-953a-8c2e2bb239da.webp?v=1738749244"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6014f915f1969a388bfe68e6a8cb415cb38203b2_3c79f762-ae34-475d-953a-8c2e2bb239da.webp?v=1738749244","width":2000},{"alt":null,"id":27172636393571,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04b4cd264c6fc8c1ab9bc3ea942745527e0c8a55.webp?v=1776139883"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04b4cd264c6fc8c1ab9bc3ea942745527e0c8a55.webp?v=1776139883","width":2000},{"alt":null,"id":27172636721251,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45b4e888080e0a51ca76f0ff827bead222531f3a.webp?v=1776139883"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45b4e888080e0a51ca76f0ff827bead222531f3a.webp?v=1776139883","width":2000},{"alt":null,"id":27172636852323,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c41629020913f3e5e44d68826e9583b2cd17fa5.webp?v=1776139884"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c41629020913f3e5e44d68826e9583b2cd17fa5.webp?v=1776139884","width":2000},{"alt":null,"id":27172637278307,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cdc348a02d5443ddf0137f921911cf21b0ac1b9.webp?v=1776139885"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cdc348a02d5443ddf0137f921911cf21b0ac1b9.webp?v=1776139885","width":2000},{"alt":null,"id":27587685875811,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c41629020913f3e5e44d68826e9583b2cd17fa5_61b5ebd7-447a-40f3-93d6-7c0fa11df3e6.webp?v=1782266778"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c41629020913f3e5e44d68826e9583b2cd17fa5_61b5ebd7-447a-40f3-93d6-7c0fa11df3e6.webp?v=1782266778","width":2000},{"alt":null,"id":27587686563939,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45b4e888080e0a51ca76f0ff827bead222531f3a_83a4ff2a-29dd-4636-92cf-4198eea94490.webp?v=1782266779"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45b4e888080e0a51ca76f0ff827bead222531f3a_83a4ff2a-29dd-4636-92cf-4198eea94490.webp?v=1782266779","width":2000},{"alt":null,"id":27587686924387,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04b4cd264c6fc8c1ab9bc3ea942745527e0c8a55_cef0f17f-d473-46ed-82a3-f483ea255981.webp?v=1782266780"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04b4cd264c6fc8c1ab9bc3ea942745527e0c8a55_cef0f17f-d473-46ed-82a3-f483ea255981.webp?v=1782266780","width":2000},{"alt":null,"id":27587687317603,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cdc348a02d5443ddf0137f921911cf21b0ac1b9_145cd46e-9372-485a-a755-06c967ee4d8b.webp?v=1782266781"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cdc348a02d5443ddf0137f921911cf21b0ac1b9_145cd46e-9372-485a-a755-06c967ee4d8b.webp?v=1782266781","width":2000},{"alt":null,"id":27593920020579,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c41629020913f3e5e44d68826e9583b2cd17fa5_d8d2c54f-b053-4e60-865b-c01c0c75cfbb.webp?v=1782289073"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c41629020913f3e5e44d68826e9583b2cd17fa5_d8d2c54f-b053-4e60-865b-c01c0c75cfbb.webp?v=1782289073","width":2000},{"alt":null,"id":27593920741475,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45b4e888080e0a51ca76f0ff827bead222531f3a_89a2608e-b68e-4656-9783-0557550f0ad8.webp?v=1782289074"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45b4e888080e0a51ca76f0ff827bead222531f3a_89a2608e-b68e-4656-9783-0557550f0ad8.webp?v=1782289074","width":2000},{"alt":null,"id":27593921822819,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04b4cd264c6fc8c1ab9bc3ea942745527e0c8a55_63ad5eb6-ae6b-431d-8497-cb13608b4a7a.webp?v=1782289076"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04b4cd264c6fc8c1ab9bc3ea942745527e0c8a55_63ad5eb6-ae6b-431d-8497-cb13608b4a7a.webp?v=1782289076","width":2000},{"alt":null,"id":27593922904163,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cdc348a02d5443ddf0137f921911cf21b0ac1b9_8f94ef4f-3bd9-4782-bfe1-82b3710b71e6.webp?v=1782289078"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cdc348a02d5443ddf0137f921911cf21b0ac1b9_8f94ef4f-3bd9-4782-bfe1-82b3710b71e6.webp?v=1782289078","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43158464659555,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"JTB013270H-YR05","requires_shipping":true,"taxable":true,"featured_image":{"id":36084791672931,"product_id":7729215045731,"position":12,"created_at":"2026-06-24T16:17:54+08:00","updated_at":"2026-06-24T16:17:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04b4cd264c6fc8c1ab9bc3ea942745527e0c8a55_63ad5eb6-ae6b-431d-8497-cb13608b4a7a.webp?v=1782289076","variant_ids":[43158464659555]},"available":true,"name":"iPhone 16 Pro Clear (相機按鈕) Doraemon 哆啦A夢 哆啦A夢表情包 - 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":"JTB013270H-YR05","featured_media":{"alt":null,"id":27593921822819,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04b4cd264c6fc8c1ab9bc3ea942745527e0c8a55_63ad5eb6-ae6b-431d-8497-cb13608b4a7a.webp?v=1782289076"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43158464692323,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"JTB013270G-YR05","requires_shipping":true,"taxable":true,"featured_image":{"id":36084790624355,"product_id":7729215045731,"position":11,"created_at":"2026-06-24T16:17:52+08:00","updated_at":"2026-06-24T16:17:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45b4e888080e0a51ca76f0ff827bead222531f3a_89a2608e-b68e-4656-9783-0557550f0ad8.webp?v=1782289074","variant_ids":[43158464692323]},"available":true,"name":"iPhone 16 Pro Clear (相機按鈕) Doraemon 哆啦A夢 哆啦A夢表情包 - 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":"JTB013270G-YR05","featured_media":{"alt":null,"id":27593920741475,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45b4e888080e0a51ca76f0ff827bead222531f3a_89a2608e-b68e-4656-9783-0557550f0ad8.webp?v=1782289074"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44117236482147,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"JTB013270J-YR05","requires_shipping":true,"taxable":true,"featured_image":{"id":36084792754275,"product_id":7729215045731,"position":13,"created_at":"2026-06-24T16:17:56+08:00","updated_at":"2026-06-24T16:17:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cdc348a02d5443ddf0137f921911cf21b0ac1b9_8f94ef4f-3bd9-4782-bfe1-82b3710b71e6.webp?v=1782289078","variant_ids":[44117236482147]},"available":true,"name":"iPhone 16 Pro Clear (相機按鈕) Doraemon 哆啦A夢 哆啦A夢表情包 - 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":"JTB013270J-YR05","featured_media":{"alt":null,"id":27593922904163,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cdc348a02d5443ddf0137f921911cf21b0ac1b9_8f94ef4f-3bd9-4782-bfe1-82b3710b71e6.webp?v=1782289078"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43158464659555,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"JTB013270H-YR05","requires_shipping":true,"taxable":true,"featured_image":{"id":36084791672931,"product_id":7729215045731,"position":12,"created_at":"2026-06-24T16:17:54+08:00","updated_at":"2026-06-24T16:17:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04b4cd264c6fc8c1ab9bc3ea942745527e0c8a55_63ad5eb6-ae6b-431d-8497-cb13608b4a7a.webp?v=1782289076","variant_ids":[43158464659555]},"available":true,"name":"iPhone 16 Pro Clear (相機按鈕) Doraemon 哆啦A夢 哆啦A夢表情包 - 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":"JTB013270H-YR05","featured_media":{"alt":null,"id":27593921822819,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04b4cd264c6fc8c1ab9bc3ea942745527e0c8a55_63ad5eb6-ae6b-431d-8497-cb13608b4a7a.webp?v=1782289076"}},"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: "停產"
}