$product = {"id":7873238564963,"title":"iPhone 14 Pro Mod NX Keigo Sleepy Sloth","handle":"iphone-14-pro-mod-nx-printable-kei08","description":null,"published_at":"2025-09-01T11:06:39+08:00","created_at":"2025-09-01T09:31:58+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-keigo","device-iPhone 14 Pro","merge","reseller-keigo"],"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":43658433331299,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-KEI08","requires_shipping":true,"taxable":true,"featured_image":{"id":34409787850851,"product_id":7873238564963,"position":10,"created_at":"2025-09-01T09:32:08+08:00","updated_at":"2025-09-01T09:32:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4ca3789f724dc37172f2ef54ed9317a068e396b.webp?v=1756690330","variant_ids":[43658433331299]},"available":true,"name":"iPhone 14 Pro Mod NX Keigo Sleepy Sloth - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126204-KEI08","featured_media":{"alt":null,"id":25982103060579,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4ca3789f724dc37172f2ef54ed9317a068e396b.webp?v=1756690330"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658433462371,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-KEI08","requires_shipping":true,"taxable":true,"featured_image":{"id":34409787621475,"product_id":7873238564963,"position":7,"created_at":"2025-09-01T09:32:06+08:00","updated_at":"2025-09-01T09:32:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d9dbdb4d67e022df80be83ee95bf1cd882cd7da.webp?v=1756690328","variant_ids":[43658433462371]},"available":true,"name":"iPhone 14 Pro Mod NX Keigo Sleepy Sloth - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-KEI08","featured_media":{"alt":null,"id":25982102798435,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d9dbdb4d67e022df80be83ee95bf1cd882cd7da.webp?v=1756690328"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658433527907,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-KEI08","requires_shipping":true,"taxable":true,"featured_image":{"id":34409788080227,"product_id":7873238564963,"position":11,"created_at":"2025-09-01T09:32:09+08:00","updated_at":"2025-09-01T09:32:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1ee863bdbcefe282fe86a2bc2b6c3c3ec652c60.webp?v=1756690331","variant_ids":[43658433527907]},"available":true,"name":"iPhone 14 Pro Mod NX Keigo Sleepy Sloth - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01262J5-KEI08","featured_media":{"alt":null,"id":25982103257187,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1ee863bdbcefe282fe86a2bc2b6c3c3ec652c60.webp?v=1756690331"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09b936241fc72c9ef0768952d89c7eff3eeabdaf.webp?v=1756690324","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e1b68332a7d28f2941cf7b4ca3f3e08af642bac.webp?v=1756690325","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1047cf2246c5c41c55e410a9e42248e0fa555df.webp?v=1756690325","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4a41b9da97ad3fc016b80a840b475d5fcd86b48.webp?v=1756690326","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0670a018dec048ccbcb5bd1d9a61b9fa9220d373.webp?v=1756690327","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ab8bb8ae10e45734c2d693a395c5eebf3bba5ec.webp?v=1756690327","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d9dbdb4d67e022df80be83ee95bf1cd882cd7da.webp?v=1756690328","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2eb50881fcd5f9c93dd9f720dc08cf6d8f758f8a.webp?v=1756690329","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/febd13c7ec40a7f87615c3453c805e04777c523f.webp?v=1756690330","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4ca3789f724dc37172f2ef54ed9317a068e396b.webp?v=1756690330","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1ee863bdbcefe282fe86a2bc2b6c3c3ec652c60.webp?v=1756690331","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/319b835b3ac7a7baadb7770824462248454298d0.webp?v=1756690332"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09b936241fc72c9ef0768952d89c7eff3eeabdaf.webp?v=1756690324","options":["color"],"media":[{"alt":null,"id":25982102110307,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09b936241fc72c9ef0768952d89c7eff3eeabdaf.webp?v=1756690324"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09b936241fc72c9ef0768952d89c7eff3eeabdaf.webp?v=1756690324","width":2000},{"alt":null,"id":25982102306915,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e1b68332a7d28f2941cf7b4ca3f3e08af642bac.webp?v=1756690325"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e1b68332a7d28f2941cf7b4ca3f3e08af642bac.webp?v=1756690325","width":2000},{"alt":null,"id":25982102470755,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1047cf2246c5c41c55e410a9e42248e0fa555df.webp?v=1756690325"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1047cf2246c5c41c55e410a9e42248e0fa555df.webp?v=1756690325","width":2000},{"alt":null,"id":25982102601827,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4a41b9da97ad3fc016b80a840b475d5fcd86b48.webp?v=1756690326"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4a41b9da97ad3fc016b80a840b475d5fcd86b48.webp?v=1756690326","width":2000},{"alt":null,"id":25982102667363,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0670a018dec048ccbcb5bd1d9a61b9fa9220d373.webp?v=1756690327"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0670a018dec048ccbcb5bd1d9a61b9fa9220d373.webp?v=1756690327","width":2000},{"alt":null,"id":25982102732899,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ab8bb8ae10e45734c2d693a395c5eebf3bba5ec.webp?v=1756690327"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ab8bb8ae10e45734c2d693a395c5eebf3bba5ec.webp?v=1756690327","width":2000},{"alt":null,"id":25982102798435,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d9dbdb4d67e022df80be83ee95bf1cd882cd7da.webp?v=1756690328"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d9dbdb4d67e022df80be83ee95bf1cd882cd7da.webp?v=1756690328","width":2000},{"alt":null,"id":25982102831203,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2eb50881fcd5f9c93dd9f720dc08cf6d8f758f8a.webp?v=1756690329"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2eb50881fcd5f9c93dd9f720dc08cf6d8f758f8a.webp?v=1756690329","width":2000},{"alt":null,"id":25982102962275,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/febd13c7ec40a7f87615c3453c805e04777c523f.webp?v=1756690330"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/febd13c7ec40a7f87615c3453c805e04777c523f.webp?v=1756690330","width":2000},{"alt":null,"id":25982103060579,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4ca3789f724dc37172f2ef54ed9317a068e396b.webp?v=1756690330"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4ca3789f724dc37172f2ef54ed9317a068e396b.webp?v=1756690330","width":2000},{"alt":null,"id":25982103257187,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1ee863bdbcefe282fe86a2bc2b6c3c3ec652c60.webp?v=1756690331"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1ee863bdbcefe282fe86a2bc2b6c3c3ec652c60.webp?v=1756690331","width":2000},{"alt":null,"id":25982103421027,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/319b835b3ac7a7baadb7770824462248454298d0.webp?v=1756690332"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/319b835b3ac7a7baadb7770824462248454298d0.webp?v=1756690332","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43658433331299,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-KEI08","requires_shipping":true,"taxable":true,"featured_image":{"id":34409787850851,"product_id":7873238564963,"position":10,"created_at":"2025-09-01T09:32:08+08:00","updated_at":"2025-09-01T09:32:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4ca3789f724dc37172f2ef54ed9317a068e396b.webp?v=1756690330","variant_ids":[43658433331299]},"available":true,"name":"iPhone 14 Pro Mod NX Keigo Sleepy Sloth - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126204-KEI08","featured_media":{"alt":null,"id":25982103060579,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4ca3789f724dc37172f2ef54ed9317a068e396b.webp?v=1756690330"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658433462371,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-KEI08","requires_shipping":true,"taxable":true,"featured_image":{"id":34409787621475,"product_id":7873238564963,"position":7,"created_at":"2025-09-01T09:32:06+08:00","updated_at":"2025-09-01T09:32:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d9dbdb4d67e022df80be83ee95bf1cd882cd7da.webp?v=1756690328","variant_ids":[43658433462371]},"available":true,"name":"iPhone 14 Pro Mod NX Keigo Sleepy Sloth - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-KEI08","featured_media":{"alt":null,"id":25982102798435,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d9dbdb4d67e022df80be83ee95bf1cd882cd7da.webp?v=1756690328"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658433527907,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-KEI08","requires_shipping":true,"taxable":true,"featured_image":{"id":34409788080227,"product_id":7873238564963,"position":11,"created_at":"2025-09-01T09:32:09+08:00","updated_at":"2025-09-01T09:32:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1ee863bdbcefe282fe86a2bc2b6c3c3ec652c60.webp?v=1756690331","variant_ids":[43658433527907]},"available":true,"name":"iPhone 14 Pro Mod NX Keigo Sleepy Sloth - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01262J5-KEI08","featured_media":{"alt":null,"id":25982103257187,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1ee863bdbcefe282fe86a2bc2b6c3c3ec652c60.webp?v=1756690331"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43658433331299,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-KEI08","requires_shipping":true,"taxable":true,"featured_image":{"id":34409787850851,"product_id":7873238564963,"position":10,"created_at":"2025-09-01T09:32:08+08:00","updated_at":"2025-09-01T09:32:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4ca3789f724dc37172f2ef54ed9317a068e396b.webp?v=1756690330","variant_ids":[43658433331299]},"available":true,"name":"iPhone 14 Pro Mod NX Keigo Sleepy Sloth - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126204-KEI08","featured_media":{"alt":null,"id":25982103060579,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4ca3789f724dc37172f2ef54ed9317a068e396b.webp?v=1756690330"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}};
$device_handle = null;
$type = "";
var sellingStatus
if ($isMerge) {
$(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: "停產"
}