$product = {"id":7886189461603,"title":"iPhone 12 Pro Max Mod NX (MagSafe 兼容) 馬來貘LAIMO 阿楊","handle":"iphone-12-pro-max-mod-nx-magsafe-printable-lmo01","description":null,"published_at":"2025-09-17T10:42:17+08:00","created_at":"2025-09-17T10:12:37+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-cherng","device-iPhone 12 Pro Max","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":43734992486499,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118724-LMO01","requires_shipping":true,"taxable":true,"featured_image":{"id":34500422598755,"product_id":7886189461603,"position":5,"created_at":"2025-09-17T10:12:42+08:00","updated_at":"2025-09-17T10:12:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cd4933695c796becb73eb978d6b66abe3490f5b.webp?v=1758075164","variant_ids":[43734992486499]},"available":true,"name":"iPhone 12 Pro Max 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":"MPB0118724-LMO01","featured_media":{"alt":null,"id":26072014323811,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cd4933695c796becb73eb978d6b66abe3490f5b.webp?v=1758075164"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9ed0b44f76aaee48856990698a0acbaf1148e18.webp?v=1758075162","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe2e54c25b915ba6bf11f1da322940dd63837562.webp?v=1758075162","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e0296f8f4ac48d6bed95820ae9320fbbeb4496b.webp?v=1758075163","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18989638fe43f6cc88fdd22acadbf2adea97c781.webp?v=1758075163","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cd4933695c796becb73eb978d6b66abe3490f5b.webp?v=1758075164","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40ed0d6ad4c0ff6f97653fc6b0fb234fcd7efc11.webp?v=1758075164","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/939f1aee1c2b8ac8f69e7b04c384b83f03118334.webp?v=1758075165","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/794577c84e9feb9afac42fe5fca703611161639d.webp?v=1758075166","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8565a863b61b5c49f8c978186decc084e1fa9517.webp?v=1758075166"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9ed0b44f76aaee48856990698a0acbaf1148e18.webp?v=1758075162","options":["color"],"media":[{"alt":null,"id":26072013537379,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9ed0b44f76aaee48856990698a0acbaf1148e18.webp?v=1758075162"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9ed0b44f76aaee48856990698a0acbaf1148e18.webp?v=1758075162","width":2000},{"alt":null,"id":26072013766755,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe2e54c25b915ba6bf11f1da322940dd63837562.webp?v=1758075162"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe2e54c25b915ba6bf11f1da322940dd63837562.webp?v=1758075162","width":2000},{"alt":null,"id":26072013996131,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e0296f8f4ac48d6bed95820ae9320fbbeb4496b.webp?v=1758075163"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e0296f8f4ac48d6bed95820ae9320fbbeb4496b.webp?v=1758075163","width":2000},{"alt":null,"id":26072014127203,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18989638fe43f6cc88fdd22acadbf2adea97c781.webp?v=1758075163"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18989638fe43f6cc88fdd22acadbf2adea97c781.webp?v=1758075163","width":2000},{"alt":null,"id":26072014323811,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cd4933695c796becb73eb978d6b66abe3490f5b.webp?v=1758075164"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cd4933695c796becb73eb978d6b66abe3490f5b.webp?v=1758075164","width":2000},{"alt":null,"id":26072014422115,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40ed0d6ad4c0ff6f97653fc6b0fb234fcd7efc11.webp?v=1758075164"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40ed0d6ad4c0ff6f97653fc6b0fb234fcd7efc11.webp?v=1758075164","width":2000},{"alt":null,"id":26072014618723,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/939f1aee1c2b8ac8f69e7b04c384b83f03118334.webp?v=1758075165"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/939f1aee1c2b8ac8f69e7b04c384b83f03118334.webp?v=1758075165","width":2000},{"alt":null,"id":26072014913635,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/794577c84e9feb9afac42fe5fca703611161639d.webp?v=1758075166"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/794577c84e9feb9afac42fe5fca703611161639d.webp?v=1758075166","width":2000},{"alt":null,"id":26072015143011,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8565a863b61b5c49f8c978186decc084e1fa9517.webp?v=1758075166"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8565a863b61b5c49f8c978186decc084e1fa9517.webp?v=1758075166","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43734992486499,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118724-LMO01","requires_shipping":true,"taxable":true,"featured_image":{"id":34500422598755,"product_id":7886189461603,"position":5,"created_at":"2025-09-17T10:12:42+08:00","updated_at":"2025-09-17T10:12:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cd4933695c796becb73eb978d6b66abe3490f5b.webp?v=1758075164","variant_ids":[43734992486499]},"available":true,"name":"iPhone 12 Pro Max 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":"MPB0118724-LMO01","featured_media":{"alt":null,"id":26072014323811,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cd4933695c796becb73eb978d6b66abe3490f5b.webp?v=1758075164"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43734992486499,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118724-LMO01","requires_shipping":true,"taxable":true,"featured_image":{"id":34500422598755,"product_id":7886189461603,"position":5,"created_at":"2025-09-17T10:12:42+08:00","updated_at":"2025-09-17T10:12:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cd4933695c796becb73eb978d6b66abe3490f5b.webp?v=1758075164","variant_ids":[43734992486499]},"available":true,"name":"iPhone 12 Pro Max 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":"MPB0118724-LMO01","featured_media":{"alt":null,"id":26072014323811,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cd4933695c796becb73eb978d6b66abe3490f5b.webp?v=1758075164"}},"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: "停產" }