$product = {"id":7886154268771,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) 馬來貘LAIMO 只想吸貓","handle":"iphone-14-plus-mod-nx-magsafe-printable-lmo04","description":null,"published_at":"2025-09-17T10:51:45+08:00","created_at":"2025-09-17T10:05:06+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":43734858661987,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-LMO04","requires_shipping":true,"taxable":true,"featured_image":{"id":34500277698659,"product_id":7886154268771,"position":8,"created_at":"2025-09-17T10:05:12+08:00","updated_at":"2025-09-17T10:05:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4097464c1ee28b16f53533ebb690dc8dabe1f2a3.webp?v=1758074714","variant_ids":[43734858661987]},"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-LMO04","featured_media":{"alt":null,"id":26071869456483,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4097464c1ee28b16f53533ebb690dc8dabe1f2a3.webp?v=1758074714"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0adec8b1e923445be03a8b14caab24cd1f7b5f12.webp?v=1758074711","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b7374ce653ff15e885795b17f2c0a0cbfeb32aa.webp?v=1758074711","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95a7169b17929a4fa5cb6f400b4cc6a73d6b99a7.webp?v=1758074712","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d26fa9130b18b6a57580bf90273aa9a3f92b8306.webp?v=1758074713","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16cf63ba69be089c7c045a6ab99cc08730179bf9.webp?v=1758074713","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/542c31385b0ba9ba99103e22a4bc44191193eecd.webp?v=1758074713","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bc58000a5bc967ce93013d565674c8371393b88.webp?v=1758074714","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4097464c1ee28b16f53533ebb690dc8dabe1f2a3.webp?v=1758074714","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ba08ab59a6002326c90d2dd579bee86a14860d5.webp?v=1758074715","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6af415a1e8cc2a120438219c39479e9aaf27a40.webp?v=1758074715","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8198d96eafd26c0ba4339f6207207d1f38531d67.webp?v=1758074716","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cf7da6adb7318090510eac076441063f8ca7097.webp?v=1758074717","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/869a1b018ac1e897158bad0387837abe00f7351c.webp?v=1758074717"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0adec8b1e923445be03a8b14caab24cd1f7b5f12.webp?v=1758074711","options":["color"],"media":[{"alt":null,"id":26071868473443,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0adec8b1e923445be03a8b14caab24cd1f7b5f12.webp?v=1758074711"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0adec8b1e923445be03a8b14caab24cd1f7b5f12.webp?v=1758074711","width":2000},{"alt":null,"id":26071868571747,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b7374ce653ff15e885795b17f2c0a0cbfeb32aa.webp?v=1758074711"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b7374ce653ff15e885795b17f2c0a0cbfeb32aa.webp?v=1758074711","width":2000},{"alt":null,"id":26071868735587,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95a7169b17929a4fa5cb6f400b4cc6a73d6b99a7.webp?v=1758074712"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95a7169b17929a4fa5cb6f400b4cc6a73d6b99a7.webp?v=1758074712","width":2000},{"alt":null,"id":26071868801123,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d26fa9130b18b6a57580bf90273aa9a3f92b8306.webp?v=1758074713"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d26fa9130b18b6a57580bf90273aa9a3f92b8306.webp?v=1758074713","width":2000},{"alt":null,"id":26071868932195,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16cf63ba69be089c7c045a6ab99cc08730179bf9.webp?v=1758074713"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16cf63ba69be089c7c045a6ab99cc08730179bf9.webp?v=1758074713","width":2000},{"alt":null,"id":26071869128803,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/542c31385b0ba9ba99103e22a4bc44191193eecd.webp?v=1758074713"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/542c31385b0ba9ba99103e22a4bc44191193eecd.webp?v=1758074713","width":2000},{"alt":null,"id":26071869358179,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bc58000a5bc967ce93013d565674c8371393b88.webp?v=1758074714"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bc58000a5bc967ce93013d565674c8371393b88.webp?v=1758074714","width":2000},{"alt":null,"id":26071869456483,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4097464c1ee28b16f53533ebb690dc8dabe1f2a3.webp?v=1758074714"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4097464c1ee28b16f53533ebb690dc8dabe1f2a3.webp?v=1758074714","width":2000},{"alt":null,"id":26071869587555,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ba08ab59a6002326c90d2dd579bee86a14860d5.webp?v=1758074715"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ba08ab59a6002326c90d2dd579bee86a14860d5.webp?v=1758074715","width":2000},{"alt":null,"id":26071869751395,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6af415a1e8cc2a120438219c39479e9aaf27a40.webp?v=1758074715"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6af415a1e8cc2a120438219c39479e9aaf27a40.webp?v=1758074715","width":2000},{"alt":null,"id":26071869915235,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8198d96eafd26c0ba4339f6207207d1f38531d67.webp?v=1758074716"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8198d96eafd26c0ba4339f6207207d1f38531d67.webp?v=1758074716","width":2000},{"alt":null,"id":26071870079075,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cf7da6adb7318090510eac076441063f8ca7097.webp?v=1758074717"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cf7da6adb7318090510eac076441063f8ca7097.webp?v=1758074717","width":2000},{"alt":null,"id":26071870177379,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/869a1b018ac1e897158bad0387837abe00f7351c.webp?v=1758074717"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/869a1b018ac1e897158bad0387837abe00f7351c.webp?v=1758074717","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43734858661987,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-LMO04","requires_shipping":true,"taxable":true,"featured_image":{"id":34500277698659,"product_id":7886154268771,"position":8,"created_at":"2025-09-17T10:05:12+08:00","updated_at":"2025-09-17T10:05:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4097464c1ee28b16f53533ebb690dc8dabe1f2a3.webp?v=1758074714","variant_ids":[43734858661987]},"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-LMO04","featured_media":{"alt":null,"id":26071869456483,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4097464c1ee28b16f53533ebb690dc8dabe1f2a3.webp?v=1758074714"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43734858661987,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-LMO04","requires_shipping":true,"taxable":true,"featured_image":{"id":34500277698659,"product_id":7886154268771,"position":8,"created_at":"2025-09-17T10:05:12+08:00","updated_at":"2025-09-17T10:05:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4097464c1ee28b16f53533ebb690dc8dabe1f2a3.webp?v=1758074714","variant_ids":[43734858661987]},"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-LMO04","featured_media":{"alt":null,"id":26071869456483,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4097464c1ee28b16f53533ebb690dc8dabe1f2a3.webp?v=1758074714"}},"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: "停產" }