$product = {"id":7931694383203,"title":"iPhone 12 Pro Max Mod NX (MagSafe 兼容) 產房 • 廢料棲息地 海洋實驗室","handle":"iphone-12-pro-max-mod-nx-magsafe-bir08","description":null,"published_at":"2026-01-27T14:09:21+08:00","created_at":"2025-11-28T11:46:10+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-everydayishappybirthday","device-iPhone 12 Pro Max","merge","reseller-everydayishappybirthday"],"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":43861589262435,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118724-BIR08","requires_shipping":true,"taxable":true,"featured_image":{"id":34863957049443,"product_id":7931694383203,"position":4,"created_at":"2025-11-28T11:46:16+08:00","updated_at":"2025-11-28T11:46:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/766c1d1d524cfd3b2b3e692126ec5f71c8403362.webp?v=1764301578","variant_ids":[43861589262435]},"available":true,"name":"iPhone 12 Pro Max 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":"MPB0118724-BIR08","featured_media":{"alt":null,"id":26428375892067,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/766c1d1d524cfd3b2b3e692126ec5f71c8403362.webp?v=1764301578"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7805f5cd19aebddf7bfb4668d841a403b543cadf.webp?v=1764301576","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6bda9541ac743b502ca1c3f4f2deced60e961ac0.webp?v=1764301577","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d82b5c32ddcb1ef9e40cf08ce8334c2b6dd086cb.webp?v=1764301577","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/766c1d1d524cfd3b2b3e692126ec5f71c8403362.webp?v=1764301578","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f60c1a1fd84bd490fe0b1a62685e59d0b8b260bf.webp?v=1764301578","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1687cf91d2aa1a6eaa69da2a4278877215388d4.webp?v=1764301579","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e51ed0057fd218730dbc75aaacb47da575ed0e26.webp?v=1764301579","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84858ab1a8db8a5ad7e0d80badb8a4a7d61c8bec.webp?v=1764301580","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d41357ba91f3e181c28a509b2a58e3a61c2bdad.webp?v=1764301580"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7805f5cd19aebddf7bfb4668d841a403b543cadf.webp?v=1764301576","options":["color"],"media":[{"alt":null,"id":26428375400547,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7805f5cd19aebddf7bfb4668d841a403b543cadf.webp?v=1764301576"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7805f5cd19aebddf7bfb4668d841a403b543cadf.webp?v=1764301576","width":2000},{"alt":null,"id":26428375531619,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6bda9541ac743b502ca1c3f4f2deced60e961ac0.webp?v=1764301577"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6bda9541ac743b502ca1c3f4f2deced60e961ac0.webp?v=1764301577","width":2000},{"alt":null,"id":26428375662691,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d82b5c32ddcb1ef9e40cf08ce8334c2b6dd086cb.webp?v=1764301577"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d82b5c32ddcb1ef9e40cf08ce8334c2b6dd086cb.webp?v=1764301577","width":2000},{"alt":null,"id":26428375892067,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/766c1d1d524cfd3b2b3e692126ec5f71c8403362.webp?v=1764301578"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/766c1d1d524cfd3b2b3e692126ec5f71c8403362.webp?v=1764301578","width":2000},{"alt":null,"id":26428376088675,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f60c1a1fd84bd490fe0b1a62685e59d0b8b260bf.webp?v=1764301578"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f60c1a1fd84bd490fe0b1a62685e59d0b8b260bf.webp?v=1764301578","width":2000},{"alt":null,"id":26428376449123,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1687cf91d2aa1a6eaa69da2a4278877215388d4.webp?v=1764301579"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1687cf91d2aa1a6eaa69da2a4278877215388d4.webp?v=1764301579","width":2000},{"alt":null,"id":26428376580195,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e51ed0057fd218730dbc75aaacb47da575ed0e26.webp?v=1764301579"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e51ed0057fd218730dbc75aaacb47da575ed0e26.webp?v=1764301579","width":2000},{"alt":null,"id":26428376711267,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84858ab1a8db8a5ad7e0d80badb8a4a7d61c8bec.webp?v=1764301580"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84858ab1a8db8a5ad7e0d80badb8a4a7d61c8bec.webp?v=1764301580","width":2000},{"alt":null,"id":26428376842339,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d41357ba91f3e181c28a509b2a58e3a61c2bdad.webp?v=1764301580"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d41357ba91f3e181c28a509b2a58e3a61c2bdad.webp?v=1764301580","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43861589262435,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118724-BIR08","requires_shipping":true,"taxable":true,"featured_image":{"id":34863957049443,"product_id":7931694383203,"position":4,"created_at":"2025-11-28T11:46:16+08:00","updated_at":"2025-11-28T11:46:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/766c1d1d524cfd3b2b3e692126ec5f71c8403362.webp?v=1764301578","variant_ids":[43861589262435]},"available":true,"name":"iPhone 12 Pro Max 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":"MPB0118724-BIR08","featured_media":{"alt":null,"id":26428375892067,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/766c1d1d524cfd3b2b3e692126ec5f71c8403362.webp?v=1764301578"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43861589262435,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118724-BIR08","requires_shipping":true,"taxable":true,"featured_image":{"id":34863957049443,"product_id":7931694383203,"position":4,"created_at":"2025-11-28T11:46:16+08:00","updated_at":"2025-11-28T11:46:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/766c1d1d524cfd3b2b3e692126ec5f71c8403362.webp?v=1764301578","variant_ids":[43861589262435]},"available":true,"name":"iPhone 12 Pro Max 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":"MPB0118724-BIR08","featured_media":{"alt":null,"id":26428375892067,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/766c1d1d524cfd3b2b3e692126ec5f71c8403362.webp?v=1764301578"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $type = ""; var sellingStatus if ($isMerge) { $(document).ready(function() { var productImg = $product.images[0]; var bumperImg = window.getProductImageUrl($defaultVariant.sku.split('-')[0]); var layers = ($type === 'mod-nx-backplate' || $type === 'mod-backplate') ? [productImg, bumperImg] : [bumperImg, productImg]; window.mergeProductImages(layers).then(function (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: "停產" }