$product = {"id":7921185456227,"title":"iPhone 14 Pro Mod NX (MagSafe 兼容) 懶散兔與啾先生 煙火","handle":"iphone-14-pro-mod-nx-magsafe-ec75","description":null,"published_at":"2025-11-14T10:46:25+08:00","created_at":"2025-11-11T10:14:48+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-bylobster","device-iPhone 14 Pro","merge","reseller-bylobster"],"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":43831080648803,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-EC75","requires_shipping":true,"taxable":true,"featured_image":{"id":34786500575331,"product_id":7921185456227,"position":5,"created_at":"2025-11-11T10:14:55+08:00","updated_at":"2025-11-11T10:14:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46ad4946d3343cbba142af8113f59232cffe8336.webp?v=1762827296","variant_ids":[43831080648803]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 懶散兔與啾先生 煙火 - 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-EC75","featured_media":{"alt":null,"id":26351957049443,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46ad4946d3343cbba142af8113f59232cffe8336.webp?v=1762827296"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43831080812643,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-EC75","requires_shipping":true,"taxable":true,"featured_image":{"id":34786500051043,"product_id":7921185456227,"position":2,"created_at":"2025-11-11T10:14:53+08:00","updated_at":"2025-11-11T10:14:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aba514ff0d46ddae637585c9b2669545a6efab45.webp?v=1762827295","variant_ids":[43831080812643]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 懶散兔與啾先生 煙火 - 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-EC75","featured_media":{"alt":null,"id":26351956525155,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aba514ff0d46ddae637585c9b2669545a6efab45.webp?v=1762827295"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43831080910947,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-EC75","requires_shipping":true,"taxable":true,"featured_image":{"id":34786501558371,"product_id":7921185456227,"position":10,"created_at":"2025-11-11T10:14:58+08:00","updated_at":"2025-11-11T10:15:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f98badf8fa826ca6ed1046a5c43126e60dec485.webp?v=1762827300","variant_ids":[43831080910947]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 懶散兔與啾先生 煙火 - 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-EC75","featured_media":{"alt":null,"id":26351957966947,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f98badf8fa826ca6ed1046a5c43126e60dec485.webp?v=1762827300"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bdac472bad4c51b8b6bd10ac013fe0d9f1eaddd.webp?v=1762827294","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aba514ff0d46ddae637585c9b2669545a6efab45.webp?v=1762827295","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3ff627ecb05a05367717ae2cddd4aeb67400868.webp?v=1762827295","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75f7c69cf110bb375729dd75b3999bda669f9c60.webp?v=1762827296","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46ad4946d3343cbba142af8113f59232cffe8336.webp?v=1762827296","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59716638a4af8077cdeda1da3f13f140625223b3.webp?v=1762827297","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f2580296abefdd78f3cf34ebb2925b369e1380d.webp?v=1762827298","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a613f64b2bf7cf9d5a522a5aba9972e93617733e.webp?v=1762827299","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f80a548ba0644d64551b86e1065d4c1c2d908fa6.webp?v=1762827299","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f98badf8fa826ca6ed1046a5c43126e60dec485.webp?v=1762827300","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9250bbbf7dfffe1c1d0158778aef5a261d07fd4d.webp?v=1762827301","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/385a0c049ece0700dc2ea36cf07513df3223dee0.webp?v=1762827303"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bdac472bad4c51b8b6bd10ac013fe0d9f1eaddd.webp?v=1762827294","options":["color"],"media":[{"alt":null,"id":26351956361315,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bdac472bad4c51b8b6bd10ac013fe0d9f1eaddd.webp?v=1762827294"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bdac472bad4c51b8b6bd10ac013fe0d9f1eaddd.webp?v=1762827294","width":2000},{"alt":null,"id":26351956525155,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aba514ff0d46ddae637585c9b2669545a6efab45.webp?v=1762827295"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aba514ff0d46ddae637585c9b2669545a6efab45.webp?v=1762827295","width":2000},{"alt":null,"id":26351956688995,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3ff627ecb05a05367717ae2cddd4aeb67400868.webp?v=1762827295"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3ff627ecb05a05367717ae2cddd4aeb67400868.webp?v=1762827295","width":2000},{"alt":null,"id":26351956852835,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75f7c69cf110bb375729dd75b3999bda669f9c60.webp?v=1762827296"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75f7c69cf110bb375729dd75b3999bda669f9c60.webp?v=1762827296","width":2000},{"alt":null,"id":26351957049443,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46ad4946d3343cbba142af8113f59232cffe8336.webp?v=1762827296"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46ad4946d3343cbba142af8113f59232cffe8336.webp?v=1762827296","width":2000},{"alt":null,"id":26351957246051,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59716638a4af8077cdeda1da3f13f140625223b3.webp?v=1762827297"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59716638a4af8077cdeda1da3f13f140625223b3.webp?v=1762827297","width":2000},{"alt":null,"id":26351957508195,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f2580296abefdd78f3cf34ebb2925b369e1380d.webp?v=1762827298"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f2580296abefdd78f3cf34ebb2925b369e1380d.webp?v=1762827298","width":2000},{"alt":null,"id":26351957672035,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a613f64b2bf7cf9d5a522a5aba9972e93617733e.webp?v=1762827299"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a613f64b2bf7cf9d5a522a5aba9972e93617733e.webp?v=1762827299","width":2000},{"alt":null,"id":26351957803107,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f80a548ba0644d64551b86e1065d4c1c2d908fa6.webp?v=1762827299"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f80a548ba0644d64551b86e1065d4c1c2d908fa6.webp?v=1762827299","width":2000},{"alt":null,"id":26351957966947,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f98badf8fa826ca6ed1046a5c43126e60dec485.webp?v=1762827300"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f98badf8fa826ca6ed1046a5c43126e60dec485.webp?v=1762827300","width":2000},{"alt":null,"id":26351958261859,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9250bbbf7dfffe1c1d0158778aef5a261d07fd4d.webp?v=1762827301"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9250bbbf7dfffe1c1d0158778aef5a261d07fd4d.webp?v=1762827301","width":2000},{"alt":null,"id":26351958589539,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/385a0c049ece0700dc2ea36cf07513df3223dee0.webp?v=1762827303"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/385a0c049ece0700dc2ea36cf07513df3223dee0.webp?v=1762827303","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43831080648803,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-EC75","requires_shipping":true,"taxable":true,"featured_image":{"id":34786500575331,"product_id":7921185456227,"position":5,"created_at":"2025-11-11T10:14:55+08:00","updated_at":"2025-11-11T10:14:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46ad4946d3343cbba142af8113f59232cffe8336.webp?v=1762827296","variant_ids":[43831080648803]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 懶散兔與啾先生 煙火 - 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-EC75","featured_media":{"alt":null,"id":26351957049443,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46ad4946d3343cbba142af8113f59232cffe8336.webp?v=1762827296"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43831080812643,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-EC75","requires_shipping":true,"taxable":true,"featured_image":{"id":34786500051043,"product_id":7921185456227,"position":2,"created_at":"2025-11-11T10:14:53+08:00","updated_at":"2025-11-11T10:14:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aba514ff0d46ddae637585c9b2669545a6efab45.webp?v=1762827295","variant_ids":[43831080812643]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 懶散兔與啾先生 煙火 - 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-EC75","featured_media":{"alt":null,"id":26351956525155,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aba514ff0d46ddae637585c9b2669545a6efab45.webp?v=1762827295"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43831080910947,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-EC75","requires_shipping":true,"taxable":true,"featured_image":{"id":34786501558371,"product_id":7921185456227,"position":10,"created_at":"2025-11-11T10:14:58+08:00","updated_at":"2025-11-11T10:15:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f98badf8fa826ca6ed1046a5c43126e60dec485.webp?v=1762827300","variant_ids":[43831080910947]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 懶散兔與啾先生 煙火 - 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-EC75","featured_media":{"alt":null,"id":26351957966947,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f98badf8fa826ca6ed1046a5c43126e60dec485.webp?v=1762827300"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43831080648803,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-EC75","requires_shipping":true,"taxable":true,"featured_image":{"id":34786500575331,"product_id":7921185456227,"position":5,"created_at":"2025-11-11T10:14:55+08:00","updated_at":"2025-11-11T10:14:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46ad4946d3343cbba142af8113f59232cffe8336.webp?v=1762827296","variant_ids":[43831080648803]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 懶散兔與啾先生 煙火 - 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-EC75","featured_media":{"alt":null,"id":26351957049443,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46ad4946d3343cbba142af8113f59232cffe8336.webp?v=1762827296"}},"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: "停產" }