Home
›
iPhone 12 mini SolidSuit PosterLad 樹
$product = {"id":7911267696739,"title":"iPhone 12 mini SolidSuit PosterLad 樹","handle":"iphone-12-mini-solidsuit-classic-pos09","description":null,"published_at":"2025-11-05T10:36:47+08:00","created_at":"2025-11-04T10:47:43+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-posterlad","device-iPhone 12 Mini","merge","reseller-posterlad"],"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":43812158472291,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0118452-POS09","requires_shipping":true,"taxable":true,"featured_image":{"id":36403565559907,"product_id":7911267696739,"position":11,"created_at":"2026-07-27T16:37:06+08:00","updated_at":"2026-07-27T16:37:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12da13043a75cffd6c1a750bd831b5f37a5ddae1_698cba07-9c48-4968-aec2-5c9b605503ca.webp?v=1785141428","variant_ids":[43812158472291]},"available":true,"name":"iPhone 12 mini SolidSuit PosterLad 樹 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0118452-POS09","featured_media":{"alt":null,"id":27907173580899,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12da13043a75cffd6c1a750bd831b5f37a5ddae1_698cba07-9c48-4968-aec2-5c9b605503ca.webp?v=1785141428"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43812158537827,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"SST011840B-POS09","requires_shipping":true,"taxable":true,"featured_image":{"id":36403563987043,"product_id":7911267696739,"position":10,"created_at":"2026-07-27T16:37:03+08:00","updated_at":"2026-07-27T16:37:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/951c12dbc1776dd7a71237352692146a9a0626eb_71f9caa9-2e72-40a4-a153-eb87db282bc0.webp?v=1785141425","variant_ids":[43812158537827]},"available":true,"name":"iPhone 12 mini SolidSuit PosterLad 樹 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST011840B-POS09","featured_media":{"alt":null,"id":27907171745891,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/951c12dbc1776dd7a71237352692146a9a0626eb_71f9caa9-2e72-40a4-a153-eb87db282bc0.webp?v=1785141425"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43812158636131,"title":"Cobalt Blue","option1":"Cobalt Blue","option2":null,"option3":null,"sku":"SST01184O9-POS09","requires_shipping":true,"taxable":true,"featured_image":{"id":36403568083043,"product_id":7911267696739,"position":15,"created_at":"2026-07-27T16:37:15+08:00","updated_at":"2026-07-27T16:37:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/221d221eb76fc64e869c23dec796a0d2e24ce020_8e54db2e-109a-4332-a8c2-a265233a5411.webp?v=1785141437","variant_ids":[43812158636131]},"available":true,"name":"iPhone 12 mini SolidSuit PosterLad 樹 - Cobalt Blue","public_title":"Cobalt Blue","options":["Cobalt Blue"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST01184O9-POS09","featured_media":{"alt":null,"id":27907176005731,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/221d221eb76fc64e869c23dec796a0d2e24ce020_8e54db2e-109a-4332-a8c2-a265233a5411.webp?v=1785141437"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/951c12dbc1776dd7a71237352692146a9a0626eb.webp?v=1762224470","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/221d221eb76fc64e869c23dec796a0d2e24ce020.webp?v=1762224471","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3135bcb2d14f809d49c5157d8316610c64638df7.webp?v=1762224472","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/848ce048b598141d07ad5027d33b54e88e997da1.webp?v=1762224472","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0446a89d0784682288f827c2fc8dc207c70e08d1.webp?v=1762224473","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68353f6d1ab08e06e656e82c91d80781238ab20f.webp?v=1762224474","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10c79c19b6fc272ade002af7158bb5811a7f801d.webp?v=1762224475","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f433c28df0d5ab694718139dac963dfff69f7562.webp?v=1762224476","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12da13043a75cffd6c1a750bd831b5f37a5ddae1.webp?v=1762224477","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/951c12dbc1776dd7a71237352692146a9a0626eb_71f9caa9-2e72-40a4-a153-eb87db282bc0.webp?v=1785141425","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12da13043a75cffd6c1a750bd831b5f37a5ddae1_698cba07-9c48-4968-aec2-5c9b605503ca.webp?v=1785141428","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68353f6d1ab08e06e656e82c91d80781238ab20f_fc05f1cb-dd53-4b71-a527-5bbe97d8f4c1.webp?v=1785141430","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3135bcb2d14f809d49c5157d8316610c64638df7_057cdadf-01b3-458b-af90-f7794af4f419.webp?v=1785141431","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10c79c19b6fc272ade002af7158bb5811a7f801d_4e125972-ee29-434b-b256-eb3bcfa9cb4c.webp?v=1785141434","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/221d221eb76fc64e869c23dec796a0d2e24ce020_8e54db2e-109a-4332-a8c2-a265233a5411.webp?v=1785141437"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/951c12dbc1776dd7a71237352692146a9a0626eb.webp?v=1762224470","options":["color"],"media":[{"alt":null,"id":26297142640739,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/951c12dbc1776dd7a71237352692146a9a0626eb.webp?v=1762224470"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/951c12dbc1776dd7a71237352692146a9a0626eb.webp?v=1762224470","width":2000},{"alt":null,"id":26297142902883,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/221d221eb76fc64e869c23dec796a0d2e24ce020.webp?v=1762224471"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/221d221eb76fc64e869c23dec796a0d2e24ce020.webp?v=1762224471","width":2000},{"alt":null,"id":26297143263331,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3135bcb2d14f809d49c5157d8316610c64638df7.webp?v=1762224472"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3135bcb2d14f809d49c5157d8316610c64638df7.webp?v=1762224472","width":2000},{"alt":null,"id":26297143492707,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/848ce048b598141d07ad5027d33b54e88e997da1.webp?v=1762224472"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/848ce048b598141d07ad5027d33b54e88e997da1.webp?v=1762224472","width":2000},{"alt":null,"id":26297143787619,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0446a89d0784682288f827c2fc8dc207c70e08d1.webp?v=1762224473"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0446a89d0784682288f827c2fc8dc207c70e08d1.webp?v=1762224473","width":2000},{"alt":null,"id":26297144016995,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68353f6d1ab08e06e656e82c91d80781238ab20f.webp?v=1762224474"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68353f6d1ab08e06e656e82c91d80781238ab20f.webp?v=1762224474","width":2000},{"alt":null,"id":26297144246371,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10c79c19b6fc272ade002af7158bb5811a7f801d.webp?v=1762224475"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10c79c19b6fc272ade002af7158bb5811a7f801d.webp?v=1762224475","width":2000},{"alt":null,"id":26297144410211,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f433c28df0d5ab694718139dac963dfff69f7562.webp?v=1762224476"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f433c28df0d5ab694718139dac963dfff69f7562.webp?v=1762224476","width":2000},{"alt":null,"id":26297144672355,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12da13043a75cffd6c1a750bd831b5f37a5ddae1.webp?v=1762224477"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12da13043a75cffd6c1a750bd831b5f37a5ddae1.webp?v=1762224477","width":2000},{"alt":null,"id":27907171745891,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/951c12dbc1776dd7a71237352692146a9a0626eb_71f9caa9-2e72-40a4-a153-eb87db282bc0.webp?v=1785141425"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/951c12dbc1776dd7a71237352692146a9a0626eb_71f9caa9-2e72-40a4-a153-eb87db282bc0.webp?v=1785141425","width":2000},{"alt":null,"id":27907173580899,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12da13043a75cffd6c1a750bd831b5f37a5ddae1_698cba07-9c48-4968-aec2-5c9b605503ca.webp?v=1785141428"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12da13043a75cffd6c1a750bd831b5f37a5ddae1_698cba07-9c48-4968-aec2-5c9b605503ca.webp?v=1785141428","width":2000},{"alt":null,"id":27907174760547,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68353f6d1ab08e06e656e82c91d80781238ab20f_fc05f1cb-dd53-4b71-a527-5bbe97d8f4c1.webp?v=1785141430"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68353f6d1ab08e06e656e82c91d80781238ab20f_fc05f1cb-dd53-4b71-a527-5bbe97d8f4c1.webp?v=1785141430","width":2000},{"alt":null,"id":27907175284835,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3135bcb2d14f809d49c5157d8316610c64638df7_057cdadf-01b3-458b-af90-f7794af4f419.webp?v=1785141431"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3135bcb2d14f809d49c5157d8316610c64638df7_057cdadf-01b3-458b-af90-f7794af4f419.webp?v=1785141431","width":2000},{"alt":null,"id":27907175874659,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10c79c19b6fc272ade002af7158bb5811a7f801d_4e125972-ee29-434b-b256-eb3bcfa9cb4c.webp?v=1785141434"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10c79c19b6fc272ade002af7158bb5811a7f801d_4e125972-ee29-434b-b256-eb3bcfa9cb4c.webp?v=1785141434","width":2000},{"alt":null,"id":27907176005731,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/221d221eb76fc64e869c23dec796a0d2e24ce020_8e54db2e-109a-4332-a8c2-a265233a5411.webp?v=1785141437"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/221d221eb76fc64e869c23dec796a0d2e24ce020_8e54db2e-109a-4332-a8c2-a265233a5411.webp?v=1785141437","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43812158472291,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0118452-POS09","requires_shipping":true,"taxable":true,"featured_image":{"id":36403565559907,"product_id":7911267696739,"position":11,"created_at":"2026-07-27T16:37:06+08:00","updated_at":"2026-07-27T16:37:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12da13043a75cffd6c1a750bd831b5f37a5ddae1_698cba07-9c48-4968-aec2-5c9b605503ca.webp?v=1785141428","variant_ids":[43812158472291]},"available":true,"name":"iPhone 12 mini SolidSuit PosterLad 樹 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0118452-POS09","featured_media":{"alt":null,"id":27907173580899,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12da13043a75cffd6c1a750bd831b5f37a5ddae1_698cba07-9c48-4968-aec2-5c9b605503ca.webp?v=1785141428"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43812158537827,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"SST011840B-POS09","requires_shipping":true,"taxable":true,"featured_image":{"id":36403563987043,"product_id":7911267696739,"position":10,"created_at":"2026-07-27T16:37:03+08:00","updated_at":"2026-07-27T16:37:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/951c12dbc1776dd7a71237352692146a9a0626eb_71f9caa9-2e72-40a4-a153-eb87db282bc0.webp?v=1785141425","variant_ids":[43812158537827]},"available":true,"name":"iPhone 12 mini SolidSuit PosterLad 樹 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST011840B-POS09","featured_media":{"alt":null,"id":27907171745891,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/951c12dbc1776dd7a71237352692146a9a0626eb_71f9caa9-2e72-40a4-a153-eb87db282bc0.webp?v=1785141425"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43812158636131,"title":"Cobalt Blue","option1":"Cobalt Blue","option2":null,"option3":null,"sku":"SST01184O9-POS09","requires_shipping":true,"taxable":true,"featured_image":{"id":36403568083043,"product_id":7911267696739,"position":15,"created_at":"2026-07-27T16:37:15+08:00","updated_at":"2026-07-27T16:37:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/221d221eb76fc64e869c23dec796a0d2e24ce020_8e54db2e-109a-4332-a8c2-a265233a5411.webp?v=1785141437","variant_ids":[43812158636131]},"available":true,"name":"iPhone 12 mini SolidSuit PosterLad 樹 - Cobalt Blue","public_title":"Cobalt Blue","options":["Cobalt Blue"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST01184O9-POS09","featured_media":{"alt":null,"id":27907176005731,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/221d221eb76fc64e869c23dec796a0d2e24ce020_8e54db2e-109a-4332-a8c2-a265233a5411.webp?v=1785141437"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43812158472291,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0118452-POS09","requires_shipping":true,"taxable":true,"featured_image":{"id":36403565559907,"product_id":7911267696739,"position":11,"created_at":"2026-07-27T16:37:06+08:00","updated_at":"2026-07-27T16:37:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12da13043a75cffd6c1a750bd831b5f37a5ddae1_698cba07-9c48-4968-aec2-5c9b605503ca.webp?v=1785141428","variant_ids":[43812158472291]},"available":true,"name":"iPhone 12 mini SolidSuit PosterLad 樹 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0118452-POS09","featured_media":{"alt":null,"id":27907173580899,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12da13043a75cffd6c1a750bd831b5f37a5ddae1_698cba07-9c48-4968-aec2-5c9b605503ca.webp?v=1785141428"}},"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: "停產"
}