$product = {"id":7886163509347,"title":"iPhone 14 Plus Mod NX 馬來貘LAIMO 阿楊","handle":"iphone-14-plus-mod-nx-printable-lmo01","description":null,"published_at":"2025-09-17T10:49:14+08:00","created_at":"2025-09-17T10:07:06+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-cherng","device-iPhone 14 Plus","merge","reseller-cherng"],"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":43734895362147,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-LMO01","requires_shipping":true,"taxable":true,"featured_image":{"id":34500318265443,"product_id":7886163509347,"position":13,"created_at":"2025-09-17T10:07:16+08:00","updated_at":"2025-09-17T10:07:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8731207a365c6b4a3beecbc95f7260f1ad7d683.webp?v=1758074838","variant_ids":[43734895362147]},"available":true,"name":"iPhone 14 Plus Mod NX 馬來貘LAIMO 阿楊 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-LMO01","featured_media":{"alt":null,"id":26071910023267,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8731207a365c6b4a3beecbc95f7260f1ad7d683.webp?v=1758074838"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01f6467b75af835b90e33c6c212b3c435176baa7.webp?v=1758074831","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f48d9197d338ec2eaaac7250040f3fbc7800fa6f.webp?v=1758074831","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c11450c0eb763e513e7269fe201cd3acf25ca3fc.webp?v=1758074832","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b8b68bd2b2c556a63958ae08101450e1ab2401c.webp?v=1758074832","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc2f95c8e97d929497a4a5c7983be11b6c97bd54.webp?v=1758074833","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11f6d4874a3e9ad11fc58da5bb5da2d70d9768d9.webp?v=1758074834","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bebda7ee54374828c87f461dffd0712ff21af26.webp?v=1758074834","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d17b76e88d3f7feec9f4840c5b6591cb1bc3f9e.webp?v=1758074835","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64c8a6bdfeca6c8f3bc1613476de50e5c8a39b74.webp?v=1758074835","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c111a1b1df22f9e49c40d76f35037e025a605534.webp?v=1758074836","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f41818f40c69a488f04b0b3a807be19230589ec0.webp?v=1758074837","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9eede594fbe2c1eaacccc2e02882cba3a4422f94.webp?v=1758074838","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8731207a365c6b4a3beecbc95f7260f1ad7d683.webp?v=1758074838"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01f6467b75af835b90e33c6c212b3c435176baa7.webp?v=1758074831","options":["color"],"media":[{"alt":null,"id":26071907926115,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01f6467b75af835b90e33c6c212b3c435176baa7.webp?v=1758074831"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01f6467b75af835b90e33c6c212b3c435176baa7.webp?v=1758074831","width":2000},{"alt":null,"id":26071908024419,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f48d9197d338ec2eaaac7250040f3fbc7800fa6f.webp?v=1758074831"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f48d9197d338ec2eaaac7250040f3fbc7800fa6f.webp?v=1758074831","width":2000},{"alt":null,"id":26071908155491,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c11450c0eb763e513e7269fe201cd3acf25ca3fc.webp?v=1758074832"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c11450c0eb763e513e7269fe201cd3acf25ca3fc.webp?v=1758074832","width":2000},{"alt":null,"id":26071908319331,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b8b68bd2b2c556a63958ae08101450e1ab2401c.webp?v=1758074832"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b8b68bd2b2c556a63958ae08101450e1ab2401c.webp?v=1758074832","width":2000},{"alt":null,"id":26071908483171,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc2f95c8e97d929497a4a5c7983be11b6c97bd54.webp?v=1758074833"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc2f95c8e97d929497a4a5c7983be11b6c97bd54.webp?v=1758074833","width":2000},{"alt":null,"id":26071908647011,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11f6d4874a3e9ad11fc58da5bb5da2d70d9768d9.webp?v=1758074834"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11f6d4874a3e9ad11fc58da5bb5da2d70d9768d9.webp?v=1758074834","width":2000},{"alt":null,"id":26071908810851,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bebda7ee54374828c87f461dffd0712ff21af26.webp?v=1758074834"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bebda7ee54374828c87f461dffd0712ff21af26.webp?v=1758074834","width":2000},{"alt":null,"id":26071908974691,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d17b76e88d3f7feec9f4840c5b6591cb1bc3f9e.webp?v=1758074835"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d17b76e88d3f7feec9f4840c5b6591cb1bc3f9e.webp?v=1758074835","width":2000},{"alt":null,"id":26071909171299,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64c8a6bdfeca6c8f3bc1613476de50e5c8a39b74.webp?v=1758074835"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64c8a6bdfeca6c8f3bc1613476de50e5c8a39b74.webp?v=1758074835","width":2000},{"alt":null,"id":26071909531747,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c111a1b1df22f9e49c40d76f35037e025a605534.webp?v=1758074836"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c111a1b1df22f9e49c40d76f35037e025a605534.webp?v=1758074836","width":2000},{"alt":null,"id":26071909728355,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f41818f40c69a488f04b0b3a807be19230589ec0.webp?v=1758074837"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f41818f40c69a488f04b0b3a807be19230589ec0.webp?v=1758074837","width":2000},{"alt":null,"id":26071909826659,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9eede594fbe2c1eaacccc2e02882cba3a4422f94.webp?v=1758074838"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9eede594fbe2c1eaacccc2e02882cba3a4422f94.webp?v=1758074838","width":2000},{"alt":null,"id":26071910023267,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8731207a365c6b4a3beecbc95f7260f1ad7d683.webp?v=1758074838"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8731207a365c6b4a3beecbc95f7260f1ad7d683.webp?v=1758074838","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$bumper = null;
$variants = [{"id":43734895362147,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-LMO01","requires_shipping":true,"taxable":true,"featured_image":{"id":34500318265443,"product_id":7886163509347,"position":13,"created_at":"2025-09-17T10:07:16+08:00","updated_at":"2025-09-17T10:07:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8731207a365c6b4a3beecbc95f7260f1ad7d683.webp?v=1758074838","variant_ids":[43734895362147]},"available":true,"name":"iPhone 14 Plus Mod NX 馬來貘LAIMO 阿楊 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-LMO01","featured_media":{"alt":null,"id":26071910023267,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8731207a365c6b4a3beecbc95f7260f1ad7d683.webp?v=1758074838"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43734895362147,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-LMO01","requires_shipping":true,"taxable":true,"featured_image":{"id":34500318265443,"product_id":7886163509347,"position":13,"created_at":"2025-09-17T10:07:16+08:00","updated_at":"2025-09-17T10:07:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8731207a365c6b4a3beecbc95f7260f1ad7d683.webp?v=1758074838","variant_ids":[43734895362147]},"available":true,"name":"iPhone 14 Plus Mod NX 馬來貘LAIMO 阿楊 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-LMO01","featured_media":{"alt":null,"id":26071910023267,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8731207a365c6b4a3beecbc95f7260f1ad7d683.webp?v=1758074838"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}};
$device_handle = null
var sellingStatus
if ($bumper) {
$(document).ready(function() {
var productImg = $product.images[0]
var bumperVariants = $bumper.variants;
var bumperColors = new Object();
var currentVariant = '';
var productType = '';
bumperVariants.forEach(variant => {
bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src;
});
if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') {
mergeImages(
[productImg, bumperColors[currentVariant]],
{ crossOrigin: 'anonymous' }
).then(mergedImg => {
$('.merged-img').attr('src', mergedImg);
});
} else {
mergeImages(
[bumperColors[currentVariant], productImg],
{ crossOrigin: 'anonymous' }
).then(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: "停產"
}