$product = {"id":7873242660963,"title":"iPhone 14 Pro Mod NX (MagSafe 兼容) Keigo Sleepy Sloth","handle":"iphone-14-pro-mod-nx-magsafe-printable-kei08","description":null,"published_at":"2025-09-01T11:04:57+08:00","created_at":"2025-09-01T09:32:59+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":110000,"price_min":110000,"price_max":110000,"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":43658449846371,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-KEI08","requires_shipping":true,"taxable":true,"featured_image":{"id":34409803907171,"product_id":7873242660963,"position":9,"created_at":"2025-09-01T09:33:08+08:00","updated_at":"2025-09-01T09:33:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a97924f0e030b2ddc02bdf27a47d7a9d0357509.webp?v=1756690390","variant_ids":[43658449846371]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) Keigo Sleepy Sloth - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-KEI08","featured_media":{"alt":null,"id":25982119084131,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a97924f0e030b2ddc02bdf27a47d7a9d0357509.webp?v=1756690390"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658449977443,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-KEI08","requires_shipping":true,"taxable":true,"featured_image":{"id":34409803186275,"product_id":7873242660963,"position":5,"created_at":"2025-09-01T09:33:06+08:00","updated_at":"2025-09-01T09:33:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbcfa94cd5931ff9c7a38c151f9f470c59091d52.webp?v=1756690387","variant_ids":[43658449977443]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) Keigo Sleepy Sloth - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-KEI08","featured_media":{"alt":null,"id":25982118363235,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbcfa94cd5931ff9c7a38c151f9f470c59091d52.webp?v=1756690387"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658450042979,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-KEI08","requires_shipping":true,"taxable":true,"featured_image":{"id":34409804038243,"product_id":7873242660963,"position":10,"created_at":"2025-09-01T09:33:09+08:00","updated_at":"2025-09-01T09:33:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1820945ad964030098bc794e2235f5beb442660.webp?v=1756690391","variant_ids":[43658450042979]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) Keigo Sleepy Sloth - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01262J5-KEI08","featured_media":{"alt":null,"id":25982119215203,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1820945ad964030098bc794e2235f5beb442660.webp?v=1756690391"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46357ba4d7a85715ede8008cc268e523eab9707f.webp?v=1756690385","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/629e0caf2ba1cec695f0669d0e7d78f9ade5238b.webp?v=1756690385","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1267cbae47ed5cf9759afd00b964990de1ff30bb.webp?v=1756690386","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/787472432ea7051147e0c1aeb3ae1f7338735322.webp?v=1756690387","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbcfa94cd5931ff9c7a38c151f9f470c59091d52.webp?v=1756690387","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e04c009b6744c04997fa3605c99a5edfa58bdaab.webp?v=1756690388","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb1c8aa6ef08fc1097b88519bbfd15667c81a294.webp?v=1756690389","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5416bcba28d287ce8af66edbacb92123df9afc98.webp?v=1756690390","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a97924f0e030b2ddc02bdf27a47d7a9d0357509.webp?v=1756690390","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1820945ad964030098bc794e2235f5beb442660.webp?v=1756690391","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fc15c9799b2618aa731fedac5308fc1e7ba4f78.webp?v=1756690392","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52983d99720acf018a98b7e9c11b901e92f037f1.webp?v=1756690392"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46357ba4d7a85715ede8008cc268e523eab9707f.webp?v=1756690385","options":["color"],"media":[{"alt":null,"id":25982117249123,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46357ba4d7a85715ede8008cc268e523eab9707f.webp?v=1756690385"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46357ba4d7a85715ede8008cc268e523eab9707f.webp?v=1756690385","width":2000},{"alt":null,"id":25982117609571,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/629e0caf2ba1cec695f0669d0e7d78f9ade5238b.webp?v=1756690385"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/629e0caf2ba1cec695f0669d0e7d78f9ade5238b.webp?v=1756690385","width":2000},{"alt":null,"id":25982117904483,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1267cbae47ed5cf9759afd00b964990de1ff30bb.webp?v=1756690386"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1267cbae47ed5cf9759afd00b964990de1ff30bb.webp?v=1756690386","width":2000},{"alt":null,"id":25982118166627,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/787472432ea7051147e0c1aeb3ae1f7338735322.webp?v=1756690387"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/787472432ea7051147e0c1aeb3ae1f7338735322.webp?v=1756690387","width":2000},{"alt":null,"id":25982118363235,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbcfa94cd5931ff9c7a38c151f9f470c59091d52.webp?v=1756690387"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbcfa94cd5931ff9c7a38c151f9f470c59091d52.webp?v=1756690387","width":2000},{"alt":null,"id":25982118527075,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e04c009b6744c04997fa3605c99a5edfa58bdaab.webp?v=1756690388"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e04c009b6744c04997fa3605c99a5edfa58bdaab.webp?v=1756690388","width":2000},{"alt":null,"id":25982118723683,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb1c8aa6ef08fc1097b88519bbfd15667c81a294.webp?v=1756690389"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb1c8aa6ef08fc1097b88519bbfd15667c81a294.webp?v=1756690389","width":2000},{"alt":null,"id":25982118920291,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5416bcba28d287ce8af66edbacb92123df9afc98.webp?v=1756690390"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5416bcba28d287ce8af66edbacb92123df9afc98.webp?v=1756690390","width":2000},{"alt":null,"id":25982119084131,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a97924f0e030b2ddc02bdf27a47d7a9d0357509.webp?v=1756690390"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a97924f0e030b2ddc02bdf27a47d7a9d0357509.webp?v=1756690390","width":2000},{"alt":null,"id":25982119215203,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1820945ad964030098bc794e2235f5beb442660.webp?v=1756690391"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1820945ad964030098bc794e2235f5beb442660.webp?v=1756690391","width":2000},{"alt":null,"id":25982119411811,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fc15c9799b2618aa731fedac5308fc1e7ba4f78.webp?v=1756690392"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fc15c9799b2618aa731fedac5308fc1e7ba4f78.webp?v=1756690392","width":2000},{"alt":null,"id":25982119641187,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52983d99720acf018a98b7e9c11b901e92f037f1.webp?v=1756690392"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52983d99720acf018a98b7e9c11b901e92f037f1.webp?v=1756690392","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43658449846371,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-KEI08","requires_shipping":true,"taxable":true,"featured_image":{"id":34409803907171,"product_id":7873242660963,"position":9,"created_at":"2025-09-01T09:33:08+08:00","updated_at":"2025-09-01T09:33:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a97924f0e030b2ddc02bdf27a47d7a9d0357509.webp?v=1756690390","variant_ids":[43658449846371]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) Keigo Sleepy Sloth - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-KEI08","featured_media":{"alt":null,"id":25982119084131,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a97924f0e030b2ddc02bdf27a47d7a9d0357509.webp?v=1756690390"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658449977443,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-KEI08","requires_shipping":true,"taxable":true,"featured_image":{"id":34409803186275,"product_id":7873242660963,"position":5,"created_at":"2025-09-01T09:33:06+08:00","updated_at":"2025-09-01T09:33:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbcfa94cd5931ff9c7a38c151f9f470c59091d52.webp?v=1756690387","variant_ids":[43658449977443]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) Keigo Sleepy Sloth - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-KEI08","featured_media":{"alt":null,"id":25982118363235,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbcfa94cd5931ff9c7a38c151f9f470c59091d52.webp?v=1756690387"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658450042979,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-KEI08","requires_shipping":true,"taxable":true,"featured_image":{"id":34409804038243,"product_id":7873242660963,"position":10,"created_at":"2025-09-01T09:33:09+08:00","updated_at":"2025-09-01T09:33:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1820945ad964030098bc794e2235f5beb442660.webp?v=1756690391","variant_ids":[43658450042979]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) Keigo Sleepy Sloth - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01262J5-KEI08","featured_media":{"alt":null,"id":25982119215203,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1820945ad964030098bc794e2235f5beb442660.webp?v=1756690391"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43658449846371,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-KEI08","requires_shipping":true,"taxable":true,"featured_image":{"id":34409803907171,"product_id":7873242660963,"position":9,"created_at":"2025-09-01T09:33:08+08:00","updated_at":"2025-09-01T09:33:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a97924f0e030b2ddc02bdf27a47d7a9d0357509.webp?v=1756690390","variant_ids":[43658449846371]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) Keigo Sleepy Sloth - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-KEI08","featured_media":{"alt":null,"id":25982119084131,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a97924f0e030b2ddc02bdf27a47d7a9d0357509.webp?v=1756690390"}},"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: "停產"
}