$product = {"id":7921202004067,"title":"iPhone 12 Pro Max Mod NX 懶散兔與啾先生 Fly Freely","handle":"iphone-12-pro-max-mod-nx-ec81","description":null,"published_at":"2025-11-14T10:43:26+08:00","created_at":"2025-11-11T10:19:02+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-bylobster","device-iPhone 12 Pro Max","merge","reseller-bylobster"],"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":43831141630051,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118724-EC81","requires_shipping":true,"taxable":true,"featured_image":{"id":36053815001187,"product_id":7921202004067,"position":10,"created_at":"2026-06-23T09:26:57+08:00","updated_at":"2026-06-23T09:26:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6ed5e65eb235453da32c7c29084cbb5f7688718_a94de0f3-5b23-4015-bda3-79cac714982d.webp?v=1782178019","variant_ids":[43831141630051]},"available":true,"name":"iPhone 12 Pro Max Mod NX 懶散兔與啾先生 Fly Freely - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-EC81","featured_media":{"alt":null,"id":27566665465955,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6ed5e65eb235453da32c7c29084cbb5f7688718_a94de0f3-5b23-4015-bda3-79cac714982d.webp?v=1782178019"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ce03387d5558db2d74a94d15ccd344bd0e38840.webp?v=1762827548","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d933490f69663b75e815c4c6c2480d900f53e0f.webp?v=1762827549","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d4cbef4362d5733c69f7c43940f93bce0b69d66.webp?v=1762827550","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/088029591cd0db45eabaa498b082d22b80bae7af.webp?v=1762827551","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6ed5e65eb235453da32c7c29084cbb5f7688718.webp?v=1762827551","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb023baae43121352de1c642d77096b2d1066d69.webp?v=1762827552","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32954bc58c9f9df4a73fde8d2d260202c8acb466.webp?v=1762827553","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2711f1900fae5e923c918fa233501167d0e0d0b2.webp?v=1762827553","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83bd4a76a38bf10070429ec4a93a9ba8f9f45be6.webp?v=1762827554","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6ed5e65eb235453da32c7c29084cbb5f7688718_a94de0f3-5b23-4015-bda3-79cac714982d.webp?v=1782178019"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ce03387d5558db2d74a94d15ccd344bd0e38840.webp?v=1762827548","options":["color"],"media":[{"alt":null,"id":26352024191075,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ce03387d5558db2d74a94d15ccd344bd0e38840.webp?v=1762827548"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ce03387d5558db2d74a94d15ccd344bd0e38840.webp?v=1762827548","width":2000},{"alt":null,"id":26352024420451,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d933490f69663b75e815c4c6c2480d900f53e0f.webp?v=1762827549"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d933490f69663b75e815c4c6c2480d900f53e0f.webp?v=1762827549","width":2000},{"alt":null,"id":26352024584291,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d4cbef4362d5733c69f7c43940f93bce0b69d66.webp?v=1762827550"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d4cbef4362d5733c69f7c43940f93bce0b69d66.webp?v=1762827550","width":2000},{"alt":null,"id":26352024846435,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/088029591cd0db45eabaa498b082d22b80bae7af.webp?v=1762827551"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/088029591cd0db45eabaa498b082d22b80bae7af.webp?v=1762827551","width":2000},{"alt":null,"id":26352025043043,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6ed5e65eb235453da32c7c29084cbb5f7688718.webp?v=1762827551"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6ed5e65eb235453da32c7c29084cbb5f7688718.webp?v=1762827551","width":2000},{"alt":null,"id":26352025272419,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb023baae43121352de1c642d77096b2d1066d69.webp?v=1762827552"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb023baae43121352de1c642d77096b2d1066d69.webp?v=1762827552","width":2000},{"alt":null,"id":26352025469027,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32954bc58c9f9df4a73fde8d2d260202c8acb466.webp?v=1762827553"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32954bc58c9f9df4a73fde8d2d260202c8acb466.webp?v=1762827553","width":2000},{"alt":null,"id":26352025698403,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2711f1900fae5e923c918fa233501167d0e0d0b2.webp?v=1762827553"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2711f1900fae5e923c918fa233501167d0e0d0b2.webp?v=1762827553","width":2000},{"alt":null,"id":26352025862243,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83bd4a76a38bf10070429ec4a93a9ba8f9f45be6.webp?v=1762827554"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83bd4a76a38bf10070429ec4a93a9ba8f9f45be6.webp?v=1762827554","width":2000},{"alt":null,"id":27566665465955,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6ed5e65eb235453da32c7c29084cbb5f7688718_a94de0f3-5b23-4015-bda3-79cac714982d.webp?v=1782178019"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6ed5e65eb235453da32c7c29084cbb5f7688718_a94de0f3-5b23-4015-bda3-79cac714982d.webp?v=1782178019","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43831141630051,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118724-EC81","requires_shipping":true,"taxable":true,"featured_image":{"id":36053815001187,"product_id":7921202004067,"position":10,"created_at":"2026-06-23T09:26:57+08:00","updated_at":"2026-06-23T09:26:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6ed5e65eb235453da32c7c29084cbb5f7688718_a94de0f3-5b23-4015-bda3-79cac714982d.webp?v=1782178019","variant_ids":[43831141630051]},"available":true,"name":"iPhone 12 Pro Max Mod NX 懶散兔與啾先生 Fly Freely - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-EC81","featured_media":{"alt":null,"id":27566665465955,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6ed5e65eb235453da32c7c29084cbb5f7688718_a94de0f3-5b23-4015-bda3-79cac714982d.webp?v=1782178019"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43831141630051,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118724-EC81","requires_shipping":true,"taxable":true,"featured_image":{"id":36053815001187,"product_id":7921202004067,"position":10,"created_at":"2026-06-23T09:26:57+08:00","updated_at":"2026-06-23T09:26:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6ed5e65eb235453da32c7c29084cbb5f7688718_a94de0f3-5b23-4015-bda3-79cac714982d.webp?v=1782178019","variant_ids":[43831141630051]},"available":true,"name":"iPhone 12 Pro Max Mod NX 懶散兔與啾先生 Fly Freely - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-EC81","featured_media":{"alt":null,"id":27566665465955,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6ed5e65eb235453da32c7c29084cbb5f7688718_a94de0f3-5b23-4015-bda3-79cac714982d.webp?v=1782178019"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $brand_handle = null; $type = ""; var sellingStatus // 只有設計款(SKU 含 '-')才需要合圖 if ($isMerge && $defaultVariant.sku.includes('-')) { $(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: "停產" }