$product = {"id":7873265270883,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) Keigo Relay Race","handle":"iphone-14-plus-mod-nx-magsafe-printable-kei05","description":null,"published_at":"2025-09-01T10:55:57+08:00","created_at":"2025-09-01T09:38:45+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-keigo","device-iPhone 14 Plus","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":43658532290659,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-KEI05","requires_shipping":true,"taxable":true,"featured_image":{"id":34409886285923,"product_id":7873265270883,"position":10,"created_at":"2025-09-01T09:38:57+08:00","updated_at":"2025-09-01T09:38:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c6f344b672a85f240ea8050b6c4675be57388a1.webp?v=1756690739","variant_ids":[43658532290659]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) Keigo Relay Race - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-KEI05","featured_media":{"alt":null,"id":25982201266275,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c6f344b672a85f240ea8050b6c4675be57388a1.webp?v=1756690739"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f52114a85ea4c0245085602b7eb44aabdc0a0c39.webp?v=1756690732","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d7ef45fe05662ac1659415522a0005901dd312f.webp?v=1756690733","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c700ecbd1c8fbed029f71c440ee873aa6c2029c7.webp?v=1756690734","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b9a277310c77b56dc318a253c12827fe86d8a18.webp?v=1756690735","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd46b77b5eaff338d8648bd9d0100268d15cf45b.webp?v=1756690736","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f25f80ed62d15d00ca3389be089c85e99118b67a.webp?v=1756690736","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2f1129c5c0f733d25572e499f85d1d771b8c4ab.webp?v=1756690737","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2e90bc804f1a368ce7d4d0615e1289530d7ac4c.webp?v=1756690737","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80d5ea341f508c77ebcf66a24632ab439d4e2333.webp?v=1756690738","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c6f344b672a85f240ea8050b6c4675be57388a1.webp?v=1756690739","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e633ddc68f16b6d607ab7d8862078ebcfd9be90c.webp?v=1756690739","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac37f51eeff64043837409d154b4bdf5f9f16a02.webp?v=1756690740","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8de0c95ba35847937a20d0cd13870d040d67a36.webp?v=1756690741"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f52114a85ea4c0245085602b7eb44aabdc0a0c39.webp?v=1756690732","options":["color"],"media":[{"alt":null,"id":25982199103587,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f52114a85ea4c0245085602b7eb44aabdc0a0c39.webp?v=1756690732"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f52114a85ea4c0245085602b7eb44aabdc0a0c39.webp?v=1756690732","width":2000},{"alt":null,"id":25982199365731,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d7ef45fe05662ac1659415522a0005901dd312f.webp?v=1756690733"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d7ef45fe05662ac1659415522a0005901dd312f.webp?v=1756690733","width":2000},{"alt":null,"id":25982199693411,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c700ecbd1c8fbed029f71c440ee873aa6c2029c7.webp?v=1756690734"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c700ecbd1c8fbed029f71c440ee873aa6c2029c7.webp?v=1756690734","width":2000},{"alt":null,"id":25982199890019,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b9a277310c77b56dc318a253c12827fe86d8a18.webp?v=1756690735"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b9a277310c77b56dc318a253c12827fe86d8a18.webp?v=1756690735","width":2000},{"alt":null,"id":25982200119395,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd46b77b5eaff338d8648bd9d0100268d15cf45b.webp?v=1756690736"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd46b77b5eaff338d8648bd9d0100268d15cf45b.webp?v=1756690736","width":2000},{"alt":null,"id":25982200414307,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f25f80ed62d15d00ca3389be089c85e99118b67a.webp?v=1756690736"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f25f80ed62d15d00ca3389be089c85e99118b67a.webp?v=1756690736","width":2000},{"alt":null,"id":25982200643683,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2f1129c5c0f733d25572e499f85d1d771b8c4ab.webp?v=1756690737"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2f1129c5c0f733d25572e499f85d1d771b8c4ab.webp?v=1756690737","width":2000},{"alt":null,"id":25982200905827,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2e90bc804f1a368ce7d4d0615e1289530d7ac4c.webp?v=1756690737"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2e90bc804f1a368ce7d4d0615e1289530d7ac4c.webp?v=1756690737","width":2000},{"alt":null,"id":25982201102435,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80d5ea341f508c77ebcf66a24632ab439d4e2333.webp?v=1756690738"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80d5ea341f508c77ebcf66a24632ab439d4e2333.webp?v=1756690738","width":2000},{"alt":null,"id":25982201266275,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c6f344b672a85f240ea8050b6c4675be57388a1.webp?v=1756690739"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c6f344b672a85f240ea8050b6c4675be57388a1.webp?v=1756690739","width":2000},{"alt":null,"id":25982201462883,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e633ddc68f16b6d607ab7d8862078ebcfd9be90c.webp?v=1756690739"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e633ddc68f16b6d607ab7d8862078ebcfd9be90c.webp?v=1756690739","width":2000},{"alt":null,"id":25982201659491,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac37f51eeff64043837409d154b4bdf5f9f16a02.webp?v=1756690740"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac37f51eeff64043837409d154b4bdf5f9f16a02.webp?v=1756690740","width":2000},{"alt":null,"id":25982201856099,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8de0c95ba35847937a20d0cd13870d040d67a36.webp?v=1756690741"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8de0c95ba35847937a20d0cd13870d040d67a36.webp?v=1756690741","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$bumper = null;
$variants = [{"id":43658532290659,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-KEI05","requires_shipping":true,"taxable":true,"featured_image":{"id":34409886285923,"product_id":7873265270883,"position":10,"created_at":"2025-09-01T09:38:57+08:00","updated_at":"2025-09-01T09:38:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c6f344b672a85f240ea8050b6c4675be57388a1.webp?v=1756690739","variant_ids":[43658532290659]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) Keigo Relay Race - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-KEI05","featured_media":{"alt":null,"id":25982201266275,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c6f344b672a85f240ea8050b6c4675be57388a1.webp?v=1756690739"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43658532290659,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-KEI05","requires_shipping":true,"taxable":true,"featured_image":{"id":34409886285923,"product_id":7873265270883,"position":10,"created_at":"2025-09-01T09:38:57+08:00","updated_at":"2025-09-01T09:38:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c6f344b672a85f240ea8050b6c4675be57388a1.webp?v=1756690739","variant_ids":[43658532290659]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) Keigo Relay Race - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-KEI05","featured_media":{"alt":null,"id":25982201266275,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c6f344b672a85f240ea8050b6c4675be57388a1.webp?v=1756690739"}},"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: "停產"
}