Home
›
iPhone 7 / 8 / SE / SE2 SolidSuit noiinoii 保齡球兔
$product = {"id":6541725433955,"title":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit noiinoii 保齡球兔","handle":"iphone-8-solidsuit-classic-mw01","description":"","published_at":"2024-04-15T09:38:38+08:00","created_at":"2021-03-09T11:43:49+08:00","vendor":"Rhinoshield","type":"設計師SolidSuit專區noiinoii","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-noiinoii","device-iPhone 8","merge","reseller-noiinoii"],"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":39267593748579,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0116452-MW01","requires_shipping":true,"taxable":true,"featured_image":{"id":36350401708131,"product_id":6541725433955,"position":9,"created_at":"2026-07-22T20:16:56+08:00","updated_at":"2026-07-22T20:16:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5141c40be3e6599edc5f9e20cd7509654fb5648c_cb5f5b3b-1725-4067-a7d8-e43348722744.webp?v=1784722619","variant_ids":[39267593748579]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit noiinoii 保齡球兔 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":-48,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0116452-MW01","featured_media":{"alt":null,"id":27854206795875,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5141c40be3e6599edc5f9e20cd7509654fb5648c_cb5f5b3b-1725-4067-a7d8-e43348722744.webp?v=1784722619"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41638626000995,"title":"White","option1":"White","option2":null,"option3":null,"sku":"SST0116453-MW01","requires_shipping":true,"taxable":true,"featured_image":{"id":36350403510371,"product_id":6541725433955,"position":11,"created_at":"2026-07-22T20:16:58+08:00","updated_at":"2026-07-22T20:17:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ef9793a0a4c6fd66f7f1805a4b63a284be72df5_1df7b86f-bb2c-4de4-a408-87e75945d6db.webp?v=1784722620","variant_ids":[41638626000995]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit noiinoii 保齡球兔 - White","public_title":"White","options":["White"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0116453-MW01","featured_media":{"alt":null,"id":27854208630883,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ef9793a0a4c6fd66f7f1805a4b63a284be72df5_1df7b86f-bb2c-4de4-a408-87e75945d6db.webp?v=1784722620"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41638626066531,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"SST01164O8-MW01","requires_shipping":true,"taxable":true,"featured_image":{"id":36350405673059,"product_id":6541725433955,"position":13,"created_at":"2026-07-22T20:17:00+08:00","updated_at":"2026-07-22T20:17:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15f2ac790e28113aee792fe1c7b420904d315e4a_ca8eb5c2-a724-45d5-af5f-023c67fe9493.webp?v=1784722622","variant_ids":[41638626066531]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit noiinoii 保齡球兔 - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST01164O8-MW01","featured_media":{"alt":null,"id":27854210793571,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15f2ac790e28113aee792fe1c7b420904d315e4a_ca8eb5c2-a724-45d5-af5f-023c67fe9493.webp?v=1784722622"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8f81339bec35e0d8cf9310d6ad4181f3c0009fe_7cd93413-275e-450d-b00c-a66be28af8b2.webp?v=1712826447","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd866c7cd562141bfe9bea57b27f4df26904422a.webp?v=1758529286","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5141c40be3e6599edc5f9e20cd7509654fb5648c.webp?v=1758529286","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/954803178f44084bab6e0ea70d0df3b9dce09bb6.webp?v=1758529287","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ed5a51319ed2c6c4a0f5506059de488c0c6fad1.webp?v=1758529287","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be7059926d3e8cc92873db50d76b38672d1f1b7d.webp?v=1758529288","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15f2ac790e28113aee792fe1c7b420904d315e4a.webp?v=1758529289","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ef9793a0a4c6fd66f7f1805a4b63a284be72df5.webp?v=1758529289","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5141c40be3e6599edc5f9e20cd7509654fb5648c_cb5f5b3b-1725-4067-a7d8-e43348722744.webp?v=1784722619","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be7059926d3e8cc92873db50d76b38672d1f1b7d_59776cc1-d609-48d0-b0fe-7e6d57666cca.webp?v=1784722619","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ef9793a0a4c6fd66f7f1805a4b63a284be72df5_1df7b86f-bb2c-4de4-a408-87e75945d6db.webp?v=1784722620","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/954803178f44084bab6e0ea70d0df3b9dce09bb6_378a3350-e9b5-4d84-99ba-34434801e3b6.webp?v=1784722621","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15f2ac790e28113aee792fe1c7b420904d315e4a_ca8eb5c2-a724-45d5-af5f-023c67fe9493.webp?v=1784722622","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ed5a51319ed2c6c4a0f5506059de488c0c6fad1_d66fba1f-0d5a-4ada-876d-5df0f5aef4dc.webp?v=1784722624"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8f81339bec35e0d8cf9310d6ad4181f3c0009fe_7cd93413-275e-450d-b00c-a66be28af8b2.webp?v=1712826447","options":["color"],"media":[{"alt":null,"id":23646437703779,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8f81339bec35e0d8cf9310d6ad4181f3c0009fe_7cd93413-275e-450d-b00c-a66be28af8b2.webp?v=1712826447"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8f81339bec35e0d8cf9310d6ad4181f3c0009fe_7cd93413-275e-450d-b00c-a66be28af8b2.webp?v=1712826447","width":2000},{"alt":null,"id":26085572345955,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd866c7cd562141bfe9bea57b27f4df26904422a.webp?v=1758529286"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd866c7cd562141bfe9bea57b27f4df26904422a.webp?v=1758529286","width":2000},{"alt":null,"id":26085572444259,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5141c40be3e6599edc5f9e20cd7509654fb5648c.webp?v=1758529286"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5141c40be3e6599edc5f9e20cd7509654fb5648c.webp?v=1758529286","width":2000},{"alt":null,"id":26085572542563,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/954803178f44084bab6e0ea70d0df3b9dce09bb6.webp?v=1758529287"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/954803178f44084bab6e0ea70d0df3b9dce09bb6.webp?v=1758529287","width":2000},{"alt":null,"id":26085572771939,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ed5a51319ed2c6c4a0f5506059de488c0c6fad1.webp?v=1758529287"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ed5a51319ed2c6c4a0f5506059de488c0c6fad1.webp?v=1758529287","width":2000},{"alt":null,"id":26085573001315,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be7059926d3e8cc92873db50d76b38672d1f1b7d.webp?v=1758529288"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be7059926d3e8cc92873db50d76b38672d1f1b7d.webp?v=1758529288","width":2000},{"alt":null,"id":26085573230691,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15f2ac790e28113aee792fe1c7b420904d315e4a.webp?v=1758529289"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15f2ac790e28113aee792fe1c7b420904d315e4a.webp?v=1758529289","width":2000},{"alt":null,"id":26085573460067,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ef9793a0a4c6fd66f7f1805a4b63a284be72df5.webp?v=1758529289"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ef9793a0a4c6fd66f7f1805a4b63a284be72df5.webp?v=1758529289","width":2000},{"alt":null,"id":27854206795875,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5141c40be3e6599edc5f9e20cd7509654fb5648c_cb5f5b3b-1725-4067-a7d8-e43348722744.webp?v=1784722619"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5141c40be3e6599edc5f9e20cd7509654fb5648c_cb5f5b3b-1725-4067-a7d8-e43348722744.webp?v=1784722619","width":2000},{"alt":null,"id":27854207680611,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be7059926d3e8cc92873db50d76b38672d1f1b7d_59776cc1-d609-48d0-b0fe-7e6d57666cca.webp?v=1784722619"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be7059926d3e8cc92873db50d76b38672d1f1b7d_59776cc1-d609-48d0-b0fe-7e6d57666cca.webp?v=1784722619","width":2000},{"alt":null,"id":27854208630883,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ef9793a0a4c6fd66f7f1805a4b63a284be72df5_1df7b86f-bb2c-4de4-a408-87e75945d6db.webp?v=1784722620"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ef9793a0a4c6fd66f7f1805a4b63a284be72df5_1df7b86f-bb2c-4de4-a408-87e75945d6db.webp?v=1784722620","width":2000},{"alt":null,"id":27854209581155,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/954803178f44084bab6e0ea70d0df3b9dce09bb6_378a3350-e9b5-4d84-99ba-34434801e3b6.webp?v=1784722621"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/954803178f44084bab6e0ea70d0df3b9dce09bb6_378a3350-e9b5-4d84-99ba-34434801e3b6.webp?v=1784722621","width":2000},{"alt":null,"id":27854210793571,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15f2ac790e28113aee792fe1c7b420904d315e4a_ca8eb5c2-a724-45d5-af5f-023c67fe9493.webp?v=1784722622"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15f2ac790e28113aee792fe1c7b420904d315e4a_ca8eb5c2-a724-45d5-af5f-023c67fe9493.webp?v=1784722622","width":2000},{"alt":null,"id":27854212104291,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ed5a51319ed2c6c4a0f5506059de488c0c6fad1_d66fba1f-0d5a-4ada-876d-5df0f5aef4dc.webp?v=1784722624"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ed5a51319ed2c6c4a0f5506059de488c0c6fad1_d66fba1f-0d5a-4ada-876d-5df0f5aef4dc.webp?v=1784722624","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":""};
$isMerge = null;
$variants = [{"id":39267593748579,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0116452-MW01","requires_shipping":true,"taxable":true,"featured_image":{"id":36350401708131,"product_id":6541725433955,"position":9,"created_at":"2026-07-22T20:16:56+08:00","updated_at":"2026-07-22T20:16:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5141c40be3e6599edc5f9e20cd7509654fb5648c_cb5f5b3b-1725-4067-a7d8-e43348722744.webp?v=1784722619","variant_ids":[39267593748579]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit noiinoii 保齡球兔 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":-48,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0116452-MW01","featured_media":{"alt":null,"id":27854206795875,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5141c40be3e6599edc5f9e20cd7509654fb5648c_cb5f5b3b-1725-4067-a7d8-e43348722744.webp?v=1784722619"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41638626000995,"title":"White","option1":"White","option2":null,"option3":null,"sku":"SST0116453-MW01","requires_shipping":true,"taxable":true,"featured_image":{"id":36350403510371,"product_id":6541725433955,"position":11,"created_at":"2026-07-22T20:16:58+08:00","updated_at":"2026-07-22T20:17:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ef9793a0a4c6fd66f7f1805a4b63a284be72df5_1df7b86f-bb2c-4de4-a408-87e75945d6db.webp?v=1784722620","variant_ids":[41638626000995]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit noiinoii 保齡球兔 - White","public_title":"White","options":["White"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0116453-MW01","featured_media":{"alt":null,"id":27854208630883,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ef9793a0a4c6fd66f7f1805a4b63a284be72df5_1df7b86f-bb2c-4de4-a408-87e75945d6db.webp?v=1784722620"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41638626066531,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"SST01164O8-MW01","requires_shipping":true,"taxable":true,"featured_image":{"id":36350405673059,"product_id":6541725433955,"position":13,"created_at":"2026-07-22T20:17:00+08:00","updated_at":"2026-07-22T20:17:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15f2ac790e28113aee792fe1c7b420904d315e4a_ca8eb5c2-a724-45d5-af5f-023c67fe9493.webp?v=1784722622","variant_ids":[41638626066531]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit noiinoii 保齡球兔 - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST01164O8-MW01","featured_media":{"alt":null,"id":27854210793571,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15f2ac790e28113aee792fe1c7b420904d315e4a_ca8eb5c2-a724-45d5-af5f-023c67fe9493.webp?v=1784722622"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":39267593748579,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0116452-MW01","requires_shipping":true,"taxable":true,"featured_image":{"id":36350401708131,"product_id":6541725433955,"position":9,"created_at":"2026-07-22T20:16:56+08:00","updated_at":"2026-07-22T20:16:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5141c40be3e6599edc5f9e20cd7509654fb5648c_cb5f5b3b-1725-4067-a7d8-e43348722744.webp?v=1784722619","variant_ids":[39267593748579]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit noiinoii 保齡球兔 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":-48,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0116452-MW01","featured_media":{"alt":null,"id":27854206795875,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5141c40be3e6599edc5f9e20cd7509654fb5648c_cb5f5b3b-1725-4067-a7d8-e43348722744.webp?v=1784722619"}},"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: "停產"
}