Home
›
iPhone 7 / 8 / SE / SE2 SolidSuit noiinoii 賊笑雙仔
$product = {"id":6653189226595,"title":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit noiinoii 賊笑雙仔","handle":"iphone-8-solidsuit-classic-mw04","description":"","published_at":"2024-04-15T09:38:40+08:00","created_at":"2021-10-18T14:24:53+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":40122717536355,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0116452-MW04","requires_shipping":true,"taxable":true,"featured_image":{"id":36350406295651,"product_id":6653189226595,"position":13,"created_at":"2026-07-22T20:17:02+08:00","updated_at":"2026-07-22T20:17:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a80a32d9dc66869ccefff1237aa9797ea18a013d_2ff29845-18c5-42a3-91e4-ee10b10b1444.webp?v=1784722624","variant_ids":[40122717536355]},"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":-2,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0116452-MW04","featured_media":{"alt":null,"id":27854211645539,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a80a32d9dc66869ccefff1237aa9797ea18a013d_2ff29845-18c5-42a3-91e4-ee10b10b1444.webp?v=1784722624"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41638073270371,"title":"White","option1":"White","option2":null,"option3":null,"sku":"SST0116453-MW04","requires_shipping":true,"taxable":true,"featured_image":{"id":36350403575907,"product_id":6653189226595,"position":10,"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\/8d42c0bf6fdb4eeb1b7579396fb1966f0c1e88bc_ae80ad67-c3ac-4b63-9521-7aad3509776b.webp?v=1784722620","variant_ids":[41638073270371]},"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-MW04","featured_media":{"alt":null,"id":27854208696419,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d42c0bf6fdb4eeb1b7579396fb1966f0c1e88bc_ae80ad67-c3ac-4b63-9521-7aad3509776b.webp?v=1784722620"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41638073368675,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"SST01164O8-MW04","requires_shipping":true,"taxable":true,"featured_image":{"id":36350402723939,"product_id":6653189226595,"position":9,"created_at":"2026-07-22T20:16:57+08:00","updated_at":"2026-07-22T20:16:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2afd9974b3b962ea4102c8214020188c857d72ea_8f386ff6-f0b8-4680-9011-1210f0f9fd28.webp?v=1784722619","variant_ids":[41638073368675]},"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-MW04","featured_media":{"alt":null,"id":27854207844451,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2afd9974b3b962ea4102c8214020188c857d72ea_8f386ff6-f0b8-4680-9011-1210f0f9fd28.webp?v=1784722619"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07d8e020f0b8167c0bab71211c957c1c1141d5de_ef57c501-7508-41e8-8eaf-6e0c22955e29.webp?v=1712826011","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e7eec6443fc2f3c0d11b7f54335c5eb4f53c951.webp?v=1758529243","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d42c0bf6fdb4eeb1b7579396fb1966f0c1e88bc.webp?v=1758529244","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5aa4e6ed229e4840ceb184c7ea30d4492777fe1.webp?v=1758529244","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9f5867379c02825afcf5afa93b374c62545731b.webp?v=1758529245","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a80a32d9dc66869ccefff1237aa9797ea18a013d.webp?v=1758529245","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2afd9974b3b962ea4102c8214020188c857d72ea.webp?v=1758529246","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07bc14d834723fb4d83ae3c467b5feb84ec2fb9c.webp?v=1758529247","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2afd9974b3b962ea4102c8214020188c857d72ea_8f386ff6-f0b8-4680-9011-1210f0f9fd28.webp?v=1784722619","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d42c0bf6fdb4eeb1b7579396fb1966f0c1e88bc_ae80ad67-c3ac-4b63-9521-7aad3509776b.webp?v=1784722620","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e7eec6443fc2f3c0d11b7f54335c5eb4f53c951_80f43224-cc3a-4181-b685-b9c460723865.webp?v=1784722621","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5aa4e6ed229e4840ceb184c7ea30d4492777fe1_0baa335f-e3e8-49b5-8864-2183495f3d95.webp?v=1784722622","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a80a32d9dc66869ccefff1237aa9797ea18a013d_2ff29845-18c5-42a3-91e4-ee10b10b1444.webp?v=1784722624","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07bc14d834723fb4d83ae3c467b5feb84ec2fb9c_c9d4bef7-86f3-4c50-ae12-ca8592d7c4e1.webp?v=1784722625"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07d8e020f0b8167c0bab71211c957c1c1141d5de_ef57c501-7508-41e8-8eaf-6e0c22955e29.webp?v=1712826011","options":["color"],"media":[{"alt":null,"id":23646221172835,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07d8e020f0b8167c0bab71211c957c1c1141d5de_ef57c501-7508-41e8-8eaf-6e0c22955e29.webp?v=1712826011"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07d8e020f0b8167c0bab71211c957c1c1141d5de_ef57c501-7508-41e8-8eaf-6e0c22955e29.webp?v=1712826011","width":2000},{"alt":null,"id":26085554618467,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e7eec6443fc2f3c0d11b7f54335c5eb4f53c951.webp?v=1758529243"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e7eec6443fc2f3c0d11b7f54335c5eb4f53c951.webp?v=1758529243","width":2000},{"alt":null,"id":26085554913379,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d42c0bf6fdb4eeb1b7579396fb1966f0c1e88bc.webp?v=1758529244"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d42c0bf6fdb4eeb1b7579396fb1966f0c1e88bc.webp?v=1758529244","width":2000},{"alt":null,"id":26085555241059,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5aa4e6ed229e4840ceb184c7ea30d4492777fe1.webp?v=1758529244"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5aa4e6ed229e4840ceb184c7ea30d4492777fe1.webp?v=1758529244","width":2000},{"alt":null,"id":26085555437667,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9f5867379c02825afcf5afa93b374c62545731b.webp?v=1758529245"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9f5867379c02825afcf5afa93b374c62545731b.webp?v=1758529245","width":2000},{"alt":null,"id":26085555929187,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a80a32d9dc66869ccefff1237aa9797ea18a013d.webp?v=1758529245"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a80a32d9dc66869ccefff1237aa9797ea18a013d.webp?v=1758529245","width":2000},{"alt":null,"id":26085556125795,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2afd9974b3b962ea4102c8214020188c857d72ea.webp?v=1758529246"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2afd9974b3b962ea4102c8214020188c857d72ea.webp?v=1758529246","width":2000},{"alt":null,"id":26085556486243,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07bc14d834723fb4d83ae3c467b5feb84ec2fb9c.webp?v=1758529247"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07bc14d834723fb4d83ae3c467b5feb84ec2fb9c.webp?v=1758529247","width":2000},{"alt":null,"id":27854207844451,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2afd9974b3b962ea4102c8214020188c857d72ea_8f386ff6-f0b8-4680-9011-1210f0f9fd28.webp?v=1784722619"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2afd9974b3b962ea4102c8214020188c857d72ea_8f386ff6-f0b8-4680-9011-1210f0f9fd28.webp?v=1784722619","width":2000},{"alt":null,"id":27854208696419,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d42c0bf6fdb4eeb1b7579396fb1966f0c1e88bc_ae80ad67-c3ac-4b63-9521-7aad3509776b.webp?v=1784722620"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d42c0bf6fdb4eeb1b7579396fb1966f0c1e88bc_ae80ad67-c3ac-4b63-9521-7aad3509776b.webp?v=1784722620","width":2000},{"alt":null,"id":27854209876067,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e7eec6443fc2f3c0d11b7f54335c5eb4f53c951_80f43224-cc3a-4181-b685-b9c460723865.webp?v=1784722621"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e7eec6443fc2f3c0d11b7f54335c5eb4f53c951_80f43224-cc3a-4181-b685-b9c460723865.webp?v=1784722621","width":2000},{"alt":null,"id":27854210269283,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5aa4e6ed229e4840ceb184c7ea30d4492777fe1_0baa335f-e3e8-49b5-8864-2183495f3d95.webp?v=1784722622"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5aa4e6ed229e4840ceb184c7ea30d4492777fe1_0baa335f-e3e8-49b5-8864-2183495f3d95.webp?v=1784722622","width":2000},{"alt":null,"id":27854211645539,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a80a32d9dc66869ccefff1237aa9797ea18a013d_2ff29845-18c5-42a3-91e4-ee10b10b1444.webp?v=1784722624"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a80a32d9dc66869ccefff1237aa9797ea18a013d_2ff29845-18c5-42a3-91e4-ee10b10b1444.webp?v=1784722624","width":2000},{"alt":null,"id":27854212497507,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07bc14d834723fb4d83ae3c467b5feb84ec2fb9c_c9d4bef7-86f3-4c50-ae12-ca8592d7c4e1.webp?v=1784722625"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07bc14d834723fb4d83ae3c467b5feb84ec2fb9c_c9d4bef7-86f3-4c50-ae12-ca8592d7c4e1.webp?v=1784722625","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":""};
$isMerge = null;
$variants = [{"id":40122717536355,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0116452-MW04","requires_shipping":true,"taxable":true,"featured_image":{"id":36350406295651,"product_id":6653189226595,"position":13,"created_at":"2026-07-22T20:17:02+08:00","updated_at":"2026-07-22T20:17:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a80a32d9dc66869ccefff1237aa9797ea18a013d_2ff29845-18c5-42a3-91e4-ee10b10b1444.webp?v=1784722624","variant_ids":[40122717536355]},"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":-2,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0116452-MW04","featured_media":{"alt":null,"id":27854211645539,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a80a32d9dc66869ccefff1237aa9797ea18a013d_2ff29845-18c5-42a3-91e4-ee10b10b1444.webp?v=1784722624"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41638073270371,"title":"White","option1":"White","option2":null,"option3":null,"sku":"SST0116453-MW04","requires_shipping":true,"taxable":true,"featured_image":{"id":36350403575907,"product_id":6653189226595,"position":10,"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\/8d42c0bf6fdb4eeb1b7579396fb1966f0c1e88bc_ae80ad67-c3ac-4b63-9521-7aad3509776b.webp?v=1784722620","variant_ids":[41638073270371]},"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-MW04","featured_media":{"alt":null,"id":27854208696419,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d42c0bf6fdb4eeb1b7579396fb1966f0c1e88bc_ae80ad67-c3ac-4b63-9521-7aad3509776b.webp?v=1784722620"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41638073368675,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"SST01164O8-MW04","requires_shipping":true,"taxable":true,"featured_image":{"id":36350402723939,"product_id":6653189226595,"position":9,"created_at":"2026-07-22T20:16:57+08:00","updated_at":"2026-07-22T20:16:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2afd9974b3b962ea4102c8214020188c857d72ea_8f386ff6-f0b8-4680-9011-1210f0f9fd28.webp?v=1784722619","variant_ids":[41638073368675]},"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-MW04","featured_media":{"alt":null,"id":27854207844451,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2afd9974b3b962ea4102c8214020188c857d72ea_8f386ff6-f0b8-4680-9011-1210f0f9fd28.webp?v=1784722619"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":40122717536355,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0116452-MW04","requires_shipping":true,"taxable":true,"featured_image":{"id":36350406295651,"product_id":6653189226595,"position":13,"created_at":"2026-07-22T20:17:02+08:00","updated_at":"2026-07-22T20:17:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a80a32d9dc66869ccefff1237aa9797ea18a013d_2ff29845-18c5-42a3-91e4-ee10b10b1444.webp?v=1784722624","variant_ids":[40122717536355]},"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":-2,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0116452-MW04","featured_media":{"alt":null,"id":27854211645539,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a80a32d9dc66869ccefff1237aa9797ea18a013d_2ff29845-18c5-42a3-91e4-ee10b10b1444.webp?v=1784722624"}},"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: "停產"
}