$product = {"id":7886148075619,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) 馬來貘LAIMO 孤芳自賞","handle":"iphone-14-plus-mod-nx-magsafe-printable-lmo03","description":null,"published_at":"2025-09-17T10:53:21+08:00","created_at":"2025-09-17T10:03:42+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-cherng","device-iPhone 14 Plus","merge","reseller-cherng"],"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":43734833627235,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-LMO03","requires_shipping":true,"taxable":true,"featured_image":{"id":34500250566755,"product_id":7886148075619,"position":8,"created_at":"2025-09-17T10:03:51+08:00","updated_at":"2025-09-17T10:03:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91777288c56332adc2c7f9ddf3c983904d6a46fb.webp?v=1758074633","variant_ids":[43734833627235]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 馬來貘LAIMO 孤芳自賞 - 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-LMO03","featured_media":{"alt":null,"id":26071842324579,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91777288c56332adc2c7f9ddf3c983904d6a46fb.webp?v=1758074633"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/850816c746a17a24e3d38a508a680db6f3893c83.webp?v=1758074629","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fb8fb070823d60a47d62585570bcafaf52a460e.webp?v=1758074630","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff436ddddb18609508004ba1b7f7daaf3f410fd6.webp?v=1758074630","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37cc4e1bb9125d85178928bf3a67a44d567c1d2f.webp?v=1758074631","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9ba04b2cc08d35df79f5a465d1af8147b57513c.webp?v=1758074631","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4dfdf8c0278143eee2785e458984c2f2278a86ad.webp?v=1758074632","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7cbec72f4ba422e4c35d4237a27b9f6ef9e1b9a.webp?v=1758074632","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91777288c56332adc2c7f9ddf3c983904d6a46fb.webp?v=1758074633","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7b9a5aa838b85b10414e6e8e450e7acac5392c9.webp?v=1758074633","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8773f4646c2beaf1b8e35f20de0050ec405080f.webp?v=1758074634","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b17e1a04cc8c37264c944c9a8e7da80ac3245a00.webp?v=1758074634","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53d7fde1945a8947170568ec9d4b682feebade29.webp?v=1758074635","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36be5e33c9fcbd29bda78af5becda4b45a77f8a7.webp?v=1758074635"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/850816c746a17a24e3d38a508a680db6f3893c83.webp?v=1758074629","options":["color"],"media":[{"alt":null,"id":26071840948323,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/850816c746a17a24e3d38a508a680db6f3893c83.webp?v=1758074629"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/850816c746a17a24e3d38a508a680db6f3893c83.webp?v=1758074629","width":2000},{"alt":null,"id":26071841079395,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fb8fb070823d60a47d62585570bcafaf52a460e.webp?v=1758074630"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fb8fb070823d60a47d62585570bcafaf52a460e.webp?v=1758074630","width":2000},{"alt":null,"id":26071841210467,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff436ddddb18609508004ba1b7f7daaf3f410fd6.webp?v=1758074630"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff436ddddb18609508004ba1b7f7daaf3f410fd6.webp?v=1758074630","width":2000},{"alt":null,"id":26071841374307,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37cc4e1bb9125d85178928bf3a67a44d567c1d2f.webp?v=1758074631"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37cc4e1bb9125d85178928bf3a67a44d567c1d2f.webp?v=1758074631","width":2000},{"alt":null,"id":26071841570915,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9ba04b2cc08d35df79f5a465d1af8147b57513c.webp?v=1758074631"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9ba04b2cc08d35df79f5a465d1af8147b57513c.webp?v=1758074631","width":2000},{"alt":null,"id":26071841767523,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4dfdf8c0278143eee2785e458984c2f2278a86ad.webp?v=1758074632"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4dfdf8c0278143eee2785e458984c2f2278a86ad.webp?v=1758074632","width":2000},{"alt":null,"id":26071842029667,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7cbec72f4ba422e4c35d4237a27b9f6ef9e1b9a.webp?v=1758074632"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7cbec72f4ba422e4c35d4237a27b9f6ef9e1b9a.webp?v=1758074632","width":2000},{"alt":null,"id":26071842324579,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91777288c56332adc2c7f9ddf3c983904d6a46fb.webp?v=1758074633"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91777288c56332adc2c7f9ddf3c983904d6a46fb.webp?v=1758074633","width":2000},{"alt":null,"id":26071842685027,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7b9a5aa838b85b10414e6e8e450e7acac5392c9.webp?v=1758074633"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7b9a5aa838b85b10414e6e8e450e7acac5392c9.webp?v=1758074633","width":2000},{"alt":null,"id":26071843012707,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8773f4646c2beaf1b8e35f20de0050ec405080f.webp?v=1758074634"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8773f4646c2beaf1b8e35f20de0050ec405080f.webp?v=1758074634","width":2000},{"alt":null,"id":26071843405923,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b17e1a04cc8c37264c944c9a8e7da80ac3245a00.webp?v=1758074634"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b17e1a04cc8c37264c944c9a8e7da80ac3245a00.webp?v=1758074634","width":2000},{"alt":null,"id":26071843700835,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53d7fde1945a8947170568ec9d4b682feebade29.webp?v=1758074635"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53d7fde1945a8947170568ec9d4b682feebade29.webp?v=1758074635","width":2000},{"alt":null,"id":26071843831907,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36be5e33c9fcbd29bda78af5becda4b45a77f8a7.webp?v=1758074635"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36be5e33c9fcbd29bda78af5becda4b45a77f8a7.webp?v=1758074635","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43734833627235,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-LMO03","requires_shipping":true,"taxable":true,"featured_image":{"id":34500250566755,"product_id":7886148075619,"position":8,"created_at":"2025-09-17T10:03:51+08:00","updated_at":"2025-09-17T10:03:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91777288c56332adc2c7f9ddf3c983904d6a46fb.webp?v=1758074633","variant_ids":[43734833627235]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 馬來貘LAIMO 孤芳自賞 - 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-LMO03","featured_media":{"alt":null,"id":26071842324579,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91777288c56332adc2c7f9ddf3c983904d6a46fb.webp?v=1758074633"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43734833627235,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-LMO03","requires_shipping":true,"taxable":true,"featured_image":{"id":34500250566755,"product_id":7886148075619,"position":8,"created_at":"2025-09-17T10:03:51+08:00","updated_at":"2025-09-17T10:03:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91777288c56332adc2c7f9ddf3c983904d6a46fb.webp?v=1758074633","variant_ids":[43734833627235]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 馬來貘LAIMO 孤芳自賞 - 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-LMO03","featured_media":{"alt":null,"id":26071842324579,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91777288c56332adc2c7f9ddf3c983904d6a46fb.webp?v=1758074633"}},"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: "停產" }