Home
›
iPhone 15 Pro Clear (MagSafe 兼容) StarWars 星際大戰 星際大戰 – 達斯·維達
$product = {"id":7809209237603,"title":"iPhone 15 Pro Clear (MagSafe 兼容) StarWars 星際大戰 星際大戰 – 達斯·維達","handle":"iphone-15-pro-jellytint-magsafe-pb147","description":null,"published_at":"2025-06-06T18:43:46+08:00","created_at":"2025-06-03T16:02:44+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師JellyTint MagSafe專區-迪士尼-星際大戰 Star Wars","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-star-wars","device-iPhone 15 Pro","merge","reseller-star-wars"],"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":43420142436451,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012970G-PB147","requires_shipping":true,"taxable":true,"featured_image":{"id":35082915151971,"product_id":7809209237603,"position":14,"created_at":"2026-01-09T10:16:03+08:00","updated_at":"2026-01-09T10:16:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9077c1fbd31a4a932d2a2e949e6b9169f212fcf_3d952fd0-1625-4384-a500-6d2c0d033abb.webp?v=1767924965","variant_ids":[43420142436451]},"available":true,"name":"iPhone 15 Pro Clear (MagSafe 兼容) StarWars 星際大戰 星際大戰 – 達斯·維達 - 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":"MCN012970G-PB147","featured_media":{"alt":null,"id":26639854141539,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9077c1fbd31a4a932d2a2e949e6b9169f212fcf_3d952fd0-1625-4384-a500-6d2c0d033abb.webp?v=1767924965"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43420143616099,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"MCN012970I-PB147","requires_shipping":true,"taxable":true,"featured_image":{"id":35082915610723,"product_id":7809209237603,"position":16,"created_at":"2026-01-09T10:16:04+08:00","updated_at":"2026-01-09T10:16:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63be63fb7180e7c0a8636711ba3e3091ef768e2c_c9293baa-6c43-4b58-9ab7-ac503dc934ba.webp?v=1767924966","variant_ids":[43420143616099]},"available":true,"name":"iPhone 15 Pro Clear (MagSafe 兼容) StarWars 星際大戰 星際大戰 – 達斯·維達 - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012970I-PB147","featured_media":{"alt":null,"id":26639854600291,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63be63fb7180e7c0a8636711ba3e3091ef768e2c_c9293baa-6c43-4b58-9ab7-ac503dc934ba.webp?v=1767924966"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dd24fb0f5f79ac0bb100173b040c215ffc4432c.webp?v=1748937769","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9077c1fbd31a4a932d2a2e949e6b9169f212fcf.webp?v=1767858204","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63be63fb7180e7c0a8636711ba3e3091ef768e2c.webp?v=1767858211","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3d2349522be35cb7aef45ba614654dea8327faf.webp?v=1767858205","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63be63fb7180e7c0a8636711ba3e3091ef768e2c_68dce4d7-7b51-4b55-a855-ee9f1dcf6085.webp?v=1767860486","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3d2349522be35cb7aef45ba614654dea8327faf_8a9d7e0f-c2f7-4f8c-b758-992e194d2b47.webp?v=1767860486","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9077c1fbd31a4a932d2a2e949e6b9169f212fcf_aed444d7-3ad9-4800-96fb-72789e91dfb3.webp?v=1767860486","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3d2349522be35cb7aef45ba614654dea8327faf_4d8e070e-0428-4f22-b77e-7cb6fa3c4fb3.webp?v=1767861074","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9077c1fbd31a4a932d2a2e949e6b9169f212fcf_77dfdbf6-f718-48e0-a28c-004b442fa0a1.webp?v=1767861075","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63be63fb7180e7c0a8636711ba3e3091ef768e2c_10665064-1c47-49ba-b9c8-82b2316d7d68.webp?v=1767861075","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9077c1fbd31a4a932d2a2e949e6b9169f212fcf_11ba1342-368e-4437-8b7c-bdaef86716b6.webp?v=1767861372","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63be63fb7180e7c0a8636711ba3e3091ef768e2c_03eb1cff-90dc-4c9c-b354-b2eb6d2d47e8.webp?v=1767861372","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3d2349522be35cb7aef45ba614654dea8327faf_2e5c3511-b9aa-4c72-a4ca-cafd27bfb404.webp?v=1767861373","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9077c1fbd31a4a932d2a2e949e6b9169f212fcf_3d952fd0-1625-4384-a500-6d2c0d033abb.webp?v=1767924965","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3d2349522be35cb7aef45ba614654dea8327faf_c6a0e84a-2566-4f6a-93a0-06a2a489cdd7.webp?v=1767924965","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63be63fb7180e7c0a8636711ba3e3091ef768e2c_c9293baa-6c43-4b58-9ab7-ac503dc934ba.webp?v=1767924966"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dd24fb0f5f79ac0bb100173b040c215ffc4432c.webp?v=1748937769","options":["color"],"media":[{"alt":null,"id":25661916807267,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dd24fb0f5f79ac0bb100173b040c215ffc4432c.webp?v=1748937769"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dd24fb0f5f79ac0bb100173b040c215ffc4432c.webp?v=1748937769","width":2000},{"alt":null,"id":26636203982947,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9077c1fbd31a4a932d2a2e949e6b9169f212fcf.webp?v=1767858204"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9077c1fbd31a4a932d2a2e949e6b9169f212fcf.webp?v=1767858204","width":2000},{"alt":null,"id":26636204245091,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63be63fb7180e7c0a8636711ba3e3091ef768e2c.webp?v=1767858211"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63be63fb7180e7c0a8636711ba3e3091ef768e2c.webp?v=1767858211","width":2000},{"alt":null,"id":26636204572771,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3d2349522be35cb7aef45ba614654dea8327faf.webp?v=1767858205"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3d2349522be35cb7aef45ba614654dea8327faf.webp?v=1767858205","width":2000},{"alt":null,"id":26636271026275,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63be63fb7180e7c0a8636711ba3e3091ef768e2c_68dce4d7-7b51-4b55-a855-ee9f1dcf6085.webp?v=1767860486"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63be63fb7180e7c0a8636711ba3e3091ef768e2c_68dce4d7-7b51-4b55-a855-ee9f1dcf6085.webp?v=1767860486","width":2000},{"alt":null,"id":26636271288419,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3d2349522be35cb7aef45ba614654dea8327faf_8a9d7e0f-c2f7-4f8c-b758-992e194d2b47.webp?v=1767860486"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3d2349522be35cb7aef45ba614654dea8327faf_8a9d7e0f-c2f7-4f8c-b758-992e194d2b47.webp?v=1767860486","width":2000},{"alt":null,"id":26636271616099,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9077c1fbd31a4a932d2a2e949e6b9169f212fcf_aed444d7-3ad9-4800-96fb-72789e91dfb3.webp?v=1767860486"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9077c1fbd31a4a932d2a2e949e6b9169f212fcf_aed444d7-3ad9-4800-96fb-72789e91dfb3.webp?v=1767860486","width":2000},{"alt":null,"id":26636313886819,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3d2349522be35cb7aef45ba614654dea8327faf_4d8e070e-0428-4f22-b77e-7cb6fa3c4fb3.webp?v=1767861074"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3d2349522be35cb7aef45ba614654dea8327faf_4d8e070e-0428-4f22-b77e-7cb6fa3c4fb3.webp?v=1767861074","width":2000},{"alt":null,"id":26636314116195,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9077c1fbd31a4a932d2a2e949e6b9169f212fcf_77dfdbf6-f718-48e0-a28c-004b442fa0a1.webp?v=1767861075"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9077c1fbd31a4a932d2a2e949e6b9169f212fcf_77dfdbf6-f718-48e0-a28c-004b442fa0a1.webp?v=1767861075","width":2000},{"alt":null,"id":26636314280035,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63be63fb7180e7c0a8636711ba3e3091ef768e2c_10665064-1c47-49ba-b9c8-82b2316d7d68.webp?v=1767861075"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63be63fb7180e7c0a8636711ba3e3091ef768e2c_10665064-1c47-49ba-b9c8-82b2316d7d68.webp?v=1767861075","width":2000},{"alt":null,"id":26636353798243,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9077c1fbd31a4a932d2a2e949e6b9169f212fcf_11ba1342-368e-4437-8b7c-bdaef86716b6.webp?v=1767861372"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9077c1fbd31a4a932d2a2e949e6b9169f212fcf_11ba1342-368e-4437-8b7c-bdaef86716b6.webp?v=1767861372","width":2000},{"alt":null,"id":26636354027619,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63be63fb7180e7c0a8636711ba3e3091ef768e2c_03eb1cff-90dc-4c9c-b354-b2eb6d2d47e8.webp?v=1767861372"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63be63fb7180e7c0a8636711ba3e3091ef768e2c_03eb1cff-90dc-4c9c-b354-b2eb6d2d47e8.webp?v=1767861372","width":2000},{"alt":null,"id":26636354322531,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3d2349522be35cb7aef45ba614654dea8327faf_2e5c3511-b9aa-4c72-a4ca-cafd27bfb404.webp?v=1767861373"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3d2349522be35cb7aef45ba614654dea8327faf_2e5c3511-b9aa-4c72-a4ca-cafd27bfb404.webp?v=1767861373","width":2000},{"alt":null,"id":26639854141539,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9077c1fbd31a4a932d2a2e949e6b9169f212fcf_3d952fd0-1625-4384-a500-6d2c0d033abb.webp?v=1767924965"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9077c1fbd31a4a932d2a2e949e6b9169f212fcf_3d952fd0-1625-4384-a500-6d2c0d033abb.webp?v=1767924965","width":2000},{"alt":null,"id":26639854436451,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3d2349522be35cb7aef45ba614654dea8327faf_c6a0e84a-2566-4f6a-93a0-06a2a489cdd7.webp?v=1767924965"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3d2349522be35cb7aef45ba614654dea8327faf_c6a0e84a-2566-4f6a-93a0-06a2a489cdd7.webp?v=1767924965","width":2000},{"alt":null,"id":26639854600291,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63be63fb7180e7c0a8636711ba3e3091ef768e2c_c9293baa-6c43-4b58-9ab7-ac503dc934ba.webp?v=1767924966"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63be63fb7180e7c0a8636711ba3e3091ef768e2c_c9293baa-6c43-4b58-9ab7-ac503dc934ba.webp?v=1767924966","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43420142436451,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012970G-PB147","requires_shipping":true,"taxable":true,"featured_image":{"id":35082915151971,"product_id":7809209237603,"position":14,"created_at":"2026-01-09T10:16:03+08:00","updated_at":"2026-01-09T10:16:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9077c1fbd31a4a932d2a2e949e6b9169f212fcf_3d952fd0-1625-4384-a500-6d2c0d033abb.webp?v=1767924965","variant_ids":[43420142436451]},"available":true,"name":"iPhone 15 Pro Clear (MagSafe 兼容) StarWars 星際大戰 星際大戰 – 達斯·維達 - 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":"MCN012970G-PB147","featured_media":{"alt":null,"id":26639854141539,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9077c1fbd31a4a932d2a2e949e6b9169f212fcf_3d952fd0-1625-4384-a500-6d2c0d033abb.webp?v=1767924965"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43420143616099,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"MCN012970I-PB147","requires_shipping":true,"taxable":true,"featured_image":{"id":35082915610723,"product_id":7809209237603,"position":16,"created_at":"2026-01-09T10:16:04+08:00","updated_at":"2026-01-09T10:16:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63be63fb7180e7c0a8636711ba3e3091ef768e2c_c9293baa-6c43-4b58-9ab7-ac503dc934ba.webp?v=1767924966","variant_ids":[43420143616099]},"available":true,"name":"iPhone 15 Pro Clear (MagSafe 兼容) StarWars 星際大戰 星際大戰 – 達斯·維達 - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012970I-PB147","featured_media":{"alt":null,"id":26639854600291,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63be63fb7180e7c0a8636711ba3e3091ef768e2c_c9293baa-6c43-4b58-9ab7-ac503dc934ba.webp?v=1767924966"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43420142436451,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012970G-PB147","requires_shipping":true,"taxable":true,"featured_image":{"id":35082915151971,"product_id":7809209237603,"position":14,"created_at":"2026-01-09T10:16:03+08:00","updated_at":"2026-01-09T10:16:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9077c1fbd31a4a932d2a2e949e6b9169f212fcf_3d952fd0-1625-4384-a500-6d2c0d033abb.webp?v=1767924965","variant_ids":[43420142436451]},"available":true,"name":"iPhone 15 Pro Clear (MagSafe 兼容) StarWars 星際大戰 星際大戰 – 達斯·維達 - 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":"MCN012970G-PB147","featured_media":{"alt":null,"id":26639854141539,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9077c1fbd31a4a932d2a2e949e6b9169f212fcf_3d952fd0-1625-4384-a500-6d2c0d033abb.webp?v=1767924965"}},"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: "停產"
}