$product = {"id":7823854272611,"title":"iPhone 15 Pro Max SolidX Harry Potter 閃電與眼鏡圖案","handle":"iphone-15-pro-max-solidx-oo13","description":null,"published_at":"2025-07-01T19:06:57+08:00","created_at":"2025-06-20T10:32:48+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-harry-potter","device-iPhone 15 Pro Max","merge","reseller-harry-potter"],"price":125000,"price_min":125000,"price_max":125000,"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":43473696587875,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129852-OO13","requires_shipping":true,"taxable":true,"featured_image":{"id":36478158078051,"product_id":7823854272611,"position":12,"created_at":"2026-08-04T12:10:22+08:00","updated_at":"2026-08-04T12:10:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf11ba87d51ec22d5d470fcd2c4d8f64187384eb_11efe69a-fc8d-40c6-b73e-8bdb4d90c4a4.webp?v=1785816624","variant_ids":[43473696587875]},"available":true,"name":"iPhone 15 Pro Max SolidX Harry Potter 閃電與眼鏡圖案 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129852-OO13","featured_media":{"alt":null,"id":27981493469283,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf11ba87d51ec22d5d470fcd2c4d8f64187384eb_11efe69a-fc8d-40c6-b73e-8bdb4d90c4a4.webp?v=1785816624"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43473699995747,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NST0129853-OO13","requires_shipping":true,"taxable":true,"featured_image":{"id":36478158241891,"product_id":7823854272611,"position":13,"created_at":"2026-08-04T12:10:22+08:00","updated_at":"2026-08-04T12:10:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7011f1589f07d53ebe6bc63fa44782ac2f069cf2_7d49604d-005e-4c83-b347-992da1017e73.webp?v=1785816624","variant_ids":[43473699995747]},"available":true,"name":"iPhone 15 Pro Max SolidX Harry Potter 閃電與眼鏡圖案 - White","public_title":"White","options":["White"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129853-OO13","featured_media":{"alt":null,"id":27981493698659,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7011f1589f07d53ebe6bc63fa44782ac2f069cf2_7d49604d-005e-4c83-b347-992da1017e73.webp?v=1785816624"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-298-OO13.png?v=1750386770","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-OO13_84ef213a-6a01-420d-93fb-726fbeb04e0f.png?v=1750832163","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1055f32fd38068b1b266befa896d2882fab4dbc8.webp?v=1782980370","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36576aa09e52af50df58f340c5ff1ed59b2ae801.webp?v=1782980370","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac8144508ab301776f0975c9af1c7367ba28050a.webp?v=1782980371","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf11ba87d51ec22d5d470fcd2c4d8f64187384eb.webp?v=1782980372","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/caaf29cfbd1513a612bf2babc7c3706779e44d35.webp?v=1782980372","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7011f1589f07d53ebe6bc63fa44782ac2f069cf2.webp?v=1782980373","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/426ece83a7e72f4a9bf4b7e8cac5e12b7c9db062.webp?v=1782980373","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36576aa09e52af50df58f340c5ff1ed59b2ae801_b412a18d-96cf-45e7-a982-302c6ddcddda.webp?v=1785816623","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac8144508ab301776f0975c9af1c7367ba28050a_3eec0cc6-bd56-4aa8-a705-7dcbb02a0160.webp?v=1785816623","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf11ba87d51ec22d5d470fcd2c4d8f64187384eb_11efe69a-fc8d-40c6-b73e-8bdb4d90c4a4.webp?v=1785816624","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7011f1589f07d53ebe6bc63fa44782ac2f069cf2_7d49604d-005e-4c83-b347-992da1017e73.webp?v=1785816624","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1055f32fd38068b1b266befa896d2882fab4dbc8_b41ef92b-4b8a-4146-8f55-cf2a0ec9eae9.webp?v=1785816625"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-298-OO13.png?v=1750386770","options":["color"],"media":[{"alt":null,"id":25720426987619,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-298-OO13.png?v=1750386770"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-298-OO13.png?v=1750386770","width":2000},{"alt":null,"id":25736346402915,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-OO13_84ef213a-6a01-420d-93fb-726fbeb04e0f.png?v=1750832163"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-OO13_84ef213a-6a01-420d-93fb-726fbeb04e0f.png?v=1750832163","width":2000},{"alt":null,"id":27660170625123,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1055f32fd38068b1b266befa896d2882fab4dbc8.webp?v=1782980370"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1055f32fd38068b1b266befa896d2882fab4dbc8.webp?v=1782980370","width":2000},{"alt":null,"id":27660170854499,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36576aa09e52af50df58f340c5ff1ed59b2ae801.webp?v=1782980370"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36576aa09e52af50df58f340c5ff1ed59b2ae801.webp?v=1782980370","width":2000},{"alt":null,"id":27660171083875,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac8144508ab301776f0975c9af1c7367ba28050a.webp?v=1782980371"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac8144508ab301776f0975c9af1c7367ba28050a.webp?v=1782980371","width":2000},{"alt":null,"id":27660171346019,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf11ba87d51ec22d5d470fcd2c4d8f64187384eb.webp?v=1782980372"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf11ba87d51ec22d5d470fcd2c4d8f64187384eb.webp?v=1782980372","width":2000},{"alt":null,"id":27660171608163,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/caaf29cfbd1513a612bf2babc7c3706779e44d35.webp?v=1782980372"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/caaf29cfbd1513a612bf2babc7c3706779e44d35.webp?v=1782980372","width":2000},{"alt":null,"id":27660171870307,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7011f1589f07d53ebe6bc63fa44782ac2f069cf2.webp?v=1782980373"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7011f1589f07d53ebe6bc63fa44782ac2f069cf2.webp?v=1782980373","width":2000},{"alt":null,"id":27660172197987,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/426ece83a7e72f4a9bf4b7e8cac5e12b7c9db062.webp?v=1782980373"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/426ece83a7e72f4a9bf4b7e8cac5e12b7c9db062.webp?v=1782980373","width":2000},{"alt":null,"id":27981493174371,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36576aa09e52af50df58f340c5ff1ed59b2ae801_b412a18d-96cf-45e7-a982-302c6ddcddda.webp?v=1785816623"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36576aa09e52af50df58f340c5ff1ed59b2ae801_b412a18d-96cf-45e7-a982-302c6ddcddda.webp?v=1785816623","width":2000},{"alt":null,"id":27981493338211,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac8144508ab301776f0975c9af1c7367ba28050a_3eec0cc6-bd56-4aa8-a705-7dcbb02a0160.webp?v=1785816623"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac8144508ab301776f0975c9af1c7367ba28050a_3eec0cc6-bd56-4aa8-a705-7dcbb02a0160.webp?v=1785816623","width":2000},{"alt":null,"id":27981493469283,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf11ba87d51ec22d5d470fcd2c4d8f64187384eb_11efe69a-fc8d-40c6-b73e-8bdb4d90c4a4.webp?v=1785816624"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf11ba87d51ec22d5d470fcd2c4d8f64187384eb_11efe69a-fc8d-40c6-b73e-8bdb4d90c4a4.webp?v=1785816624","width":2000},{"alt":null,"id":27981493698659,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7011f1589f07d53ebe6bc63fa44782ac2f069cf2_7d49604d-005e-4c83-b347-992da1017e73.webp?v=1785816624"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7011f1589f07d53ebe6bc63fa44782ac2f069cf2_7d49604d-005e-4c83-b347-992da1017e73.webp?v=1785816624","width":2000},{"alt":null,"id":27981493928035,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1055f32fd38068b1b266befa896d2882fab4dbc8_b41ef92b-4b8a-4146-8f55-cf2a0ec9eae9.webp?v=1785816625"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1055f32fd38068b1b266befa896d2882fab4dbc8_b41ef92b-4b8a-4146-8f55-cf2a0ec9eae9.webp?v=1785816625","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43473696587875,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129852-OO13","requires_shipping":true,"taxable":true,"featured_image":{"id":36478158078051,"product_id":7823854272611,"position":12,"created_at":"2026-08-04T12:10:22+08:00","updated_at":"2026-08-04T12:10:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf11ba87d51ec22d5d470fcd2c4d8f64187384eb_11efe69a-fc8d-40c6-b73e-8bdb4d90c4a4.webp?v=1785816624","variant_ids":[43473696587875]},"available":true,"name":"iPhone 15 Pro Max SolidX Harry Potter 閃電與眼鏡圖案 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129852-OO13","featured_media":{"alt":null,"id":27981493469283,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf11ba87d51ec22d5d470fcd2c4d8f64187384eb_11efe69a-fc8d-40c6-b73e-8bdb4d90c4a4.webp?v=1785816624"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43473699995747,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NST0129853-OO13","requires_shipping":true,"taxable":true,"featured_image":{"id":36478158241891,"product_id":7823854272611,"position":13,"created_at":"2026-08-04T12:10:22+08:00","updated_at":"2026-08-04T12:10:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7011f1589f07d53ebe6bc63fa44782ac2f069cf2_7d49604d-005e-4c83-b347-992da1017e73.webp?v=1785816624","variant_ids":[43473699995747]},"available":true,"name":"iPhone 15 Pro Max SolidX Harry Potter 閃電與眼鏡圖案 - White","public_title":"White","options":["White"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129853-OO13","featured_media":{"alt":null,"id":27981493698659,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7011f1589f07d53ebe6bc63fa44782ac2f069cf2_7d49604d-005e-4c83-b347-992da1017e73.webp?v=1785816624"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43473696587875,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129852-OO13","requires_shipping":true,"taxable":true,"featured_image":{"id":36478158078051,"product_id":7823854272611,"position":12,"created_at":"2026-08-04T12:10:22+08:00","updated_at":"2026-08-04T12:10:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf11ba87d51ec22d5d470fcd2c4d8f64187384eb_11efe69a-fc8d-40c6-b73e-8bdb4d90c4a4.webp?v=1785816624","variant_ids":[43473696587875]},"available":true,"name":"iPhone 15 Pro Max SolidX Harry Potter 閃電與眼鏡圖案 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129852-OO13","featured_media":{"alt":null,"id":27981493469283,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf11ba87d51ec22d5d470fcd2c4d8f64187384eb_11efe69a-fc8d-40c6-b73e-8bdb4d90c4a4.webp?v=1785816624"}},"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: "停產" }