Home
›
iPhone 7 / 8 / SE / SE2 SolidSuit 太空 Meatball (Black)
$product = {"id":4509067083875,"title":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 Meatball (Black)","handle":"iphone-8-solidsuit-classic-xk04","description":"\u003cp\u003e\u003c\/p\u003e","published_at":"2020-03-18T17:30:26+08:00","created_at":"2020-03-18T15:58:46+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":33369985679459,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0116452-XK04","requires_shipping":true,"taxable":true,"featured_image":{"id":36478293770339,"product_id":4509067083875,"position":10,"created_at":"2026-08-04T12:17:38+08:00","updated_at":"2026-08-04T12:17:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5af1ce8c69e023e083750b7b6fc59ea92553860e_bdc7332b-782d-4333-966a-b32528c8e118.webp?v=1785817059","variant_ids":[33369985679459]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 Meatball (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-XK04","featured_media":{"alt":null,"id":27981629063267,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5af1ce8c69e023e083750b7b6fc59ea92553860e_bdc7332b-782d-4333-966a-b32528c8e118.webp?v=1785817059"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":33369985712227,"title":"White","option1":"White","option2":null,"option3":null,"sku":"SST0116453-XK04","requires_shipping":true,"taxable":true,"featured_image":{"id":36478295081059,"product_id":4509067083875,"position":12,"created_at":"2026-08-04T12:17:45+08:00","updated_at":"2026-08-04T12:17:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/483256a41ffeb4de55a89266b9d970ee63af49d6_7ff0a9d6-793e-4b11-8a6a-f369d073721c.webp?v=1785817068","variant_ids":[33369985712227]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 Meatball (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-XK04","featured_media":{"alt":null,"id":27981630373987,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/483256a41ffeb4de55a89266b9d970ee63af49d6_7ff0a9d6-793e-4b11-8a6a-f369d073721c.webp?v=1785817068"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40305871618147,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"SST01164O8-XK04","requires_shipping":true,"taxable":true,"featured_image":{"id":36478294196323,"product_id":4509067083875,"position":11,"created_at":"2026-08-04T12:17:41+08:00","updated_at":"2026-08-04T12:17:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2404a753d80878ed7796ef5212c557c556cd886_91f3b7b3-0666-43dd-9c28-0d605e99946f.webp?v=1785817062","variant_ids":[40305871618147]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 Meatball (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-XK04","featured_media":{"alt":null,"id":27981629489251,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2404a753d80878ed7796ef5212c557c556cd886_91f3b7b3-0666-43dd-9c28-0d605e99946f.webp?v=1785817062"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0116453-XK04_61224f35-367c-42dd-8c45-a8baad10819e.png?v=1679984286","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/483256a41ffeb4de55a89266b9d970ee63af49d6.webp?v=1784001459","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c0ffeec1fcf1e2ab58c69adbdbd299f3f3e1d18.webp?v=1784001459","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/456a4311d802b3679219405aa033aacde063b233.webp?v=1784001460","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2404a753d80878ed7796ef5212c557c556cd886.webp?v=1784001461","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e8e74be8862d52a38a572a6caedb143021d4ffd.webp?v=1784001461","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5af1ce8c69e023e083750b7b6fc59ea92553860e.webp?v=1784001461","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74c8bd4e2bfc631fe2e31d90ff70bcb947596e01.webp?v=1784001462","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c0ffeec1fcf1e2ab58c69adbdbd299f3f3e1d18_543d346d-a7b2-42f0-85ea-2e8c752e5ef4.webp?v=1785817058","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5af1ce8c69e023e083750b7b6fc59ea92553860e_bdc7332b-782d-4333-966a-b32528c8e118.webp?v=1785817059","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2404a753d80878ed7796ef5212c557c556cd886_91f3b7b3-0666-43dd-9c28-0d605e99946f.webp?v=1785817062","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/483256a41ffeb4de55a89266b9d970ee63af49d6_7ff0a9d6-793e-4b11-8a6a-f369d073721c.webp?v=1785817068","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e8e74be8862d52a38a572a6caedb143021d4ffd_8ca4ea85-ce96-44f5-a0d7-0e2766ebf83e.webp?v=1785817070","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74c8bd4e2bfc631fe2e31d90ff70bcb947596e01_ec7ea73a-9143-4231-958b-04c544d7f88b.webp?v=1785817071"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0116453-XK04_61224f35-367c-42dd-8c45-a8baad10819e.png?v=1679984286","options":["color"],"media":[{"alt":null,"id":22294873702499,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0116453-XK04_61224f35-367c-42dd-8c45-a8baad10819e.png?v=1679984286"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0116453-XK04_61224f35-367c-42dd-8c45-a8baad10819e.png?v=1679984286","width":2000},{"alt":null,"id":27760437788771,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/483256a41ffeb4de55a89266b9d970ee63af49d6.webp?v=1784001459"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/483256a41ffeb4de55a89266b9d970ee63af49d6.webp?v=1784001459","width":2000},{"alt":null,"id":27760437919843,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c0ffeec1fcf1e2ab58c69adbdbd299f3f3e1d18.webp?v=1784001459"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c0ffeec1fcf1e2ab58c69adbdbd299f3f3e1d18.webp?v=1784001459","width":2000},{"alt":null,"id":27760438149219,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/456a4311d802b3679219405aa033aacde063b233.webp?v=1784001460"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/456a4311d802b3679219405aa033aacde063b233.webp?v=1784001460","width":2000},{"alt":null,"id":27760438280291,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2404a753d80878ed7796ef5212c557c556cd886.webp?v=1784001461"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2404a753d80878ed7796ef5212c557c556cd886.webp?v=1784001461","width":2000},{"alt":null,"id":27760438411363,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e8e74be8862d52a38a572a6caedb143021d4ffd.webp?v=1784001461"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e8e74be8862d52a38a572a6caedb143021d4ffd.webp?v=1784001461","width":2000},{"alt":null,"id":27760438542435,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5af1ce8c69e023e083750b7b6fc59ea92553860e.webp?v=1784001461"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5af1ce8c69e023e083750b7b6fc59ea92553860e.webp?v=1784001461","width":2000},{"alt":null,"id":27760438673507,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74c8bd4e2bfc631fe2e31d90ff70bcb947596e01.webp?v=1784001462"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74c8bd4e2bfc631fe2e31d90ff70bcb947596e01.webp?v=1784001462","width":2000},{"alt":null,"id":27981628637283,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c0ffeec1fcf1e2ab58c69adbdbd299f3f3e1d18_543d346d-a7b2-42f0-85ea-2e8c752e5ef4.webp?v=1785817058"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c0ffeec1fcf1e2ab58c69adbdbd299f3f3e1d18_543d346d-a7b2-42f0-85ea-2e8c752e5ef4.webp?v=1785817058","width":2000},{"alt":null,"id":27981629063267,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5af1ce8c69e023e083750b7b6fc59ea92553860e_bdc7332b-782d-4333-966a-b32528c8e118.webp?v=1785817059"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5af1ce8c69e023e083750b7b6fc59ea92553860e_bdc7332b-782d-4333-966a-b32528c8e118.webp?v=1785817059","width":2000},{"alt":null,"id":27981629489251,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2404a753d80878ed7796ef5212c557c556cd886_91f3b7b3-0666-43dd-9c28-0d605e99946f.webp?v=1785817062"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2404a753d80878ed7796ef5212c557c556cd886_91f3b7b3-0666-43dd-9c28-0d605e99946f.webp?v=1785817062","width":2000},{"alt":null,"id":27981630373987,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/483256a41ffeb4de55a89266b9d970ee63af49d6_7ff0a9d6-793e-4b11-8a6a-f369d073721c.webp?v=1785817068"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/483256a41ffeb4de55a89266b9d970ee63af49d6_7ff0a9d6-793e-4b11-8a6a-f369d073721c.webp?v=1785817068","width":2000},{"alt":null,"id":27981630898275,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e8e74be8862d52a38a572a6caedb143021d4ffd_8ca4ea85-ce96-44f5-a0d7-0e2766ebf83e.webp?v=1785817070"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e8e74be8862d52a38a572a6caedb143021d4ffd_8ca4ea85-ce96-44f5-a0d7-0e2766ebf83e.webp?v=1785817070","width":2000},{"alt":null,"id":27981631389795,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74c8bd4e2bfc631fe2e31d90ff70bcb947596e01_ec7ea73a-9143-4231-958b-04c544d7f88b.webp?v=1785817071"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74c8bd4e2bfc631fe2e31d90ff70bcb947596e01_ec7ea73a-9143-4231-958b-04c544d7f88b.webp?v=1785817071","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"\u003cp\u003e\u003c\/p\u003e"};
$isMerge = null;
$variants = [{"id":33369985679459,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0116452-XK04","requires_shipping":true,"taxable":true,"featured_image":{"id":36478293770339,"product_id":4509067083875,"position":10,"created_at":"2026-08-04T12:17:38+08:00","updated_at":"2026-08-04T12:17:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5af1ce8c69e023e083750b7b6fc59ea92553860e_bdc7332b-782d-4333-966a-b32528c8e118.webp?v=1785817059","variant_ids":[33369985679459]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 Meatball (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-XK04","featured_media":{"alt":null,"id":27981629063267,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5af1ce8c69e023e083750b7b6fc59ea92553860e_bdc7332b-782d-4333-966a-b32528c8e118.webp?v=1785817059"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":33369985712227,"title":"White","option1":"White","option2":null,"option3":null,"sku":"SST0116453-XK04","requires_shipping":true,"taxable":true,"featured_image":{"id":36478295081059,"product_id":4509067083875,"position":12,"created_at":"2026-08-04T12:17:45+08:00","updated_at":"2026-08-04T12:17:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/483256a41ffeb4de55a89266b9d970ee63af49d6_7ff0a9d6-793e-4b11-8a6a-f369d073721c.webp?v=1785817068","variant_ids":[33369985712227]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 Meatball (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-XK04","featured_media":{"alt":null,"id":27981630373987,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/483256a41ffeb4de55a89266b9d970ee63af49d6_7ff0a9d6-793e-4b11-8a6a-f369d073721c.webp?v=1785817068"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40305871618147,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"SST01164O8-XK04","requires_shipping":true,"taxable":true,"featured_image":{"id":36478294196323,"product_id":4509067083875,"position":11,"created_at":"2026-08-04T12:17:41+08:00","updated_at":"2026-08-04T12:17:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2404a753d80878ed7796ef5212c557c556cd886_91f3b7b3-0666-43dd-9c28-0d605e99946f.webp?v=1785817062","variant_ids":[40305871618147]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 Meatball (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-XK04","featured_media":{"alt":null,"id":27981629489251,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2404a753d80878ed7796ef5212c557c556cd886_91f3b7b3-0666-43dd-9c28-0d605e99946f.webp?v=1785817062"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":33369985679459,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0116452-XK04","requires_shipping":true,"taxable":true,"featured_image":{"id":36478293770339,"product_id":4509067083875,"position":10,"created_at":"2026-08-04T12:17:38+08:00","updated_at":"2026-08-04T12:17:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5af1ce8c69e023e083750b7b6fc59ea92553860e_bdc7332b-782d-4333-966a-b32528c8e118.webp?v=1785817059","variant_ids":[33369985679459]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 Meatball (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-XK04","featured_media":{"alt":null,"id":27981629063267,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5af1ce8c69e023e083750b7b6fc59ea92553860e_bdc7332b-782d-4333-966a-b32528c8e118.webp?v=1785817059"}},"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: "停產"
}