$product = {"id":7886179139683,"title":"iPhone 7 \/ 8 \/ SE \/ SE2 Mod NX 馬來貘LAIMO 阿楊","handle":"iphone-8-mod-nx-printable-lmo01","description":null,"published_at":"2025-09-17T10:45:02+08:00","created_at":"2025-09-17T10:10:27+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-cherng","device-iPhone 8","merge","reseller-cherng"],"price":90000,"price_min":90000,"price_max":90000,"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":43734949789795,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01054J5-LMO01","requires_shipping":true,"taxable":true,"featured_image":{"id":34500380098659,"product_id":7886179139683,"position":4,"created_at":"2025-09-17T10:10:32+08:00","updated_at":"2025-09-17T10:10:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93a7b8f930d6801357f8b820a4d6e2987f012f6f.webp?v=1758075034","variant_ids":[43734949789795]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 Mod NX 馬來貘LAIMO 阿楊 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01054J5-LMO01","featured_media":{"alt":null,"id":26071971823715,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93a7b8f930d6801357f8b820a4d6e2987f012f6f.webp?v=1758075034"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43734953132131,"title":"Red","option1":"Red","option2":null,"option3":null,"sku":"NPB0105414-LMO01","requires_shipping":true,"taxable":true,"featured_image":{"id":34500380950627,"product_id":7886179139683,"position":7,"created_at":"2025-09-17T10:10:34+08:00","updated_at":"2025-09-17T10:10:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c4413aae08cbae1ea53f025da6418359a142a17.webp?v=1758075036","variant_ids":[43734953132131]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 Mod NX 馬來貘LAIMO 阿楊 - Red","public_title":"Red","options":["Red"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0105414-LMO01","featured_media":{"alt":null,"id":26071972675683,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c4413aae08cbae1ea53f025da6418359a142a17.webp?v=1758075036"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43734953230435,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0105424-LMO01","requires_shipping":true,"taxable":true,"featured_image":{"id":34500380491875,"product_id":7886179139683,"position":5,"created_at":"2025-09-17T10:10:33+08:00","updated_at":"2025-09-17T10:10:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25c9b9a5ec627305738e9562dca878d9bf190d66.webp?v=1758075035","variant_ids":[43734953230435]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 Mod NX 馬來貘LAIMO 阿楊 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0105424-LMO01","featured_media":{"alt":null,"id":26071972216931,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25c9b9a5ec627305738e9562dca878d9bf190d66.webp?v=1758075035"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f7188301c6f237940ce9ad49d9921c69142e275.webp?v=1758075032","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff57eca74705290572597ad36e11e84b009009ff.webp?v=1758075033","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca127fb57b754e74e46591acba5bbd5360ea9b17.webp?v=1758075033","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93a7b8f930d6801357f8b820a4d6e2987f012f6f.webp?v=1758075034","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25c9b9a5ec627305738e9562dca878d9bf190d66.webp?v=1758075035","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bef3042ba650eb96e24e4a30515712004fcc5b1.webp?v=1758075035","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c4413aae08cbae1ea53f025da6418359a142a17.webp?v=1758075036","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3326edf23f223a2fff402315d8c07baca4ed7d87.webp?v=1758075036"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f7188301c6f237940ce9ad49d9921c69142e275.webp?v=1758075032","options":["color"],"media":[{"alt":null,"id":26071971070051,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f7188301c6f237940ce9ad49d9921c69142e275.webp?v=1758075032"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f7188301c6f237940ce9ad49d9921c69142e275.webp?v=1758075032","width":2000},{"alt":null,"id":26071971332195,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff57eca74705290572597ad36e11e84b009009ff.webp?v=1758075033"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff57eca74705290572597ad36e11e84b009009ff.webp?v=1758075033","width":2000},{"alt":null,"id":26071971594339,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca127fb57b754e74e46591acba5bbd5360ea9b17.webp?v=1758075033"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca127fb57b754e74e46591acba5bbd5360ea9b17.webp?v=1758075033","width":2000},{"alt":null,"id":26071971823715,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93a7b8f930d6801357f8b820a4d6e2987f012f6f.webp?v=1758075034"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93a7b8f930d6801357f8b820a4d6e2987f012f6f.webp?v=1758075034","width":2000},{"alt":null,"id":26071972216931,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25c9b9a5ec627305738e9562dca878d9bf190d66.webp?v=1758075035"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25c9b9a5ec627305738e9562dca878d9bf190d66.webp?v=1758075035","width":2000},{"alt":null,"id":26071972413539,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bef3042ba650eb96e24e4a30515712004fcc5b1.webp?v=1758075035"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bef3042ba650eb96e24e4a30515712004fcc5b1.webp?v=1758075035","width":2000},{"alt":null,"id":26071972675683,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c4413aae08cbae1ea53f025da6418359a142a17.webp?v=1758075036"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c4413aae08cbae1ea53f025da6418359a142a17.webp?v=1758075036","width":2000},{"alt":null,"id":26071972839523,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3326edf23f223a2fff402315d8c07baca4ed7d87.webp?v=1758075036"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3326edf23f223a2fff402315d8c07baca4ed7d87.webp?v=1758075036","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43734949789795,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01054J5-LMO01","requires_shipping":true,"taxable":true,"featured_image":{"id":34500380098659,"product_id":7886179139683,"position":4,"created_at":"2025-09-17T10:10:32+08:00","updated_at":"2025-09-17T10:10:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93a7b8f930d6801357f8b820a4d6e2987f012f6f.webp?v=1758075034","variant_ids":[43734949789795]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 Mod NX 馬來貘LAIMO 阿楊 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01054J5-LMO01","featured_media":{"alt":null,"id":26071971823715,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93a7b8f930d6801357f8b820a4d6e2987f012f6f.webp?v=1758075034"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43734953132131,"title":"Red","option1":"Red","option2":null,"option3":null,"sku":"NPB0105414-LMO01","requires_shipping":true,"taxable":true,"featured_image":{"id":34500380950627,"product_id":7886179139683,"position":7,"created_at":"2025-09-17T10:10:34+08:00","updated_at":"2025-09-17T10:10:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c4413aae08cbae1ea53f025da6418359a142a17.webp?v=1758075036","variant_ids":[43734953132131]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 Mod NX 馬來貘LAIMO 阿楊 - Red","public_title":"Red","options":["Red"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0105414-LMO01","featured_media":{"alt":null,"id":26071972675683,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c4413aae08cbae1ea53f025da6418359a142a17.webp?v=1758075036"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43734953230435,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0105424-LMO01","requires_shipping":true,"taxable":true,"featured_image":{"id":34500380491875,"product_id":7886179139683,"position":5,"created_at":"2025-09-17T10:10:33+08:00","updated_at":"2025-09-17T10:10:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25c9b9a5ec627305738e9562dca878d9bf190d66.webp?v=1758075035","variant_ids":[43734953230435]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 Mod NX 馬來貘LAIMO 阿楊 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0105424-LMO01","featured_media":{"alt":null,"id":26071972216931,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25c9b9a5ec627305738e9562dca878d9bf190d66.webp?v=1758075035"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43734949789795,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01054J5-LMO01","requires_shipping":true,"taxable":true,"featured_image":{"id":34500380098659,"product_id":7886179139683,"position":4,"created_at":"2025-09-17T10:10:32+08:00","updated_at":"2025-09-17T10:10:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93a7b8f930d6801357f8b820a4d6e2987f012f6f.webp?v=1758075034","variant_ids":[43734949789795]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 Mod NX 馬來貘LAIMO 阿楊 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01054J5-LMO01","featured_media":{"alt":null,"id":26071971823715,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93a7b8f930d6801357f8b820a4d6e2987f012f6f.webp?v=1758075034"}},"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: "停產" }