$product = {"id":7837996384355,"title":"iPhone 12 Pro Max Mod NX BOUNCE 棒棒獸","handle":"iphone-12-pro-max-mod-nx-hk66","description":null,"published_at":"2025-07-16T12:13:37+08:00","created_at":"2025-07-16T09:31:14+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-bounce","device-iPhone 12 Pro Max","merge","reseller-bounce"],"price":90000,"price_min":90000,"price_max":90000,"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":43528409153635,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118724-HK66","requires_shipping":true,"taxable":true,"featured_image":{"id":34192809754723,"product_id":7837996384355,"position":5,"created_at":"2025-07-16T09:31:21+08:00","updated_at":"2025-07-16T09:31:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4d027d1f5d0495b6ac3a1835f838b88be541f93.webp?v=1752629482","variant_ids":[43528409153635]},"available":true,"name":"iPhone 12 Pro Max Mod NX BOUNCE 棒棒獸 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-HK66","featured_media":{"alt":null,"id":25827118678115,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4d027d1f5d0495b6ac3a1835f838b88be541f93.webp?v=1752629482"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31fcd66d2d46a92cd629e2bf2e2f828551d4a646.webp?v=1752629480","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c02ba6cbfdeec32ad5ba3d8ccea236e7595f2675.webp?v=1752629480","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f93340c824a8cc92fc8fc56a82823ad84960e4f6.webp?v=1752629481","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4890c393b7d9933463669c5b36658b03edcc35d.webp?v=1752629481","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4d027d1f5d0495b6ac3a1835f838b88be541f93.webp?v=1752629482","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8268f5a30b31bc2f8513ef96490a890022a9c74.webp?v=1752629483","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c20deb2debc673e7a73af2e1454601ebe129cc0.webp?v=1752629484","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1ab112e23222762270040d52039669bd969c861.webp?v=1752629484","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c16674aee649071f7f45f8c073e55225b43066e.webp?v=1752629485","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a065e278912564b5da4128941fa434d3f22649e1.webp?v=1752629485"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31fcd66d2d46a92cd629e2bf2e2f828551d4a646.webp?v=1752629480","options":["color"],"media":[{"alt":null,"id":25827117695075,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31fcd66d2d46a92cd629e2bf2e2f828551d4a646.webp?v=1752629480"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31fcd66d2d46a92cd629e2bf2e2f828551d4a646.webp?v=1752629480","width":2000},{"alt":null,"id":25827117891683,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c02ba6cbfdeec32ad5ba3d8ccea236e7595f2675.webp?v=1752629480"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c02ba6cbfdeec32ad5ba3d8ccea236e7595f2675.webp?v=1752629480","width":2000},{"alt":null,"id":25827118121059,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f93340c824a8cc92fc8fc56a82823ad84960e4f6.webp?v=1752629481"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f93340c824a8cc92fc8fc56a82823ad84960e4f6.webp?v=1752629481","width":2000},{"alt":null,"id":25827118350435,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4890c393b7d9933463669c5b36658b03edcc35d.webp?v=1752629481"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4890c393b7d9933463669c5b36658b03edcc35d.webp?v=1752629481","width":2000},{"alt":null,"id":25827118678115,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4d027d1f5d0495b6ac3a1835f838b88be541f93.webp?v=1752629482"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4d027d1f5d0495b6ac3a1835f838b88be541f93.webp?v=1752629482","width":2000},{"alt":null,"id":25827119005795,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8268f5a30b31bc2f8513ef96490a890022a9c74.webp?v=1752629483"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8268f5a30b31bc2f8513ef96490a890022a9c74.webp?v=1752629483","width":2000},{"alt":null,"id":25827119267939,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c20deb2debc673e7a73af2e1454601ebe129cc0.webp?v=1752629484"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c20deb2debc673e7a73af2e1454601ebe129cc0.webp?v=1752629484","width":2000},{"alt":null,"id":25827119464547,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1ab112e23222762270040d52039669bd969c861.webp?v=1752629484"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1ab112e23222762270040d52039669bd969c861.webp?v=1752629484","width":2000},{"alt":null,"id":25827119726691,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c16674aee649071f7f45f8c073e55225b43066e.webp?v=1752629485"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c16674aee649071f7f45f8c073e55225b43066e.webp?v=1752629485","width":2000},{"alt":null,"id":25827119923299,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a065e278912564b5da4128941fa434d3f22649e1.webp?v=1752629485"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a065e278912564b5da4128941fa434d3f22649e1.webp?v=1752629485","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43528409153635,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118724-HK66","requires_shipping":true,"taxable":true,"featured_image":{"id":34192809754723,"product_id":7837996384355,"position":5,"created_at":"2025-07-16T09:31:21+08:00","updated_at":"2025-07-16T09:31:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4d027d1f5d0495b6ac3a1835f838b88be541f93.webp?v=1752629482","variant_ids":[43528409153635]},"available":true,"name":"iPhone 12 Pro Max Mod NX BOUNCE 棒棒獸 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-HK66","featured_media":{"alt":null,"id":25827118678115,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4d027d1f5d0495b6ac3a1835f838b88be541f93.webp?v=1752629482"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43528409153635,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118724-HK66","requires_shipping":true,"taxable":true,"featured_image":{"id":34192809754723,"product_id":7837996384355,"position":5,"created_at":"2025-07-16T09:31:21+08:00","updated_at":"2025-07-16T09:31:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4d027d1f5d0495b6ac3a1835f838b88be541f93.webp?v=1752629482","variant_ids":[43528409153635]},"available":true,"name":"iPhone 12 Pro Max Mod NX BOUNCE 棒棒獸 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-HK66","featured_media":{"alt":null,"id":25827118678115,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4d027d1f5d0495b6ac3a1835f838b88be541f93.webp?v=1752629482"}},"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: "停產"
}