Home
›
AirPods 3 AirPods Case 於是日常了 超大碗RJ刨冰
$product = {"id":8048333062243,"title":"AirPods 3 AirPods Case 於是日常了 超大碗RJ刨冰","handle":"airpods-3-airpods-case-rj10","description":null,"published_at":"2026-06-29T10:26:58+08:00","created_at":"2026-06-29T09:32:13+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-rj","device-Airpods 3","merge","reseller-rj"],"price":75000,"price_min":75000,"price_max":75000,"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":44299936071779,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"ABT0124552-RJ10","requires_shipping":true,"taxable":true,"featured_image":{"id":36122492797027,"product_id":8048333062243,"position":3,"created_at":"2026-06-29T09:32:35+08:00","updated_at":"2026-06-29T09:32:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5edd8702ef837ed575408df701a0cd63152227fc.webp?v=1782696757","variant_ids":[44299936071779]},"available":true,"name":"AirPods 3 AirPods Case 於是日常了 超大碗RJ刨冰 - Black","public_title":"Black","options":["Black"],"price":75000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"ABT0124552-RJ10","featured_media":{"alt":null,"id":27627737645155,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5edd8702ef837ed575408df701a0cd63152227fc.webp?v=1782696757"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44299939807331,"title":"Sage Green","option1":"Sage Green","option2":null,"option3":null,"sku":"ABT01245P2-RJ10","requires_shipping":true,"taxable":true,"featured_image":{"id":36122492469347,"product_id":8048333062243,"position":2,"created_at":"2026-06-29T09:32:35+08:00","updated_at":"2026-06-29T09:32:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47773514d66ee09b532ae9f491e852cdc5a44b5f.webp?v=1782696757","variant_ids":[44299939807331]},"available":true,"name":"AirPods 3 AirPods Case 於是日常了 超大碗RJ刨冰 - Sage Green","public_title":"Sage Green","options":["Sage Green"],"price":75000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"ABT01245P2-RJ10","featured_media":{"alt":null,"id":27627737317475,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47773514d66ee09b532ae9f491e852cdc5a44b5f.webp?v=1782696757"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44299940331619,"title":"Cobalt Blue","option1":"Cobalt Blue","option2":null,"option3":null,"sku":"ABT01245O9-RJ10","requires_shipping":true,"taxable":true,"featured_image":{"id":36122493812835,"product_id":8048333062243,"position":6,"created_at":"2026-06-29T09:32:37+08:00","updated_at":"2026-06-29T09:32:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79e42c97efafcb5eb2148ee50ce580bc93fc1385.webp?v=1782696759","variant_ids":[44299940331619]},"available":true,"name":"AirPods 3 AirPods Case 於是日常了 超大碗RJ刨冰 - Cobalt Blue","public_title":"Cobalt Blue","options":["Cobalt Blue"],"price":75000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"ABT01245O9-RJ10","featured_media":{"alt":null,"id":27627738595427,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79e42c97efafcb5eb2148ee50ce580bc93fc1385.webp?v=1782696759"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44299940757603,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"ABT01245O8-RJ10","requires_shipping":true,"taxable":true,"featured_image":{"id":36122493255779,"product_id":8048333062243,"position":4,"created_at":"2026-06-29T09:32:36+08:00","updated_at":"2026-06-29T09:32:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5894597960f2b4f84fd6506bebad1578de88400a.webp?v=1782696758","variant_ids":[44299940757603]},"available":true,"name":"AirPods 3 AirPods Case 於是日常了 超大碗RJ刨冰 - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":75000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"ABT01245O8-RJ10","featured_media":{"alt":null,"id":27627738103907,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5894597960f2b4f84fd6506bebad1578de88400a.webp?v=1782696758"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44299941019747,"title":"Transparent","option1":"Transparent","option2":null,"option3":null,"sku":"ABT01245R4-RJ10","requires_shipping":true,"taxable":true,"featured_image":{"id":36122491945059,"product_id":8048333062243,"position":1,"created_at":"2026-06-29T09:32:34+08:00","updated_at":"2026-06-29T09:32:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/670063657181c58af8c3891ba53164db540a905f.webp?v=1782696756","variant_ids":[44299941019747]},"available":true,"name":"AirPods 3 AirPods Case 於是日常了 超大碗RJ刨冰 - Transparent","public_title":"Transparent","options":["Transparent"],"price":75000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"ABT01245R4-RJ10","featured_media":{"alt":null,"id":27627736793187,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/670063657181c58af8c3891ba53164db540a905f.webp?v=1782696756"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44299941445731,"title":"Violet","option1":"Violet","option2":null,"option3":null,"sku":"ABT01245P1-RJ10","requires_shipping":true,"taxable":true,"featured_image":{"id":36122493550691,"product_id":8048333062243,"position":5,"created_at":"2026-06-29T09:32:37+08:00","updated_at":"2026-06-29T09:32:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8cbe33fc3322c6c8fc99e94820e23a1636d97f0.webp?v=1782696759","variant_ids":[44299941445731]},"available":true,"name":"AirPods 3 AirPods Case 於是日常了 超大碗RJ刨冰 - Violet","public_title":"Violet","options":["Violet"],"price":75000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"ABT01245P1-RJ10","featured_media":{"alt":null,"id":27627738398819,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8cbe33fc3322c6c8fc99e94820e23a1636d97f0.webp?v=1782696759"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/670063657181c58af8c3891ba53164db540a905f.webp?v=1782696756","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47773514d66ee09b532ae9f491e852cdc5a44b5f.webp?v=1782696757","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5edd8702ef837ed575408df701a0cd63152227fc.webp?v=1782696757","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5894597960f2b4f84fd6506bebad1578de88400a.webp?v=1782696758","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8cbe33fc3322c6c8fc99e94820e23a1636d97f0.webp?v=1782696759","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79e42c97efafcb5eb2148ee50ce580bc93fc1385.webp?v=1782696759"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/670063657181c58af8c3891ba53164db540a905f.webp?v=1782696756","options":["color"],"media":[{"alt":null,"id":27627736793187,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/670063657181c58af8c3891ba53164db540a905f.webp?v=1782696756"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/670063657181c58af8c3891ba53164db540a905f.webp?v=1782696756","width":2000},{"alt":null,"id":27627737317475,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47773514d66ee09b532ae9f491e852cdc5a44b5f.webp?v=1782696757"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47773514d66ee09b532ae9f491e852cdc5a44b5f.webp?v=1782696757","width":2000},{"alt":null,"id":27627737645155,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5edd8702ef837ed575408df701a0cd63152227fc.webp?v=1782696757"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5edd8702ef837ed575408df701a0cd63152227fc.webp?v=1782696757","width":2000},{"alt":null,"id":27627738103907,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5894597960f2b4f84fd6506bebad1578de88400a.webp?v=1782696758"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5894597960f2b4f84fd6506bebad1578de88400a.webp?v=1782696758","width":2000},{"alt":null,"id":27627738398819,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8cbe33fc3322c6c8fc99e94820e23a1636d97f0.webp?v=1782696759"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8cbe33fc3322c6c8fc99e94820e23a1636d97f0.webp?v=1782696759","width":2000},{"alt":null,"id":27627738595427,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79e42c97efafcb5eb2148ee50ce580bc93fc1385.webp?v=1782696759"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79e42c97efafcb5eb2148ee50ce580bc93fc1385.webp?v=1782696759","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":44299936071779,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"ABT0124552-RJ10","requires_shipping":true,"taxable":true,"featured_image":{"id":36122492797027,"product_id":8048333062243,"position":3,"created_at":"2026-06-29T09:32:35+08:00","updated_at":"2026-06-29T09:32:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5edd8702ef837ed575408df701a0cd63152227fc.webp?v=1782696757","variant_ids":[44299936071779]},"available":true,"name":"AirPods 3 AirPods Case 於是日常了 超大碗RJ刨冰 - Black","public_title":"Black","options":["Black"],"price":75000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"ABT0124552-RJ10","featured_media":{"alt":null,"id":27627737645155,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5edd8702ef837ed575408df701a0cd63152227fc.webp?v=1782696757"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44299939807331,"title":"Sage Green","option1":"Sage Green","option2":null,"option3":null,"sku":"ABT01245P2-RJ10","requires_shipping":true,"taxable":true,"featured_image":{"id":36122492469347,"product_id":8048333062243,"position":2,"created_at":"2026-06-29T09:32:35+08:00","updated_at":"2026-06-29T09:32:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47773514d66ee09b532ae9f491e852cdc5a44b5f.webp?v=1782696757","variant_ids":[44299939807331]},"available":true,"name":"AirPods 3 AirPods Case 於是日常了 超大碗RJ刨冰 - Sage Green","public_title":"Sage Green","options":["Sage Green"],"price":75000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"ABT01245P2-RJ10","featured_media":{"alt":null,"id":27627737317475,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47773514d66ee09b532ae9f491e852cdc5a44b5f.webp?v=1782696757"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44299940331619,"title":"Cobalt Blue","option1":"Cobalt Blue","option2":null,"option3":null,"sku":"ABT01245O9-RJ10","requires_shipping":true,"taxable":true,"featured_image":{"id":36122493812835,"product_id":8048333062243,"position":6,"created_at":"2026-06-29T09:32:37+08:00","updated_at":"2026-06-29T09:32:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79e42c97efafcb5eb2148ee50ce580bc93fc1385.webp?v=1782696759","variant_ids":[44299940331619]},"available":true,"name":"AirPods 3 AirPods Case 於是日常了 超大碗RJ刨冰 - Cobalt Blue","public_title":"Cobalt Blue","options":["Cobalt Blue"],"price":75000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"ABT01245O9-RJ10","featured_media":{"alt":null,"id":27627738595427,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79e42c97efafcb5eb2148ee50ce580bc93fc1385.webp?v=1782696759"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44299940757603,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"ABT01245O8-RJ10","requires_shipping":true,"taxable":true,"featured_image":{"id":36122493255779,"product_id":8048333062243,"position":4,"created_at":"2026-06-29T09:32:36+08:00","updated_at":"2026-06-29T09:32:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5894597960f2b4f84fd6506bebad1578de88400a.webp?v=1782696758","variant_ids":[44299940757603]},"available":true,"name":"AirPods 3 AirPods Case 於是日常了 超大碗RJ刨冰 - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":75000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"ABT01245O8-RJ10","featured_media":{"alt":null,"id":27627738103907,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5894597960f2b4f84fd6506bebad1578de88400a.webp?v=1782696758"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44299941019747,"title":"Transparent","option1":"Transparent","option2":null,"option3":null,"sku":"ABT01245R4-RJ10","requires_shipping":true,"taxable":true,"featured_image":{"id":36122491945059,"product_id":8048333062243,"position":1,"created_at":"2026-06-29T09:32:34+08:00","updated_at":"2026-06-29T09:32:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/670063657181c58af8c3891ba53164db540a905f.webp?v=1782696756","variant_ids":[44299941019747]},"available":true,"name":"AirPods 3 AirPods Case 於是日常了 超大碗RJ刨冰 - Transparent","public_title":"Transparent","options":["Transparent"],"price":75000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"ABT01245R4-RJ10","featured_media":{"alt":null,"id":27627736793187,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/670063657181c58af8c3891ba53164db540a905f.webp?v=1782696756"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44299941445731,"title":"Violet","option1":"Violet","option2":null,"option3":null,"sku":"ABT01245P1-RJ10","requires_shipping":true,"taxable":true,"featured_image":{"id":36122493550691,"product_id":8048333062243,"position":5,"created_at":"2026-06-29T09:32:37+08:00","updated_at":"2026-06-29T09:32:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8cbe33fc3322c6c8fc99e94820e23a1636d97f0.webp?v=1782696759","variant_ids":[44299941445731]},"available":true,"name":"AirPods 3 AirPods Case 於是日常了 超大碗RJ刨冰 - Violet","public_title":"Violet","options":["Violet"],"price":75000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"ABT01245P1-RJ10","featured_media":{"alt":null,"id":27627738398819,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8cbe33fc3322c6c8fc99e94820e23a1636d97f0.webp?v=1782696759"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":44299936071779,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"ABT0124552-RJ10","requires_shipping":true,"taxable":true,"featured_image":{"id":36122492797027,"product_id":8048333062243,"position":3,"created_at":"2026-06-29T09:32:35+08:00","updated_at":"2026-06-29T09:32:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5edd8702ef837ed575408df701a0cd63152227fc.webp?v=1782696757","variant_ids":[44299936071779]},"available":true,"name":"AirPods 3 AirPods Case 於是日常了 超大碗RJ刨冰 - Black","public_title":"Black","options":["Black"],"price":75000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"ABT0124552-RJ10","featured_media":{"alt":null,"id":27627737645155,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5edd8702ef837ed575408df701a0cd63152227fc.webp?v=1782696757"}},"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: "停產"
}