$product = {"id":7873310589027,"title":"iPhone 14 Pro Mod NX (MagSafe 兼容) Keigo Deep Sea","handle":"iphone-14-pro-mod-nx-magsafe-printable-kei09","description":null,"published_at":"2025-09-01T10:38:17+08:00","created_at":"2025-09-01T09:50:15+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":43658713464931,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-KEI09","requires_shipping":true,"taxable":true,"featured_image":{"id":34410060841059,"product_id":7873310589027,"position":1,"created_at":"2025-09-01T09:50:20+08:00","updated_at":"2025-09-01T09:50:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d0b856c3bedf6124359a7c36f3ef4ab62e3559a.webp?v=1756691422","variant_ids":[43658713464931]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) Keigo Deep Sea - 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-KEI09","featured_media":{"alt":null,"id":25982375821411,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d0b856c3bedf6124359a7c36f3ef4ab62e3559a.webp?v=1756691422"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658713596003,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-KEI09","requires_shipping":true,"taxable":true,"featured_image":{"id":34410061103203,"product_id":7873310589027,"position":3,"created_at":"2025-09-01T09:50:21+08:00","updated_at":"2025-09-01T09:50:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40b3be7db353b440da0b7a018761c7fe669771b9.webp?v=1756691423","variant_ids":[43658713596003]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) Keigo Deep Sea - 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-KEI09","featured_media":{"alt":null,"id":25982376083555,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40b3be7db353b440da0b7a018761c7fe669771b9.webp?v=1756691423"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658713661539,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-KEI09","requires_shipping":true,"taxable":true,"featured_image":{"id":34410062020707,"product_id":7873310589027,"position":7,"created_at":"2025-09-01T09:50:25+08:00","updated_at":"2025-09-01T09:50:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fa5a663a095ccb1acd50925153c4b0ea588d643.webp?v=1756691427","variant_ids":[43658713661539]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) Keigo Deep Sea - 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-KEI09","featured_media":{"alt":null,"id":25982377001059,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fa5a663a095ccb1acd50925153c4b0ea588d643.webp?v=1756691427"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d0b856c3bedf6124359a7c36f3ef4ab62e3559a.webp?v=1756691422","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6690f07281d516d26d6497b68297466524be0e4.webp?v=1756691422","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40b3be7db353b440da0b7a018761c7fe669771b9.webp?v=1756691423","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fe402e596c3c70a161d4353e1fd6f59fa7d6fd7.webp?v=1756691425","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e4c7a2a25b943086d033bb6f004d12191963bbb.webp?v=1756691426","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/788b0786a857991da5104e0b0c1e5d317f2348a8.webp?v=1756691426","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fa5a663a095ccb1acd50925153c4b0ea588d643.webp?v=1756691427","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c90b87bfd2f20d58f54fd163aed360ca07c601ab.webp?v=1756691428","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30ce314234e37f93aa77559d384e49a79abbb7c6.webp?v=1756691429","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d49738cfecfb738003425db9be42320543a790a.webp?v=1756691430","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82c23fb6adcacb8e69591862f8070035fb336019.webp?v=1756691430","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e92a16b45c7d19862298a382990431d460e960e1.webp?v=1756691431"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d0b856c3bedf6124359a7c36f3ef4ab62e3559a.webp?v=1756691422","options":["color"],"media":[{"alt":null,"id":25982375821411,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d0b856c3bedf6124359a7c36f3ef4ab62e3559a.webp?v=1756691422"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d0b856c3bedf6124359a7c36f3ef4ab62e3559a.webp?v=1756691422","width":2000},{"alt":null,"id":25982375952483,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6690f07281d516d26d6497b68297466524be0e4.webp?v=1756691422"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6690f07281d516d26d6497b68297466524be0e4.webp?v=1756691422","width":2000},{"alt":null,"id":25982376083555,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40b3be7db353b440da0b7a018761c7fe669771b9.webp?v=1756691423"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40b3be7db353b440da0b7a018761c7fe669771b9.webp?v=1756691423","width":2000},{"alt":null,"id":25982376542307,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fe402e596c3c70a161d4353e1fd6f59fa7d6fd7.webp?v=1756691425"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fe402e596c3c70a161d4353e1fd6f59fa7d6fd7.webp?v=1756691425","width":2000},{"alt":null,"id":25982376738915,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e4c7a2a25b943086d033bb6f004d12191963bbb.webp?v=1756691426"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e4c7a2a25b943086d033bb6f004d12191963bbb.webp?v=1756691426","width":2000},{"alt":null,"id":25982376902755,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/788b0786a857991da5104e0b0c1e5d317f2348a8.webp?v=1756691426"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/788b0786a857991da5104e0b0c1e5d317f2348a8.webp?v=1756691426","width":2000},{"alt":null,"id":25982377001059,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fa5a663a095ccb1acd50925153c4b0ea588d643.webp?v=1756691427"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fa5a663a095ccb1acd50925153c4b0ea588d643.webp?v=1756691427","width":2000},{"alt":null,"id":25982377164899,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c90b87bfd2f20d58f54fd163aed360ca07c601ab.webp?v=1756691428"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c90b87bfd2f20d58f54fd163aed360ca07c601ab.webp?v=1756691428","width":2000},{"alt":null,"id":25982377295971,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30ce314234e37f93aa77559d384e49a79abbb7c6.webp?v=1756691429"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30ce314234e37f93aa77559d384e49a79abbb7c6.webp?v=1756691429","width":2000},{"alt":null,"id":25982377558115,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d49738cfecfb738003425db9be42320543a790a.webp?v=1756691430"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d49738cfecfb738003425db9be42320543a790a.webp?v=1756691430","width":2000},{"alt":null,"id":25982377787491,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82c23fb6adcacb8e69591862f8070035fb336019.webp?v=1756691430"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82c23fb6adcacb8e69591862f8070035fb336019.webp?v=1756691430","width":2000},{"alt":null,"id":25982378016867,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e92a16b45c7d19862298a382990431d460e960e1.webp?v=1756691431"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e92a16b45c7d19862298a382990431d460e960e1.webp?v=1756691431","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43658713464931,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-KEI09","requires_shipping":true,"taxable":true,"featured_image":{"id":34410060841059,"product_id":7873310589027,"position":1,"created_at":"2025-09-01T09:50:20+08:00","updated_at":"2025-09-01T09:50:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d0b856c3bedf6124359a7c36f3ef4ab62e3559a.webp?v=1756691422","variant_ids":[43658713464931]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) Keigo Deep Sea - 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-KEI09","featured_media":{"alt":null,"id":25982375821411,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d0b856c3bedf6124359a7c36f3ef4ab62e3559a.webp?v=1756691422"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658713596003,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-KEI09","requires_shipping":true,"taxable":true,"featured_image":{"id":34410061103203,"product_id":7873310589027,"position":3,"created_at":"2025-09-01T09:50:21+08:00","updated_at":"2025-09-01T09:50:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40b3be7db353b440da0b7a018761c7fe669771b9.webp?v=1756691423","variant_ids":[43658713596003]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) Keigo Deep Sea - 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-KEI09","featured_media":{"alt":null,"id":25982376083555,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40b3be7db353b440da0b7a018761c7fe669771b9.webp?v=1756691423"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658713661539,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-KEI09","requires_shipping":true,"taxable":true,"featured_image":{"id":34410062020707,"product_id":7873310589027,"position":7,"created_at":"2025-09-01T09:50:25+08:00","updated_at":"2025-09-01T09:50:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fa5a663a095ccb1acd50925153c4b0ea588d643.webp?v=1756691427","variant_ids":[43658713661539]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) Keigo Deep Sea - 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-KEI09","featured_media":{"alt":null,"id":25982377001059,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fa5a663a095ccb1acd50925153c4b0ea588d643.webp?v=1756691427"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43658713464931,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-KEI09","requires_shipping":true,"taxable":true,"featured_image":{"id":34410060841059,"product_id":7873310589027,"position":1,"created_at":"2025-09-01T09:50:20+08:00","updated_at":"2025-09-01T09:50:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d0b856c3bedf6124359a7c36f3ef4ab62e3559a.webp?v=1756691422","variant_ids":[43658713464931]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) Keigo Deep Sea - 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-KEI09","featured_media":{"alt":null,"id":25982375821411,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d0b856c3bedf6124359a7c36f3ef4ab62e3559a.webp?v=1756691422"}},"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: "停產"
}