$product = {"id":7815638876259,"title":"iPhone 11 Pro Max SolidSuit 小玉米花 花花禮服","handle":"iphone-11-pro-max-solidsuit-bumper-back-crossover-design-eg08","description":null,"published_at":"2025-06-11T15:20:37+08:00","created_at":"2025-06-11T14:28:53+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-littlepopcorn","device-iPhone 11 Pro Max","merge","reseller-littlepopcorn"],"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":43444905082979,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"SST01149O8-EG08","requires_shipping":true,"taxable":true,"featured_image":{"id":34012290941027,"product_id":7815638876259,"position":11,"created_at":"2025-06-12T10:09:05+08:00","updated_at":"2025-06-12T10:09:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/688cfa71fd7baae5b0f0145ea4adf0326f0cfbf7_547eb5ab-ea96-499f-89de-e01e73f47ac5.webp?v=1749694147","variant_ids":[43444905082979]},"available":true,"name":"iPhone 11 Pro Max SolidSuit 小玉米花 花花禮服 - 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":"SST01149O8-EG08","featured_media":{"alt":null,"id":25692868837475,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/688cfa71fd7baae5b0f0145ea4adf0326f0cfbf7_547eb5ab-ea96-499f-89de-e01e73f47ac5.webp?v=1749694147"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43444907442275,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0114952-EG08","requires_shipping":true,"taxable":true,"featured_image":{"id":34012291924067,"product_id":7815638876259,"position":12,"created_at":"2025-06-12T10:09:06+08:00","updated_at":"2025-06-12T10:09:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/291ed578d2fe66f81126badfd933eca0202971a1_bd2d33d1-c924-4001-8c59-67c740b45318.webp?v=1749694148","variant_ids":[43444907442275]},"available":true,"name":"iPhone 11 Pro Max SolidSuit 小玉米花 花花禮服 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0114952-EG08","featured_media":{"alt":null,"id":25692869132387,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/291ed578d2fe66f81126badfd933eca0202971a1_bd2d33d1-c924-4001-8c59-67c740b45318.webp?v=1749694148"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/092adc64388b6e53c934e6a88acfe8151ff222ca.webp?v=1749623338","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/688cfa71fd7baae5b0f0145ea4adf0326f0cfbf7.webp?v=1749623338","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/291ed578d2fe66f81126badfd933eca0202971a1.webp?v=1749623339","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/092adc64388b6e53c934e6a88acfe8151ff222ca_eab9c24b-88a2-4e7a-9b5a-4aa9387b541c.webp?v=1749624599","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/688cfa71fd7baae5b0f0145ea4adf0326f0cfbf7_589685ff-1aa9-48b5-b0e1-8f88591f824d.webp?v=1749624600","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/291ed578d2fe66f81126badfd933eca0202971a1_00ea2070-417d-4b74-8675-90f63de070ec.webp?v=1749624601","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/688cfa71fd7baae5b0f0145ea4adf0326f0cfbf7_accf58cc-33b0-4c2a-abaf-ee60ebc4b016.webp?v=1749625233","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/291ed578d2fe66f81126badfd933eca0202971a1_672f4b1d-eac7-4b87-9cb4-f2de5c6d6ccd.webp?v=1749625233","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/092adc64388b6e53c934e6a88acfe8151ff222ca_b7fbe503-ea07-457a-8804-08d85fc8374f.webp?v=1749625234","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/092adc64388b6e53c934e6a88acfe8151ff222ca_78c0410f-195d-4f5d-bfa9-0993c8b6b38f.webp?v=1749694147","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/688cfa71fd7baae5b0f0145ea4adf0326f0cfbf7_547eb5ab-ea96-499f-89de-e01e73f47ac5.webp?v=1749694147","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/291ed578d2fe66f81126badfd933eca0202971a1_bd2d33d1-c924-4001-8c59-67c740b45318.webp?v=1749694148"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/092adc64388b6e53c934e6a88acfe8151ff222ca.webp?v=1749623338","options":["color"],"media":[{"alt":null,"id":25689571000419,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/092adc64388b6e53c934e6a88acfe8151ff222ca.webp?v=1749623338"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/092adc64388b6e53c934e6a88acfe8151ff222ca.webp?v=1749623338","width":2000},{"alt":null,"id":25689571164259,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/688cfa71fd7baae5b0f0145ea4adf0326f0cfbf7.webp?v=1749623338"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/688cfa71fd7baae5b0f0145ea4adf0326f0cfbf7.webp?v=1749623338","width":2000},{"alt":null,"id":25689571328099,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/291ed578d2fe66f81126badfd933eca0202971a1.webp?v=1749623339"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/291ed578d2fe66f81126badfd933eca0202971a1.webp?v=1749623339","width":2000},{"alt":null,"id":25689781403747,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/092adc64388b6e53c934e6a88acfe8151ff222ca_eab9c24b-88a2-4e7a-9b5a-4aa9387b541c.webp?v=1749624599"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/092adc64388b6e53c934e6a88acfe8151ff222ca_eab9c24b-88a2-4e7a-9b5a-4aa9387b541c.webp?v=1749624599","width":2000},{"alt":null,"id":25689781633123,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/688cfa71fd7baae5b0f0145ea4adf0326f0cfbf7_589685ff-1aa9-48b5-b0e1-8f88591f824d.webp?v=1749624600"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/688cfa71fd7baae5b0f0145ea4adf0326f0cfbf7_589685ff-1aa9-48b5-b0e1-8f88591f824d.webp?v=1749624600","width":2000},{"alt":null,"id":25689781928035,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/291ed578d2fe66f81126badfd933eca0202971a1_00ea2070-417d-4b74-8675-90f63de070ec.webp?v=1749624601"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/291ed578d2fe66f81126badfd933eca0202971a1_00ea2070-417d-4b74-8675-90f63de070ec.webp?v=1749624601","width":2000},{"alt":null,"id":25689903202403,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/688cfa71fd7baae5b0f0145ea4adf0326f0cfbf7_accf58cc-33b0-4c2a-abaf-ee60ebc4b016.webp?v=1749625233"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/688cfa71fd7baae5b0f0145ea4adf0326f0cfbf7_accf58cc-33b0-4c2a-abaf-ee60ebc4b016.webp?v=1749625233","width":2000},{"alt":null,"id":25689903431779,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/291ed578d2fe66f81126badfd933eca0202971a1_672f4b1d-eac7-4b87-9cb4-f2de5c6d6ccd.webp?v=1749625233"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/291ed578d2fe66f81126badfd933eca0202971a1_672f4b1d-eac7-4b87-9cb4-f2de5c6d6ccd.webp?v=1749625233","width":2000},{"alt":null,"id":25689903693923,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/092adc64388b6e53c934e6a88acfe8151ff222ca_b7fbe503-ea07-457a-8804-08d85fc8374f.webp?v=1749625234"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/092adc64388b6e53c934e6a88acfe8151ff222ca_b7fbe503-ea07-457a-8804-08d85fc8374f.webp?v=1749625234","width":2000},{"alt":null,"id":25692868739171,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/092adc64388b6e53c934e6a88acfe8151ff222ca_78c0410f-195d-4f5d-bfa9-0993c8b6b38f.webp?v=1749694147"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/092adc64388b6e53c934e6a88acfe8151ff222ca_78c0410f-195d-4f5d-bfa9-0993c8b6b38f.webp?v=1749694147","width":2000},{"alt":null,"id":25692868837475,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/688cfa71fd7baae5b0f0145ea4adf0326f0cfbf7_547eb5ab-ea96-499f-89de-e01e73f47ac5.webp?v=1749694147"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/688cfa71fd7baae5b0f0145ea4adf0326f0cfbf7_547eb5ab-ea96-499f-89de-e01e73f47ac5.webp?v=1749694147","width":2000},{"alt":null,"id":25692869132387,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/291ed578d2fe66f81126badfd933eca0202971a1_bd2d33d1-c924-4001-8c59-67c740b45318.webp?v=1749694148"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/291ed578d2fe66f81126badfd933eca0202971a1_bd2d33d1-c924-4001-8c59-67c740b45318.webp?v=1749694148","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43444905082979,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"SST01149O8-EG08","requires_shipping":true,"taxable":true,"featured_image":{"id":34012290941027,"product_id":7815638876259,"position":11,"created_at":"2025-06-12T10:09:05+08:00","updated_at":"2025-06-12T10:09:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/688cfa71fd7baae5b0f0145ea4adf0326f0cfbf7_547eb5ab-ea96-499f-89de-e01e73f47ac5.webp?v=1749694147","variant_ids":[43444905082979]},"available":true,"name":"iPhone 11 Pro Max SolidSuit 小玉米花 花花禮服 - 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":"SST01149O8-EG08","featured_media":{"alt":null,"id":25692868837475,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/688cfa71fd7baae5b0f0145ea4adf0326f0cfbf7_547eb5ab-ea96-499f-89de-e01e73f47ac5.webp?v=1749694147"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43444907442275,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0114952-EG08","requires_shipping":true,"taxable":true,"featured_image":{"id":34012291924067,"product_id":7815638876259,"position":12,"created_at":"2025-06-12T10:09:06+08:00","updated_at":"2025-06-12T10:09:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/291ed578d2fe66f81126badfd933eca0202971a1_bd2d33d1-c924-4001-8c59-67c740b45318.webp?v=1749694148","variant_ids":[43444907442275]},"available":true,"name":"iPhone 11 Pro Max SolidSuit 小玉米花 花花禮服 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0114952-EG08","featured_media":{"alt":null,"id":25692869132387,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/291ed578d2fe66f81126badfd933eca0202971a1_bd2d33d1-c924-4001-8c59-67c740b45318.webp?v=1749694148"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43444905082979,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"SST01149O8-EG08","requires_shipping":true,"taxable":true,"featured_image":{"id":34012290941027,"product_id":7815638876259,"position":11,"created_at":"2025-06-12T10:09:05+08:00","updated_at":"2025-06-12T10:09:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/688cfa71fd7baae5b0f0145ea4adf0326f0cfbf7_547eb5ab-ea96-499f-89de-e01e73f47ac5.webp?v=1749694147","variant_ids":[43444905082979]},"available":true,"name":"iPhone 11 Pro Max SolidSuit 小玉米花 花花禮服 - 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":"SST01149O8-EG08","featured_media":{"alt":null,"id":25692868837475,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/688cfa71fd7baae5b0f0145ea4adf0326f0cfbf7_547eb5ab-ea96-499f-89de-e01e73f47ac5.webp?v=1749694147"}},"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: "停產"
}