$product = {"id":7831392780387,"title":"iPhone 13 Pro Max Mod NX (MagSafe 兼容) KID Outdoor滿版圖騰","handle":"iphone-13-pro-max-mod-nx-magsafe-bumper-jo45","description":null,"published_at":"2025-07-04T16:07:43+08:00","created_at":"2025-07-04T16:04:55+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-kid","device-iPhone 13 Pro Max","merge","reseller-kid"],"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":43509123252323,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0123224-JO45","requires_shipping":true,"taxable":true,"featured_image":{"id":34123334746211,"product_id":7831392780387,"position":11,"created_at":"2025-07-04T16:05:06+08:00","updated_at":"2025-07-04T16:05:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7b2840db693f6f21ee51803cf4009ba5e9b2ac1.webp?v=1751616308","variant_ids":[43509123252323]},"available":true,"name":"iPhone 13 Pro Max Mod NX (MagSafe 兼容) KID Outdoor滿版圖騰 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-JO45","featured_media":{"alt":null,"id":25774732640355,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7b2840db693f6f21ee51803cf4009ba5e9b2ac1.webp?v=1751616308"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43509123285091,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01232J5-JO45","requires_shipping":true,"taxable":true,"featured_image":{"id":34123333730403,"product_id":7831392780387,"position":7,"created_at":"2025-07-04T16:05:03+08:00","updated_at":"2025-07-04T16:05:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f091f73b9f0e44d47f346138bf1f4860862b700e.webp?v=1751616305","variant_ids":[43509123285091]},"available":true,"name":"iPhone 13 Pro Max Mod NX (MagSafe 兼容) KID Outdoor滿版圖騰 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-JO45","featured_media":{"alt":null,"id":25774732017763,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f091f73b9f0e44d47f346138bf1f4860862b700e.webp?v=1751616305"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3b4e1bc75569c053e15ce22cadd93247edd8433.webp?v=1751616302","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/014e3dfa1d221f0c283165ec3bdefde78dda530a.webp?v=1751616303","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd9fd90310404f19f8f8433fa4b6dd18050b86f8.webp?v=1751616303","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/942938bab1e88b36bd8098b3a0e48b3bc9a1000b.webp?v=1751616304","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8aa688a211b6b7dc846ad40f8a94f34174e2e8c.webp?v=1751616304","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b40aa2a725a97ef31b67aacda0f14d85e953695a.webp?v=1751616305","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f091f73b9f0e44d47f346138bf1f4860862b700e.webp?v=1751616305","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b69e32ef87c9a95a1369bc68ab43e8f436af035e.webp?v=1751616306","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea5ec2e37c58de6e38123d074c60711dec88ccca.webp?v=1751616307","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d7f66b748a10b3d77064f9407d3966b989d6e2b.webp?v=1751616307","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7b2840db693f6f21ee51803cf4009ba5e9b2ac1.webp?v=1751616308"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3b4e1bc75569c053e15ce22cadd93247edd8433.webp?v=1751616302","options":["color"],"media":[{"alt":null,"id":25774731067491,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3b4e1bc75569c053e15ce22cadd93247edd8433.webp?v=1751616302"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3b4e1bc75569c053e15ce22cadd93247edd8433.webp?v=1751616302","width":2000},{"alt":null,"id":25774731264099,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/014e3dfa1d221f0c283165ec3bdefde78dda530a.webp?v=1751616303"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/014e3dfa1d221f0c283165ec3bdefde78dda530a.webp?v=1751616303","width":2000},{"alt":null,"id":25774731395171,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd9fd90310404f19f8f8433fa4b6dd18050b86f8.webp?v=1751616303"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd9fd90310404f19f8f8433fa4b6dd18050b86f8.webp?v=1751616303","width":2000},{"alt":null,"id":25774731591779,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/942938bab1e88b36bd8098b3a0e48b3bc9a1000b.webp?v=1751616304"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/942938bab1e88b36bd8098b3a0e48b3bc9a1000b.webp?v=1751616304","width":2000},{"alt":null,"id":25774731788387,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8aa688a211b6b7dc846ad40f8a94f34174e2e8c.webp?v=1751616304"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8aa688a211b6b7dc846ad40f8a94f34174e2e8c.webp?v=1751616304","width":2000},{"alt":null,"id":25774731919459,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b40aa2a725a97ef31b67aacda0f14d85e953695a.webp?v=1751616305"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b40aa2a725a97ef31b67aacda0f14d85e953695a.webp?v=1751616305","width":2000},{"alt":null,"id":25774732017763,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f091f73b9f0e44d47f346138bf1f4860862b700e.webp?v=1751616305"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f091f73b9f0e44d47f346138bf1f4860862b700e.webp?v=1751616305","width":2000},{"alt":null,"id":25774732148835,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b69e32ef87c9a95a1369bc68ab43e8f436af035e.webp?v=1751616306"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b69e32ef87c9a95a1369bc68ab43e8f436af035e.webp?v=1751616306","width":2000},{"alt":null,"id":25774732378211,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea5ec2e37c58de6e38123d074c60711dec88ccca.webp?v=1751616307"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea5ec2e37c58de6e38123d074c60711dec88ccca.webp?v=1751616307","width":2000},{"alt":null,"id":25774732476515,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d7f66b748a10b3d77064f9407d3966b989d6e2b.webp?v=1751616307"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d7f66b748a10b3d77064f9407d3966b989d6e2b.webp?v=1751616307","width":2000},{"alt":null,"id":25774732640355,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7b2840db693f6f21ee51803cf4009ba5e9b2ac1.webp?v=1751616308"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7b2840db693f6f21ee51803cf4009ba5e9b2ac1.webp?v=1751616308","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43509123252323,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0123224-JO45","requires_shipping":true,"taxable":true,"featured_image":{"id":34123334746211,"product_id":7831392780387,"position":11,"created_at":"2025-07-04T16:05:06+08:00","updated_at":"2025-07-04T16:05:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7b2840db693f6f21ee51803cf4009ba5e9b2ac1.webp?v=1751616308","variant_ids":[43509123252323]},"available":true,"name":"iPhone 13 Pro Max Mod NX (MagSafe 兼容) KID Outdoor滿版圖騰 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-JO45","featured_media":{"alt":null,"id":25774732640355,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7b2840db693f6f21ee51803cf4009ba5e9b2ac1.webp?v=1751616308"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43509123285091,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01232J5-JO45","requires_shipping":true,"taxable":true,"featured_image":{"id":34123333730403,"product_id":7831392780387,"position":7,"created_at":"2025-07-04T16:05:03+08:00","updated_at":"2025-07-04T16:05:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f091f73b9f0e44d47f346138bf1f4860862b700e.webp?v=1751616305","variant_ids":[43509123285091]},"available":true,"name":"iPhone 13 Pro Max Mod NX (MagSafe 兼容) KID Outdoor滿版圖騰 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-JO45","featured_media":{"alt":null,"id":25774732017763,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f091f73b9f0e44d47f346138bf1f4860862b700e.webp?v=1751616305"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43509123252323,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0123224-JO45","requires_shipping":true,"taxable":true,"featured_image":{"id":34123334746211,"product_id":7831392780387,"position":11,"created_at":"2025-07-04T16:05:06+08:00","updated_at":"2025-07-04T16:05:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7b2840db693f6f21ee51803cf4009ba5e9b2ac1.webp?v=1751616308","variant_ids":[43509123252323]},"available":true,"name":"iPhone 13 Pro Max Mod NX (MagSafe 兼容) KID Outdoor滿版圖騰 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-JO45","featured_media":{"alt":null,"id":25774732640355,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7b2840db693f6f21ee51803cf4009ba5e9b2ac1.webp?v=1751616308"}},"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: "停產" }