$product = {"id":7873322418275,"title":"iPhone 14 Pro Mod NX (MagSafe 兼容) Keigo Relay Race","handle":"iphone-14-pro-mod-nx-magsafe-printable-kei05","description":null,"published_at":"2025-09-01T10:33:00+08:00","created_at":"2025-09-01T09:53:20+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":43658760847459,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-KEI05","requires_shipping":true,"taxable":true,"featured_image":{"id":34410111074403,"product_id":7873322418275,"position":7,"created_at":"2025-09-01T09:53:29+08:00","updated_at":"2025-09-01T09:53:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/017ae1c455857c5fbbb03d31cdbf16e0d3d8b4d4.webp?v=1756691611","variant_ids":[43658760847459]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) Keigo Relay Race - 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-KEI05","featured_media":{"alt":null,"id":25982426054755,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/017ae1c455857c5fbbb03d31cdbf16e0d3d8b4d4.webp?v=1756691611"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658760978531,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-KEI05","requires_shipping":true,"taxable":true,"featured_image":{"id":34410111631459,"product_id":7873322418275,"position":11,"created_at":"2025-09-01T09:53:31+08:00","updated_at":"2025-09-01T09:53:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6eb1f20886c604b40ab655be7ab87e07694708cc.webp?v=1756691614","variant_ids":[43658760978531]},"available":true,"name":"iPhone 14 Pro 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":"MPB0126224-KEI05","featured_media":{"alt":null,"id":25982426677347,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6eb1f20886c604b40ab655be7ab87e07694708cc.webp?v=1756691614"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658761044067,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-KEI05","requires_shipping":true,"taxable":true,"featured_image":{"id":34410111402083,"product_id":7873322418275,"position":9,"created_at":"2025-09-01T09:53:30+08:00","updated_at":"2025-09-01T09:53:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae0dbc2f90b3f071ce45b12384a994a835b4873c.webp?v=1756691612","variant_ids":[43658761044067]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) Keigo Relay Race - 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-KEI05","featured_media":{"alt":null,"id":25982426382435,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae0dbc2f90b3f071ce45b12384a994a835b4873c.webp?v=1756691612"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e9aad1ce5c17d29d39e6ca040fe53466c3be09d.webp?v=1756691607","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd25bc03a38ec4a76a35d64db1a8b05df43b9708.webp?v=1756691607","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b8458207c33d65c4bc0840f018523afb5f26ac8.webp?v=1756691608","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c62f5f131a27f3e98fae070e8c5417adcddb65d6.webp?v=1756691609","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c888db85e952a2065ae89d3aaf6ab0404db9357.webp?v=1756691609","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de89362cf624281e3f678c913e2b95d92a0b1b28.webp?v=1756691610","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/017ae1c455857c5fbbb03d31cdbf16e0d3d8b4d4.webp?v=1756691611","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8226bed35572acb5c52be15e89233528aa691cd.webp?v=1756691611","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae0dbc2f90b3f071ce45b12384a994a835b4873c.webp?v=1756691612","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6dca098964823c89951fd900d48f217c18777c2.webp?v=1756691613","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6eb1f20886c604b40ab655be7ab87e07694708cc.webp?v=1756691614","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47d6fb94ef3536f23dcae9a4491318a3d6f6885c.webp?v=1756691614"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e9aad1ce5c17d29d39e6ca040fe53466c3be09d.webp?v=1756691607","options":["color"],"media":[{"alt":null,"id":25982424678499,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e9aad1ce5c17d29d39e6ca040fe53466c3be09d.webp?v=1756691607"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e9aad1ce5c17d29d39e6ca040fe53466c3be09d.webp?v=1756691607","width":2000},{"alt":null,"id":25982424940643,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd25bc03a38ec4a76a35d64db1a8b05df43b9708.webp?v=1756691607"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd25bc03a38ec4a76a35d64db1a8b05df43b9708.webp?v=1756691607","width":2000},{"alt":null,"id":25982425137251,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b8458207c33d65c4bc0840f018523afb5f26ac8.webp?v=1756691608"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b8458207c33d65c4bc0840f018523afb5f26ac8.webp?v=1756691608","width":2000},{"alt":null,"id":25982425366627,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c62f5f131a27f3e98fae070e8c5417adcddb65d6.webp?v=1756691609"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c62f5f131a27f3e98fae070e8c5417adcddb65d6.webp?v=1756691609","width":2000},{"alt":null,"id":25982425694307,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c888db85e952a2065ae89d3aaf6ab0404db9357.webp?v=1756691609"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c888db85e952a2065ae89d3aaf6ab0404db9357.webp?v=1756691609","width":2000},{"alt":null,"id":25982425890915,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de89362cf624281e3f678c913e2b95d92a0b1b28.webp?v=1756691610"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de89362cf624281e3f678c913e2b95d92a0b1b28.webp?v=1756691610","width":2000},{"alt":null,"id":25982426054755,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/017ae1c455857c5fbbb03d31cdbf16e0d3d8b4d4.webp?v=1756691611"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/017ae1c455857c5fbbb03d31cdbf16e0d3d8b4d4.webp?v=1756691611","width":2000},{"alt":null,"id":25982426251363,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8226bed35572acb5c52be15e89233528aa691cd.webp?v=1756691611"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8226bed35572acb5c52be15e89233528aa691cd.webp?v=1756691611","width":2000},{"alt":null,"id":25982426382435,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae0dbc2f90b3f071ce45b12384a994a835b4873c.webp?v=1756691612"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae0dbc2f90b3f071ce45b12384a994a835b4873c.webp?v=1756691612","width":2000},{"alt":null,"id":25982426513507,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6dca098964823c89951fd900d48f217c18777c2.webp?v=1756691613"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6dca098964823c89951fd900d48f217c18777c2.webp?v=1756691613","width":2000},{"alt":null,"id":25982426677347,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6eb1f20886c604b40ab655be7ab87e07694708cc.webp?v=1756691614"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6eb1f20886c604b40ab655be7ab87e07694708cc.webp?v=1756691614","width":2000},{"alt":null,"id":25982426808419,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47d6fb94ef3536f23dcae9a4491318a3d6f6885c.webp?v=1756691614"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47d6fb94ef3536f23dcae9a4491318a3d6f6885c.webp?v=1756691614","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43658760847459,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-KEI05","requires_shipping":true,"taxable":true,"featured_image":{"id":34410111074403,"product_id":7873322418275,"position":7,"created_at":"2025-09-01T09:53:29+08:00","updated_at":"2025-09-01T09:53:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/017ae1c455857c5fbbb03d31cdbf16e0d3d8b4d4.webp?v=1756691611","variant_ids":[43658760847459]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) Keigo Relay Race - 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-KEI05","featured_media":{"alt":null,"id":25982426054755,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/017ae1c455857c5fbbb03d31cdbf16e0d3d8b4d4.webp?v=1756691611"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658760978531,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-KEI05","requires_shipping":true,"taxable":true,"featured_image":{"id":34410111631459,"product_id":7873322418275,"position":11,"created_at":"2025-09-01T09:53:31+08:00","updated_at":"2025-09-01T09:53:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6eb1f20886c604b40ab655be7ab87e07694708cc.webp?v=1756691614","variant_ids":[43658760978531]},"available":true,"name":"iPhone 14 Pro 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":"MPB0126224-KEI05","featured_media":{"alt":null,"id":25982426677347,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6eb1f20886c604b40ab655be7ab87e07694708cc.webp?v=1756691614"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658761044067,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-KEI05","requires_shipping":true,"taxable":true,"featured_image":{"id":34410111402083,"product_id":7873322418275,"position":9,"created_at":"2025-09-01T09:53:30+08:00","updated_at":"2025-09-01T09:53:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae0dbc2f90b3f071ce45b12384a994a835b4873c.webp?v=1756691612","variant_ids":[43658761044067]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) Keigo Relay Race - 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-KEI05","featured_media":{"alt":null,"id":25982426382435,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae0dbc2f90b3f071ce45b12384a994a835b4873c.webp?v=1756691612"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43658760847459,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-KEI05","requires_shipping":true,"taxable":true,"featured_image":{"id":34410111074403,"product_id":7873322418275,"position":7,"created_at":"2025-09-01T09:53:29+08:00","updated_at":"2025-09-01T09:53:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/017ae1c455857c5fbbb03d31cdbf16e0d3d8b4d4.webp?v=1756691611","variant_ids":[43658760847459]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) Keigo Relay Race - 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-KEI05","featured_media":{"alt":null,"id":25982426054755,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/017ae1c455857c5fbbb03d31cdbf16e0d3d8b4d4.webp?v=1756691611"}},"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: "停產" }