Home
›
iPhone 7 / 8 / SE / SE2 SolidSuit 太空 太空宇航員 (Black)
$product = {"id":4509068263523,"title":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 太空宇航員 (Black)","handle":"iphone-8-solidsuit-classic-xk19","description":"\u003cp\u003e\u003c\/p\u003e","published_at":"2020-03-18T17:30:13+08:00","created_at":"2020-03-18T16:02:19+08:00","vendor":"Rhinoshield","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-nasa","device-iPhone 8","merge","reseller-nasa"],"price":83000,"price_min":83000,"price_max":83000,"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":33369987547235,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0116452-XK19","requires_shipping":true,"taxable":true,"featured_image":{"id":36480531267683,"product_id":4509068263523,"position":10,"created_at":"2026-08-04T19:01:12+08:00","updated_at":"2026-08-04T19:01:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55eed6ec268e081c71b937d7e3aed68756eb4860_d2131a94-23d1-459f-a5ce-c4281238e2b0.webp?v=1785841273","variant_ids":[33369987547235]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 太空宇航員 (Black) - Black","public_title":"Black","options":["Black"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0116452-XK19","featured_media":{"alt":null,"id":27983850143843,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55eed6ec268e081c71b937d7e3aed68756eb4860_d2131a94-23d1-459f-a5ce-c4281238e2b0.webp?v=1785841273"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":33369987580003,"title":"White","option1":"White","option2":null,"option3":null,"sku":"SST0116453-XK19","requires_shipping":true,"taxable":true,"featured_image":{"id":36480532938851,"product_id":4509068263523,"position":12,"created_at":"2026-08-04T19:01:16+08:00","updated_at":"2026-08-04T19:01:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92b34bab28db14e1cec8848e6de32b2636ffd3bf_16e9dc8f-2650-4a22-8c13-a8eab6411c46.webp?v=1785841278","variant_ids":[33369987580003]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 太空宇航員 (Black) - White","public_title":"White","options":["White"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0116453-XK19","featured_media":{"alt":null,"id":27983851815011,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92b34bab28db14e1cec8848e6de32b2636ffd3bf_16e9dc8f-2650-4a22-8c13-a8eab6411c46.webp?v=1785841278"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40306205818979,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"SST01164O8-XK19","requires_shipping":true,"taxable":true,"featured_image":{"id":36480532185187,"product_id":4509068263523,"position":11,"created_at":"2026-08-04T19:01:14+08:00","updated_at":"2026-08-04T19:01:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7efeff60a1389880bb5bf295fe94f067f825aba2_d682e7db-335d-4481-8c8f-168d32a8bf8f.webp?v=1785841276","variant_ids":[40306205818979]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 太空宇航員 (Black) - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST01164O8-XK19","featured_media":{"alt":null,"id":27983851061347,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7efeff60a1389880bb5bf295fe94f067f825aba2_d682e7db-335d-4481-8c8f-168d32a8bf8f.webp?v=1785841276"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0116453-XK19_34d6d305-8467-4a79-bd08-0bc0f4500124.png?v=1679989096","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7efeff60a1389880bb5bf295fe94f067f825aba2.webp?v=1784001465","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55eed6ec268e081c71b937d7e3aed68756eb4860.webp?v=1784001465","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52fe2df8caa1aab2524730de6102983ccc5d5c0a.webp?v=1784001466","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92b34bab28db14e1cec8848e6de32b2636ffd3bf.webp?v=1784001468","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fadeb742c4e48edc3bbb3e4dc9f91c1b19b8edc.webp?v=1784001469","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe47b0a21fe088e62b456dc2e8079a060ec3d5d9.webp?v=1784001469","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/923671d14478fd877017c31399946cc95c15288e.webp?v=1784001472","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fadeb742c4e48edc3bbb3e4dc9f91c1b19b8edc_3f71c5c0-e1a4-4919-8897-94d8916a58ea.webp?v=1785841272","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55eed6ec268e081c71b937d7e3aed68756eb4860_d2131a94-23d1-459f-a5ce-c4281238e2b0.webp?v=1785841273","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7efeff60a1389880bb5bf295fe94f067f825aba2_d682e7db-335d-4481-8c8f-168d32a8bf8f.webp?v=1785841276","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92b34bab28db14e1cec8848e6de32b2636ffd3bf_16e9dc8f-2650-4a22-8c13-a8eab6411c46.webp?v=1785841278","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52fe2df8caa1aab2524730de6102983ccc5d5c0a_9e2eadae-b590-442b-8d49-a0bee7d7615b.webp?v=1785841280","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/923671d14478fd877017c31399946cc95c15288e_ed9dd2c6-03bd-4968-9fc0-34c882838ccb.webp?v=1785841282"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0116453-XK19_34d6d305-8467-4a79-bd08-0bc0f4500124.png?v=1679989096","options":["color"],"media":[{"alt":null,"id":22295439999075,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0116453-XK19_34d6d305-8467-4a79-bd08-0bc0f4500124.png?v=1679989096"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0116453-XK19_34d6d305-8467-4a79-bd08-0bc0f4500124.png?v=1679989096","width":2000},{"alt":null,"id":27760439296099,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7efeff60a1389880bb5bf295fe94f067f825aba2.webp?v=1784001465"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7efeff60a1389880bb5bf295fe94f067f825aba2.webp?v=1784001465","width":2000},{"alt":null,"id":27760439591011,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55eed6ec268e081c71b937d7e3aed68756eb4860.webp?v=1784001465"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55eed6ec268e081c71b937d7e3aed68756eb4860.webp?v=1784001465","width":2000},{"alt":null,"id":27760439918691,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52fe2df8caa1aab2524730de6102983ccc5d5c0a.webp?v=1784001466"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52fe2df8caa1aab2524730de6102983ccc5d5c0a.webp?v=1784001466","width":2000},{"alt":null,"id":27760440672355,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92b34bab28db14e1cec8848e6de32b2636ffd3bf.webp?v=1784001468"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92b34bab28db14e1cec8848e6de32b2636ffd3bf.webp?v=1784001468","width":2000},{"alt":null,"id":27760441065571,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fadeb742c4e48edc3bbb3e4dc9f91c1b19b8edc.webp?v=1784001469"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fadeb742c4e48edc3bbb3e4dc9f91c1b19b8edc.webp?v=1784001469","width":2000},{"alt":null,"id":27760441852003,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe47b0a21fe088e62b456dc2e8079a060ec3d5d9.webp?v=1784001469"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe47b0a21fe088e62b456dc2e8079a060ec3d5d9.webp?v=1784001469","width":2000},{"alt":null,"id":27760443752547,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/923671d14478fd877017c31399946cc95c15288e.webp?v=1784001472"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/923671d14478fd877017c31399946cc95c15288e.webp?v=1784001472","width":2000},{"alt":null,"id":27983849422947,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fadeb742c4e48edc3bbb3e4dc9f91c1b19b8edc_3f71c5c0-e1a4-4919-8897-94d8916a58ea.webp?v=1785841272"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fadeb742c4e48edc3bbb3e4dc9f91c1b19b8edc_3f71c5c0-e1a4-4919-8897-94d8916a58ea.webp?v=1785841272","width":2000},{"alt":null,"id":27983850143843,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55eed6ec268e081c71b937d7e3aed68756eb4860_d2131a94-23d1-459f-a5ce-c4281238e2b0.webp?v=1785841273"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55eed6ec268e081c71b937d7e3aed68756eb4860_d2131a94-23d1-459f-a5ce-c4281238e2b0.webp?v=1785841273","width":2000},{"alt":null,"id":27983851061347,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7efeff60a1389880bb5bf295fe94f067f825aba2_d682e7db-335d-4481-8c8f-168d32a8bf8f.webp?v=1785841276"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7efeff60a1389880bb5bf295fe94f067f825aba2_d682e7db-335d-4481-8c8f-168d32a8bf8f.webp?v=1785841276","width":2000},{"alt":null,"id":27983851815011,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92b34bab28db14e1cec8848e6de32b2636ffd3bf_16e9dc8f-2650-4a22-8c13-a8eab6411c46.webp?v=1785841278"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92b34bab28db14e1cec8848e6de32b2636ffd3bf_16e9dc8f-2650-4a22-8c13-a8eab6411c46.webp?v=1785841278","width":2000},{"alt":null,"id":27983852765283,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52fe2df8caa1aab2524730de6102983ccc5d5c0a_9e2eadae-b590-442b-8d49-a0bee7d7615b.webp?v=1785841280"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52fe2df8caa1aab2524730de6102983ccc5d5c0a_9e2eadae-b590-442b-8d49-a0bee7d7615b.webp?v=1785841280","width":2000},{"alt":null,"id":27983853420643,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/923671d14478fd877017c31399946cc95c15288e_ed9dd2c6-03bd-4968-9fc0-34c882838ccb.webp?v=1785841282"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/923671d14478fd877017c31399946cc95c15288e_ed9dd2c6-03bd-4968-9fc0-34c882838ccb.webp?v=1785841282","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"\u003cp\u003e\u003c\/p\u003e"};
$isMerge = null;
$variants = [{"id":33369987547235,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0116452-XK19","requires_shipping":true,"taxable":true,"featured_image":{"id":36480531267683,"product_id":4509068263523,"position":10,"created_at":"2026-08-04T19:01:12+08:00","updated_at":"2026-08-04T19:01:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55eed6ec268e081c71b937d7e3aed68756eb4860_d2131a94-23d1-459f-a5ce-c4281238e2b0.webp?v=1785841273","variant_ids":[33369987547235]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 太空宇航員 (Black) - Black","public_title":"Black","options":["Black"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0116452-XK19","featured_media":{"alt":null,"id":27983850143843,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55eed6ec268e081c71b937d7e3aed68756eb4860_d2131a94-23d1-459f-a5ce-c4281238e2b0.webp?v=1785841273"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":33369987580003,"title":"White","option1":"White","option2":null,"option3":null,"sku":"SST0116453-XK19","requires_shipping":true,"taxable":true,"featured_image":{"id":36480532938851,"product_id":4509068263523,"position":12,"created_at":"2026-08-04T19:01:16+08:00","updated_at":"2026-08-04T19:01:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92b34bab28db14e1cec8848e6de32b2636ffd3bf_16e9dc8f-2650-4a22-8c13-a8eab6411c46.webp?v=1785841278","variant_ids":[33369987580003]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 太空宇航員 (Black) - White","public_title":"White","options":["White"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0116453-XK19","featured_media":{"alt":null,"id":27983851815011,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92b34bab28db14e1cec8848e6de32b2636ffd3bf_16e9dc8f-2650-4a22-8c13-a8eab6411c46.webp?v=1785841278"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40306205818979,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"SST01164O8-XK19","requires_shipping":true,"taxable":true,"featured_image":{"id":36480532185187,"product_id":4509068263523,"position":11,"created_at":"2026-08-04T19:01:14+08:00","updated_at":"2026-08-04T19:01:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7efeff60a1389880bb5bf295fe94f067f825aba2_d682e7db-335d-4481-8c8f-168d32a8bf8f.webp?v=1785841276","variant_ids":[40306205818979]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 太空宇航員 (Black) - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST01164O8-XK19","featured_media":{"alt":null,"id":27983851061347,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7efeff60a1389880bb5bf295fe94f067f825aba2_d682e7db-335d-4481-8c8f-168d32a8bf8f.webp?v=1785841276"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":33369987547235,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0116452-XK19","requires_shipping":true,"taxable":true,"featured_image":{"id":36480531267683,"product_id":4509068263523,"position":10,"created_at":"2026-08-04T19:01:12+08:00","updated_at":"2026-08-04T19:01:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55eed6ec268e081c71b937d7e3aed68756eb4860_d2131a94-23d1-459f-a5ce-c4281238e2b0.webp?v=1785841273","variant_ids":[33369987547235]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 太空宇航員 (Black) - Black","public_title":"Black","options":["Black"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0116452-XK19","featured_media":{"alt":null,"id":27983850143843,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55eed6ec268e081c71b937d7e3aed68756eb4860_d2131a94-23d1-459f-a5ce-c4281238e2b0.webp?v=1785841273"}},"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: "停產"
}