$product = {"id":7815655948387,"title":"iPhone 11 Pro Max SolidSuit 小玉米花 新年恐龍","handle":"iphone-11-pro-max-solidsuit-bumper-back-crossover-design-eg10","description":null,"published_at":"2025-06-11T15:11:03+08:00","created_at":"2025-06-11T14:32:46+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":43444979892323,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"SST01149O8-EG10","requires_shipping":true,"taxable":true,"featured_image":{"id":34012025552995,"product_id":7815655948387,"position":10,"created_at":"2025-06-12T10:05:24+08:00","updated_at":"2025-06-12T10:05:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fd5d840dc9ecd4a116d8011fc5603b49c3f8b1c_101473bd-c85c-4b54-93c5-9976f5d91e2d.webp?v=1749693926","variant_ids":[43444979892323]},"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-EG10","featured_media":{"alt":null,"id":25692732555363,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fd5d840dc9ecd4a116d8011fc5603b49c3f8b1c_101473bd-c85c-4b54-93c5-9976f5d91e2d.webp?v=1749693926"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43444981366883,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0114952-EG10","requires_shipping":true,"taxable":true,"featured_image":{"id":34012026208355,"product_id":7815655948387,"position":11,"created_at":"2025-06-12T10:05:24+08:00","updated_at":"2025-06-12T10:05:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b576270c0fa09f84a04248c6e34cedbe047dbc9c_ff258632-68a5-41e5-b8f2-be5bede052f6.webp?v=1749693926","variant_ids":[43444981366883]},"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-EG10","featured_media":{"alt":null,"id":25692732784739,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b576270c0fa09f84a04248c6e34cedbe047dbc9c_ff258632-68a5-41e5-b8f2-be5bede052f6.webp?v=1749693926"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fd5d840dc9ecd4a116d8011fc5603b49c3f8b1c.webp?v=1749623571","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b576270c0fa09f84a04248c6e34cedbe047dbc9c.webp?v=1749623572","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/232d849aaf3295c23578bde8664bb3d6d326a37a.webp?v=1749623572","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fd5d840dc9ecd4a116d8011fc5603b49c3f8b1c_e4da3468-70cc-4e3c-8834-a5f07b40f782.webp?v=1749624811","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b576270c0fa09f84a04248c6e34cedbe047dbc9c_c27f86dd-cdf3-4303-9e3a-c06e16c6238e.webp?v=1749624812","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fd5d840dc9ecd4a116d8011fc5603b49c3f8b1c_9ada5837-badf-4b4c-8f45-aea378fa14e8.webp?v=1749625441","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b576270c0fa09f84a04248c6e34cedbe047dbc9c_0fced7a3-7461-4e49-8618-e4f08f343446.webp?v=1749625442","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/232d849aaf3295c23578bde8664bb3d6d326a37a_b8afa428-a9c0-4151-82f9-62175c3e332a.webp?v=1749625442","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/232d849aaf3295c23578bde8664bb3d6d326a37a_1384313e-9e04-4da1-89be-c3cef0eeab36.webp?v=1749693925","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fd5d840dc9ecd4a116d8011fc5603b49c3f8b1c_101473bd-c85c-4b54-93c5-9976f5d91e2d.webp?v=1749693926","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b576270c0fa09f84a04248c6e34cedbe047dbc9c_ff258632-68a5-41e5-b8f2-be5bede052f6.webp?v=1749693926"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fd5d840dc9ecd4a116d8011fc5603b49c3f8b1c.webp?v=1749623571","options":["color"],"media":[{"alt":null,"id":25689652527203,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fd5d840dc9ecd4a116d8011fc5603b49c3f8b1c.webp?v=1749623571"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fd5d840dc9ecd4a116d8011fc5603b49c3f8b1c.webp?v=1749623571","width":2000},{"alt":null,"id":25689652756579,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b576270c0fa09f84a04248c6e34cedbe047dbc9c.webp?v=1749623572"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b576270c0fa09f84a04248c6e34cedbe047dbc9c.webp?v=1749623572","width":2000},{"alt":null,"id":25689652854883,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/232d849aaf3295c23578bde8664bb3d6d326a37a.webp?v=1749623572"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/232d849aaf3295c23578bde8664bb3d6d326a37a.webp?v=1749623572","width":2000},{"alt":null,"id":25689860898915,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fd5d840dc9ecd4a116d8011fc5603b49c3f8b1c_e4da3468-70cc-4e3c-8834-a5f07b40f782.webp?v=1749624811"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fd5d840dc9ecd4a116d8011fc5603b49c3f8b1c_e4da3468-70cc-4e3c-8834-a5f07b40f782.webp?v=1749624811","width":2000},{"alt":null,"id":25689861292131,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b576270c0fa09f84a04248c6e34cedbe047dbc9c_c27f86dd-cdf3-4303-9e3a-c06e16c6238e.webp?v=1749624812"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b576270c0fa09f84a04248c6e34cedbe047dbc9c_c27f86dd-cdf3-4303-9e3a-c06e16c6238e.webp?v=1749624812","width":2000},{"alt":null,"id":25689982664803,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fd5d840dc9ecd4a116d8011fc5603b49c3f8b1c_9ada5837-badf-4b4c-8f45-aea378fa14e8.webp?v=1749625441"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fd5d840dc9ecd4a116d8011fc5603b49c3f8b1c_9ada5837-badf-4b4c-8f45-aea378fa14e8.webp?v=1749625441","width":2000},{"alt":null,"id":25689982828643,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b576270c0fa09f84a04248c6e34cedbe047dbc9c_0fced7a3-7461-4e49-8618-e4f08f343446.webp?v=1749625442"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b576270c0fa09f84a04248c6e34cedbe047dbc9c_0fced7a3-7461-4e49-8618-e4f08f343446.webp?v=1749625442","width":2000},{"alt":null,"id":25689983025251,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/232d849aaf3295c23578bde8664bb3d6d326a37a_b8afa428-a9c0-4151-82f9-62175c3e332a.webp?v=1749625442"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/232d849aaf3295c23578bde8664bb3d6d326a37a_b8afa428-a9c0-4151-82f9-62175c3e332a.webp?v=1749625442","width":2000},{"alt":null,"id":25692732260451,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/232d849aaf3295c23578bde8664bb3d6d326a37a_1384313e-9e04-4da1-89be-c3cef0eeab36.webp?v=1749693925"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/232d849aaf3295c23578bde8664bb3d6d326a37a_1384313e-9e04-4da1-89be-c3cef0eeab36.webp?v=1749693925","width":2000},{"alt":null,"id":25692732555363,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fd5d840dc9ecd4a116d8011fc5603b49c3f8b1c_101473bd-c85c-4b54-93c5-9976f5d91e2d.webp?v=1749693926"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fd5d840dc9ecd4a116d8011fc5603b49c3f8b1c_101473bd-c85c-4b54-93c5-9976f5d91e2d.webp?v=1749693926","width":2000},{"alt":null,"id":25692732784739,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b576270c0fa09f84a04248c6e34cedbe047dbc9c_ff258632-68a5-41e5-b8f2-be5bede052f6.webp?v=1749693926"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b576270c0fa09f84a04248c6e34cedbe047dbc9c_ff258632-68a5-41e5-b8f2-be5bede052f6.webp?v=1749693926","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43444979892323,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"SST01149O8-EG10","requires_shipping":true,"taxable":true,"featured_image":{"id":34012025552995,"product_id":7815655948387,"position":10,"created_at":"2025-06-12T10:05:24+08:00","updated_at":"2025-06-12T10:05:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fd5d840dc9ecd4a116d8011fc5603b49c3f8b1c_101473bd-c85c-4b54-93c5-9976f5d91e2d.webp?v=1749693926","variant_ids":[43444979892323]},"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-EG10","featured_media":{"alt":null,"id":25692732555363,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fd5d840dc9ecd4a116d8011fc5603b49c3f8b1c_101473bd-c85c-4b54-93c5-9976f5d91e2d.webp?v=1749693926"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43444981366883,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0114952-EG10","requires_shipping":true,"taxable":true,"featured_image":{"id":34012026208355,"product_id":7815655948387,"position":11,"created_at":"2025-06-12T10:05:24+08:00","updated_at":"2025-06-12T10:05:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b576270c0fa09f84a04248c6e34cedbe047dbc9c_ff258632-68a5-41e5-b8f2-be5bede052f6.webp?v=1749693926","variant_ids":[43444981366883]},"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-EG10","featured_media":{"alt":null,"id":25692732784739,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b576270c0fa09f84a04248c6e34cedbe047dbc9c_ff258632-68a5-41e5-b8f2-be5bede052f6.webp?v=1749693926"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43444979892323,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"SST01149O8-EG10","requires_shipping":true,"taxable":true,"featured_image":{"id":34012025552995,"product_id":7815655948387,"position":10,"created_at":"2025-06-12T10:05:24+08:00","updated_at":"2025-06-12T10:05:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fd5d840dc9ecd4a116d8011fc5603b49c3f8b1c_101473bd-c85c-4b54-93c5-9976f5d91e2d.webp?v=1749693926","variant_ids":[43444979892323]},"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-EG10","featured_media":{"alt":null,"id":25692732555363,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fd5d840dc9ecd4a116d8011fc5603b49c3f8b1c_101473bd-c85c-4b54-93c5-9976f5d91e2d.webp?v=1749693926"}},"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: "停產"
}