Home
›
iPhone 7 / 8 / SE / SE2 SolidSuit 太空 雙子星11號計劃
$product = {"id":4509067804771,"title":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 雙子星11號計劃","handle":"iphone-8-solidsuit-classic-xk14","description":"\u003cp\u003e\u003c\/p\u003e","published_at":"2020-03-18T17:30:17+08:00","created_at":"2020-03-18T16:00:58+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":33369986990179,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0116452-XK14","requires_shipping":true,"taxable":true,"featured_image":{"id":36480531791971,"product_id":4509067804771,"position":12,"created_at":"2026-08-04T19:01:13+08:00","updated_at":"2026-08-04T19:01:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06a7ada368fe19ed87419e3e56d30acd877447e6_0dbe0e21-9641-4d7f-a259-b4cd42c41eb3.webp?v=1785841275","variant_ids":[33369986990179]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 雙子星11號計劃 - 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-XK14","featured_media":{"alt":null,"id":27983850668131,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06a7ada368fe19ed87419e3e56d30acd877447e6_0dbe0e21-9641-4d7f-a259-b4cd42c41eb3.webp?v=1785841275"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":33369987022947,"title":"White","option1":"White","option2":null,"option3":null,"sku":"SST0116453-XK14","requires_shipping":true,"taxable":true,"featured_image":{"id":36480530317411,"product_id":4509067804771,"position":10,"created_at":"2026-08-04T19:01:09+08:00","updated_at":"2026-08-04T19:01:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba02c9d11cedb55eaa2818a6ae34e10830540265_10b3cb88-c7ed-4f9b-81d3-64948e9d35b1.webp?v=1785841272","variant_ids":[33369987022947]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 雙子星11號計劃 - 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-XK14","featured_media":{"alt":null,"id":27983849160803,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba02c9d11cedb55eaa2818a6ae34e10830540265_10b3cb88-c7ed-4f9b-81d3-64948e9d35b1.webp?v=1785841272"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40306993954915,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"SST01164O8-XK14","requires_shipping":true,"taxable":true,"featured_image":{"id":36480532807779,"product_id":4509067804771,"position":13,"created_at":"2026-08-04T19:01:15+08:00","updated_at":"2026-08-04T19:01:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46d07f0cc73244bb7366d88a9930e865e9303b38_1a644207-879c-440b-9c3c-c620863c9af2.webp?v=1785841277","variant_ids":[40306993954915]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 雙子星11號計劃 - 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-XK14","featured_media":{"alt":null,"id":27983851683939,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46d07f0cc73244bb7366d88a9930e865e9303b38_1a644207-879c-440b-9c3c-c620863c9af2.webp?v=1785841277"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0116453-XK14_31746fa2-67d7-4e0c-8fe6-6b69057defc5.png?v=1679988272","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e4a5d22496510365c68a53ec6d0b6db74fe7090.webp?v=1784001462","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba02c9d11cedb55eaa2818a6ae34e10830540265.webp?v=1784001462","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b84ab595a2be8d08b394189fed6a95a12cd9fa9.webp?v=1784001463","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c993d83fc5678e827240ac4e16979483e50dce68.webp?v=1784001464","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06a7ada368fe19ed87419e3e56d30acd877447e6.webp?v=1784001465","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/568a6aab0e6a19c9f5f73850f994c3e1586d308a.webp?v=1784001465","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46d07f0cc73244bb7366d88a9930e865e9303b38.webp?v=1784001466","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b84ab595a2be8d08b394189fed6a95a12cd9fa9_2773076a-fd38-4d07-b7f5-6289a5ae1c9e.webp?v=1785841269","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba02c9d11cedb55eaa2818a6ae34e10830540265_10b3cb88-c7ed-4f9b-81d3-64948e9d35b1.webp?v=1785841272","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c993d83fc5678e827240ac4e16979483e50dce68_d7a6e985-550f-47dd-81a3-70a4a7f29b06.webp?v=1785841273","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06a7ada368fe19ed87419e3e56d30acd877447e6_0dbe0e21-9641-4d7f-a259-b4cd42c41eb3.webp?v=1785841275","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46d07f0cc73244bb7366d88a9930e865e9303b38_1a644207-879c-440b-9c3c-c620863c9af2.webp?v=1785841277","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e4a5d22496510365c68a53ec6d0b6db74fe7090_e798c937-83bb-4366-a170-043dee4987b4.webp?v=1785841279"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0116453-XK14_31746fa2-67d7-4e0c-8fe6-6b69057defc5.png?v=1679988272","options":["color"],"media":[{"alt":null,"id":22295351623779,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0116453-XK14_31746fa2-67d7-4e0c-8fe6-6b69057defc5.png?v=1679988272"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0116453-XK14_31746fa2-67d7-4e0c-8fe6-6b69057defc5.png?v=1679988272","width":2000},{"alt":null,"id":27760438607971,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e4a5d22496510365c68a53ec6d0b6db74fe7090.webp?v=1784001462"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e4a5d22496510365c68a53ec6d0b6db74fe7090.webp?v=1784001462","width":2000},{"alt":null,"id":27760438739043,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba02c9d11cedb55eaa2818a6ae34e10830540265.webp?v=1784001462"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba02c9d11cedb55eaa2818a6ae34e10830540265.webp?v=1784001462","width":2000},{"alt":null,"id":27760438935651,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b84ab595a2be8d08b394189fed6a95a12cd9fa9.webp?v=1784001463"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b84ab595a2be8d08b394189fed6a95a12cd9fa9.webp?v=1784001463","width":2000},{"alt":null,"id":27760439099491,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c993d83fc5678e827240ac4e16979483e50dce68.webp?v=1784001464"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c993d83fc5678e827240ac4e16979483e50dce68.webp?v=1784001464","width":2000},{"alt":null,"id":27760439361635,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06a7ada368fe19ed87419e3e56d30acd877447e6.webp?v=1784001465"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06a7ada368fe19ed87419e3e56d30acd877447e6.webp?v=1784001465","width":2000},{"alt":null,"id":27760439656547,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/568a6aab0e6a19c9f5f73850f994c3e1586d308a.webp?v=1784001465"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/568a6aab0e6a19c9f5f73850f994c3e1586d308a.webp?v=1784001465","width":2000},{"alt":null,"id":27760440148067,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46d07f0cc73244bb7366d88a9930e865e9303b38.webp?v=1784001466"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46d07f0cc73244bb7366d88a9930e865e9303b38.webp?v=1784001466","width":2000},{"alt":null,"id":27983848505443,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b84ab595a2be8d08b394189fed6a95a12cd9fa9_2773076a-fd38-4d07-b7f5-6289a5ae1c9e.webp?v=1785841269"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b84ab595a2be8d08b394189fed6a95a12cd9fa9_2773076a-fd38-4d07-b7f5-6289a5ae1c9e.webp?v=1785841269","width":2000},{"alt":null,"id":27983849160803,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba02c9d11cedb55eaa2818a6ae34e10830540265_10b3cb88-c7ed-4f9b-81d3-64948e9d35b1.webp?v=1785841272"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba02c9d11cedb55eaa2818a6ae34e10830540265_10b3cb88-c7ed-4f9b-81d3-64948e9d35b1.webp?v=1785841272","width":2000},{"alt":null,"id":27983849914467,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c993d83fc5678e827240ac4e16979483e50dce68_d7a6e985-550f-47dd-81a3-70a4a7f29b06.webp?v=1785841273"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c993d83fc5678e827240ac4e16979483e50dce68_d7a6e985-550f-47dd-81a3-70a4a7f29b06.webp?v=1785841273","width":2000},{"alt":null,"id":27983850668131,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06a7ada368fe19ed87419e3e56d30acd877447e6_0dbe0e21-9641-4d7f-a259-b4cd42c41eb3.webp?v=1785841275"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06a7ada368fe19ed87419e3e56d30acd877447e6_0dbe0e21-9641-4d7f-a259-b4cd42c41eb3.webp?v=1785841275","width":2000},{"alt":null,"id":27983851683939,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46d07f0cc73244bb7366d88a9930e865e9303b38_1a644207-879c-440b-9c3c-c620863c9af2.webp?v=1785841277"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46d07f0cc73244bb7366d88a9930e865e9303b38_1a644207-879c-440b-9c3c-c620863c9af2.webp?v=1785841277","width":2000},{"alt":null,"id":27983852470371,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e4a5d22496510365c68a53ec6d0b6db74fe7090_e798c937-83bb-4366-a170-043dee4987b4.webp?v=1785841279"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e4a5d22496510365c68a53ec6d0b6db74fe7090_e798c937-83bb-4366-a170-043dee4987b4.webp?v=1785841279","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"\u003cp\u003e\u003c\/p\u003e"};
$isMerge = null;
$variants = [{"id":33369986990179,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0116452-XK14","requires_shipping":true,"taxable":true,"featured_image":{"id":36480531791971,"product_id":4509067804771,"position":12,"created_at":"2026-08-04T19:01:13+08:00","updated_at":"2026-08-04T19:01:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06a7ada368fe19ed87419e3e56d30acd877447e6_0dbe0e21-9641-4d7f-a259-b4cd42c41eb3.webp?v=1785841275","variant_ids":[33369986990179]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 雙子星11號計劃 - 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-XK14","featured_media":{"alt":null,"id":27983850668131,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06a7ada368fe19ed87419e3e56d30acd877447e6_0dbe0e21-9641-4d7f-a259-b4cd42c41eb3.webp?v=1785841275"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":33369987022947,"title":"White","option1":"White","option2":null,"option3":null,"sku":"SST0116453-XK14","requires_shipping":true,"taxable":true,"featured_image":{"id":36480530317411,"product_id":4509067804771,"position":10,"created_at":"2026-08-04T19:01:09+08:00","updated_at":"2026-08-04T19:01:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba02c9d11cedb55eaa2818a6ae34e10830540265_10b3cb88-c7ed-4f9b-81d3-64948e9d35b1.webp?v=1785841272","variant_ids":[33369987022947]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 雙子星11號計劃 - 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-XK14","featured_media":{"alt":null,"id":27983849160803,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba02c9d11cedb55eaa2818a6ae34e10830540265_10b3cb88-c7ed-4f9b-81d3-64948e9d35b1.webp?v=1785841272"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40306993954915,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"SST01164O8-XK14","requires_shipping":true,"taxable":true,"featured_image":{"id":36480532807779,"product_id":4509067804771,"position":13,"created_at":"2026-08-04T19:01:15+08:00","updated_at":"2026-08-04T19:01:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46d07f0cc73244bb7366d88a9930e865e9303b38_1a644207-879c-440b-9c3c-c620863c9af2.webp?v=1785841277","variant_ids":[40306993954915]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 雙子星11號計劃 - 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-XK14","featured_media":{"alt":null,"id":27983851683939,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46d07f0cc73244bb7366d88a9930e865e9303b38_1a644207-879c-440b-9c3c-c620863c9af2.webp?v=1785841277"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":33369986990179,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0116452-XK14","requires_shipping":true,"taxable":true,"featured_image":{"id":36480531791971,"product_id":4509067804771,"position":12,"created_at":"2026-08-04T19:01:13+08:00","updated_at":"2026-08-04T19:01:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06a7ada368fe19ed87419e3e56d30acd877447e6_0dbe0e21-9641-4d7f-a259-b4cd42c41eb3.webp?v=1785841275","variant_ids":[33369986990179]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 雙子星11號計劃 - 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-XK14","featured_media":{"alt":null,"id":27983850668131,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06a7ada368fe19ed87419e3e56d30acd877447e6_0dbe0e21-9641-4d7f-a259-b4cd42c41eb3.webp?v=1785841275"}},"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: "停產"
}