Home
›
iPhone 17 Clear (相機按鈕) NBA Logo-密爾瓦基公鹿 Milwaukee Bucks
$product = {"id":7862762963043,"title":"iPhone 17 Clear (相機按鈕) NBA Logo-密爾瓦基公鹿 Milwaukee Bucks","handle":"iphone-17-jellytint-with-capture-button-pm14","description":null,"published_at":"2025-09-11T10:00:40+08:00","created_at":"2025-08-22T17:46:06+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-nba","device-iPhone 17","merge","reseller-nba"],"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":43606984261731,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"JTB013500G-PM14","requires_shipping":true,"taxable":true,"featured_image":{"id":36152510644323,"product_id":7862762963043,"position":12,"created_at":"2026-07-02T12:24:10+08:00","updated_at":"2026-07-02T12:24:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3525624c3500abcf8c0af40913d577c9a68f509e_130fc93e-ea9d-4d24-b96d-cdc43d8bcf0c.webp?v=1782966252","variant_ids":[43606984261731]},"available":true,"name":"iPhone 17 Clear (相機按鈕) NBA Logo-密爾瓦基公鹿 Milwaukee Bucks - 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":"JTB013500G-PM14","featured_media":{"alt":null,"id":27657384099939,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3525624c3500abcf8c0af40913d577c9a68f509e_130fc93e-ea9d-4d24-b96d-cdc43d8bcf0c.webp?v=1782966252"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43606985408611,"title":"Nocturne Blue","option1":"Nocturne Blue","option2":null,"option3":null,"sku":"JTB013504M-PM14","requires_shipping":true,"taxable":true,"featured_image":{"id":36152509956195,"product_id":7862762963043,"position":11,"created_at":"2026-07-02T12:24:10+08:00","updated_at":"2026-07-02T12:24:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b06e457243a9f915e156a1e6c87b69b6acd920f_b0137c87-4933-4dd6-a848-db8b842bf75b.webp?v=1782966252","variant_ids":[43606985408611]},"available":true,"name":"iPhone 17 Clear (相機按鈕) NBA Logo-密爾瓦基公鹿 Milwaukee Bucks - Nocturne Blue","public_title":"Nocturne Blue","options":["Nocturne Blue"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"JTB013504M-PM14","featured_media":{"alt":null,"id":27657383444579,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b06e457243a9f915e156a1e6c87b69b6acd920f_b0137c87-4933-4dd6-a848-db8b842bf75b.webp?v=1782966252"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43606985441379,"title":"Gleam Rosé","option1":"Gleam Rosé","option2":null,"option3":null,"sku":"JTB013504L-PM14","requires_shipping":true,"taxable":true,"featured_image":{"id":36152511135843,"product_id":7862762963043,"position":13,"created_at":"2026-07-02T12:24:11+08:00","updated_at":"2026-07-02T12:24:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dc8de886febb9da40572861948f0855f84a646e_42b717b0-9bca-4157-86eb-0197aaa8c311.webp?v=1782966253","variant_ids":[43606985441379]},"available":true,"name":"iPhone 17 Clear (相機按鈕) NBA Logo-密爾瓦基公鹿 Milwaukee Bucks - Gleam Rosé","public_title":"Gleam Rosé","options":["Gleam Rosé"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"JTB013504L-PM14","featured_media":{"alt":null,"id":27657384591459,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dc8de886febb9da40572861948f0855f84a646e_42b717b0-9bca-4157-86eb-0197aaa8c311.webp?v=1782966253"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/Clear-F5-350-PM14_93af0e7d-39c5-4b9e-8c30-cc1bce1b62b6.png?v=1755855969","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b06e457243a9f915e156a1e6c87b69b6acd920f.webp?v=1782212906","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dc8de886febb9da40572861948f0855f84a646e.webp?v=1782212906","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3525624c3500abcf8c0af40913d577c9a68f509e.webp?v=1782212907","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b06e457243a9f915e156a1e6c87b69b6acd920f_e36b7687-294d-4cd9-b983-9a23c4f8f112.webp?v=1782958571","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3525624c3500abcf8c0af40913d577c9a68f509e_bf193f2b-268d-43ec-a698-039ef0b8d637.webp?v=1782958572","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dc8de886febb9da40572861948f0855f84a646e_a12f485a-90d7-49e3-97dd-fa642bae6752.webp?v=1782958572","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b06e457243a9f915e156a1e6c87b69b6acd920f_ebfcf7ae-af52-4d47-a1f5-9d94b1bdbbd0.webp?v=1782961904","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3525624c3500abcf8c0af40913d577c9a68f509e_c1b2ef5b-980d-4faf-babc-466fe8f1af78.webp?v=1782961906","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dc8de886febb9da40572861948f0855f84a646e_519ba8ca-9c02-4f25-9714-8b1e58e13011.webp?v=1782961908","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b06e457243a9f915e156a1e6c87b69b6acd920f_b0137c87-4933-4dd6-a848-db8b842bf75b.webp?v=1782966252","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3525624c3500abcf8c0af40913d577c9a68f509e_130fc93e-ea9d-4d24-b96d-cdc43d8bcf0c.webp?v=1782966252","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dc8de886febb9da40572861948f0855f84a646e_42b717b0-9bca-4157-86eb-0197aaa8c311.webp?v=1782966253"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/Clear-F5-350-PM14_93af0e7d-39c5-4b9e-8c30-cc1bce1b62b6.png?v=1755855969","options":["color"],"media":[{"alt":null,"id":25940478656611,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/Clear-F5-350-PM14_93af0e7d-39c5-4b9e-8c30-cc1bce1b62b6.png?v=1755855969"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/Clear-F5-350-PM14_93af0e7d-39c5-4b9e-8c30-cc1bce1b62b6.png?v=1755855969","width":2000},{"alt":null,"id":27578284834915,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b06e457243a9f915e156a1e6c87b69b6acd920f.webp?v=1782212906"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b06e457243a9f915e156a1e6c87b69b6acd920f.webp?v=1782212906","width":2000},{"alt":null,"id":27578284998755,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dc8de886febb9da40572861948f0855f84a646e.webp?v=1782212906"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dc8de886febb9da40572861948f0855f84a646e.webp?v=1782212906","width":2000},{"alt":null,"id":27578285228131,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3525624c3500abcf8c0af40913d577c9a68f509e.webp?v=1782212907"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3525624c3500abcf8c0af40913d577c9a68f509e.webp?v=1782212907","width":2000},{"alt":null,"id":27656216150115,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b06e457243a9f915e156a1e6c87b69b6acd920f_e36b7687-294d-4cd9-b983-9a23c4f8f112.webp?v=1782958571"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b06e457243a9f915e156a1e6c87b69b6acd920f_e36b7687-294d-4cd9-b983-9a23c4f8f112.webp?v=1782958571","width":2000},{"alt":null,"id":27656216510563,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3525624c3500abcf8c0af40913d577c9a68f509e_bf193f2b-268d-43ec-a698-039ef0b8d637.webp?v=1782958572"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3525624c3500abcf8c0af40913d577c9a68f509e_bf193f2b-268d-43ec-a698-039ef0b8d637.webp?v=1782958572","width":2000},{"alt":null,"id":27656216739939,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dc8de886febb9da40572861948f0855f84a646e_a12f485a-90d7-49e3-97dd-fa642bae6752.webp?v=1782958572"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dc8de886febb9da40572861948f0855f84a646e_a12f485a-90d7-49e3-97dd-fa642bae6752.webp?v=1782958572","width":2000},{"alt":null,"id":27656886059107,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b06e457243a9f915e156a1e6c87b69b6acd920f_ebfcf7ae-af52-4d47-a1f5-9d94b1bdbbd0.webp?v=1782961904"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b06e457243a9f915e156a1e6c87b69b6acd920f_ebfcf7ae-af52-4d47-a1f5-9d94b1bdbbd0.webp?v=1782961904","width":2000},{"alt":null,"id":27656886255715,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3525624c3500abcf8c0af40913d577c9a68f509e_c1b2ef5b-980d-4faf-babc-466fe8f1af78.webp?v=1782961906"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3525624c3500abcf8c0af40913d577c9a68f509e_c1b2ef5b-980d-4faf-babc-466fe8f1af78.webp?v=1782961906","width":2000},{"alt":null,"id":27656886616163,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dc8de886febb9da40572861948f0855f84a646e_519ba8ca-9c02-4f25-9714-8b1e58e13011.webp?v=1782961908"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dc8de886febb9da40572861948f0855f84a646e_519ba8ca-9c02-4f25-9714-8b1e58e13011.webp?v=1782961908","width":2000},{"alt":null,"id":27657383444579,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b06e457243a9f915e156a1e6c87b69b6acd920f_b0137c87-4933-4dd6-a848-db8b842bf75b.webp?v=1782966252"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b06e457243a9f915e156a1e6c87b69b6acd920f_b0137c87-4933-4dd6-a848-db8b842bf75b.webp?v=1782966252","width":2000},{"alt":null,"id":27657384099939,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3525624c3500abcf8c0af40913d577c9a68f509e_130fc93e-ea9d-4d24-b96d-cdc43d8bcf0c.webp?v=1782966252"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3525624c3500abcf8c0af40913d577c9a68f509e_130fc93e-ea9d-4d24-b96d-cdc43d8bcf0c.webp?v=1782966252","width":2000},{"alt":null,"id":27657384591459,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dc8de886febb9da40572861948f0855f84a646e_42b717b0-9bca-4157-86eb-0197aaa8c311.webp?v=1782966253"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dc8de886febb9da40572861948f0855f84a646e_42b717b0-9bca-4157-86eb-0197aaa8c311.webp?v=1782966253","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43606984261731,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"JTB013500G-PM14","requires_shipping":true,"taxable":true,"featured_image":{"id":36152510644323,"product_id":7862762963043,"position":12,"created_at":"2026-07-02T12:24:10+08:00","updated_at":"2026-07-02T12:24:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3525624c3500abcf8c0af40913d577c9a68f509e_130fc93e-ea9d-4d24-b96d-cdc43d8bcf0c.webp?v=1782966252","variant_ids":[43606984261731]},"available":true,"name":"iPhone 17 Clear (相機按鈕) NBA Logo-密爾瓦基公鹿 Milwaukee Bucks - 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":"JTB013500G-PM14","featured_media":{"alt":null,"id":27657384099939,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3525624c3500abcf8c0af40913d577c9a68f509e_130fc93e-ea9d-4d24-b96d-cdc43d8bcf0c.webp?v=1782966252"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43606985408611,"title":"Nocturne Blue","option1":"Nocturne Blue","option2":null,"option3":null,"sku":"JTB013504M-PM14","requires_shipping":true,"taxable":true,"featured_image":{"id":36152509956195,"product_id":7862762963043,"position":11,"created_at":"2026-07-02T12:24:10+08:00","updated_at":"2026-07-02T12:24:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b06e457243a9f915e156a1e6c87b69b6acd920f_b0137c87-4933-4dd6-a848-db8b842bf75b.webp?v=1782966252","variant_ids":[43606985408611]},"available":true,"name":"iPhone 17 Clear (相機按鈕) NBA Logo-密爾瓦基公鹿 Milwaukee Bucks - Nocturne Blue","public_title":"Nocturne Blue","options":["Nocturne Blue"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"JTB013504M-PM14","featured_media":{"alt":null,"id":27657383444579,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b06e457243a9f915e156a1e6c87b69b6acd920f_b0137c87-4933-4dd6-a848-db8b842bf75b.webp?v=1782966252"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43606985441379,"title":"Gleam Rosé","option1":"Gleam Rosé","option2":null,"option3":null,"sku":"JTB013504L-PM14","requires_shipping":true,"taxable":true,"featured_image":{"id":36152511135843,"product_id":7862762963043,"position":13,"created_at":"2026-07-02T12:24:11+08:00","updated_at":"2026-07-02T12:24:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dc8de886febb9da40572861948f0855f84a646e_42b717b0-9bca-4157-86eb-0197aaa8c311.webp?v=1782966253","variant_ids":[43606985441379]},"available":true,"name":"iPhone 17 Clear (相機按鈕) NBA Logo-密爾瓦基公鹿 Milwaukee Bucks - Gleam Rosé","public_title":"Gleam Rosé","options":["Gleam Rosé"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"JTB013504L-PM14","featured_media":{"alt":null,"id":27657384591459,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dc8de886febb9da40572861948f0855f84a646e_42b717b0-9bca-4157-86eb-0197aaa8c311.webp?v=1782966253"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43606984261731,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"JTB013500G-PM14","requires_shipping":true,"taxable":true,"featured_image":{"id":36152510644323,"product_id":7862762963043,"position":12,"created_at":"2026-07-02T12:24:10+08:00","updated_at":"2026-07-02T12:24:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3525624c3500abcf8c0af40913d577c9a68f509e_130fc93e-ea9d-4d24-b96d-cdc43d8bcf0c.webp?v=1782966252","variant_ids":[43606984261731]},"available":true,"name":"iPhone 17 Clear (相機按鈕) NBA Logo-密爾瓦基公鹿 Milwaukee Bucks - 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":"JTB013500G-PM14","featured_media":{"alt":null,"id":27657384099939,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3525624c3500abcf8c0af40913d577c9a68f509e_130fc93e-ea9d-4d24-b96d-cdc43d8bcf0c.webp?v=1782966252"}},"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: "停產"
}