$product = {"id":7931234123875,"title":"iPhone 13 Pro Max Mod NX (MagSafe 兼容) 白白日記 By Darylhochi Um...","handle":"iphone-13-pro-max-mod-nx-magsafe-ei82","description":null,"published_at":"2025-11-28T11:10:22+08:00","created_at":"2025-11-28T09:37:03+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-darylhochi","device-iPhone 13 Pro Max","merge","reseller-darylhochi"],"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":43860684931171,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0123224-EI82","requires_shipping":true,"taxable":true,"featured_image":{"id":34861444005987,"product_id":7931234123875,"position":12,"created_at":"2025-11-28T10:01:07+08:00","updated_at":"2025-11-28T10:01:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/104b9991801df9e20efc834698de673e78e4f8c7_56ed02a3-62af-4f46-839f-c1a5d555f82d.webp?v=1764295269","variant_ids":[43860684931171]},"available":true,"name":"iPhone 13 Pro Max Mod NX (MagSafe 兼容) 白白日記 By Darylhochi Um... - 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-EI82","featured_media":{"alt":null,"id":26425863635043,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/104b9991801df9e20efc834698de673e78e4f8c7_56ed02a3-62af-4f46-839f-c1a5d555f82d.webp?v=1764295269"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43860685127779,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01232J5-EI82","requires_shipping":true,"taxable":true,"featured_image":{"id":34861444792419,"product_id":7931234123875,"position":19,"created_at":"2025-11-28T10:01:10+08:00","updated_at":"2025-11-28T10:01:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/765a553a89ffa892b4edc446bebf286eb21df2a0_29cbfa6b-917a-4d3c-84d4-cb0371603b22.webp?v=1764295272","variant_ids":[43860685127779]},"available":true,"name":"iPhone 13 Pro Max Mod NX (MagSafe 兼容) 白白日記 By Darylhochi Um... - 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-EI82","featured_media":{"alt":null,"id":26425864421475,"position":19,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/765a553a89ffa892b4edc446bebf286eb21df2a0_29cbfa6b-917a-4d3c-84d4-cb0371603b22.webp?v=1764295272"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/311b8f872fb3081633849f3709d03c115d07c47c.webp?v=1764293828","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0050ebdb96c088207b6c9a0ce9f9df1bed438f53.webp?v=1764293829","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3da914d3fe78419392dfd5086ab020944dbb69e.webp?v=1764293829","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4dcbb2349bea7a983636a4522e50b8b7192c995f.webp?v=1764293830","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/104b9991801df9e20efc834698de673e78e4f8c7.webp?v=1764293830","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2232aa70802ca7c8e713262c7d69ea9454f48f8f.webp?v=1764293831","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d426cac8b6366231ef24f513841647410d6f060.webp?v=1764293831","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/765a553a89ffa892b4edc446bebf286eb21df2a0.webp?v=1764293832","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a24cb6debdc362030cea585f4ad953de2817ae12.webp?v=1764293832","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed6a6fe9265ad8ab0505f25f7f29637f583f0327.webp?v=1764293833","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a24cb6debdc362030cea585f4ad953de2817ae12_478f5e58-5773-48a2-a894-0ee313d29129.webp?v=1764295268","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/104b9991801df9e20efc834698de673e78e4f8c7_56ed02a3-62af-4f46-839f-c1a5d555f82d.webp?v=1764295269","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed6a6fe9265ad8ab0505f25f7f29637f583f0327_79280bf3-ff1b-48d7-b9ab-99bd6b9a3edd.webp?v=1764295269","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/311b8f872fb3081633849f3709d03c115d07c47c_d323d9a7-4c47-4db4-9b3f-efe653179e51.webp?v=1764295270","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4dcbb2349bea7a983636a4522e50b8b7192c995f_f4ae28b9-634f-4dfa-ab0a-84de4a072543.webp?v=1764295270","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d426cac8b6366231ef24f513841647410d6f060_03038a47-4143-447a-8652-582b9f8340df.webp?v=1764295270","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3da914d3fe78419392dfd5086ab020944dbb69e_d8adcda7-1073-4b39-83fc-c28c9243b8d6.webp?v=1764295271","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2232aa70802ca7c8e713262c7d69ea9454f48f8f_fdcd9dd3-a5ab-4ead-9bdf-8151a2240bc3.webp?v=1764295272","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/765a553a89ffa892b4edc446bebf286eb21df2a0_29cbfa6b-917a-4d3c-84d4-cb0371603b22.webp?v=1764295272","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0050ebdb96c088207b6c9a0ce9f9df1bed438f53_9191df0f-bad7-404d-9ce1-a9e780d00774.webp?v=1764295273"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/311b8f872fb3081633849f3709d03c115d07c47c.webp?v=1764293828","options":["color"],"media":[{"alt":null,"id":26425638486115,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/311b8f872fb3081633849f3709d03c115d07c47c.webp?v=1764293828"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/311b8f872fb3081633849f3709d03c115d07c47c.webp?v=1764293828","width":2000},{"alt":null,"id":26425638781027,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0050ebdb96c088207b6c9a0ce9f9df1bed438f53.webp?v=1764293829"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0050ebdb96c088207b6c9a0ce9f9df1bed438f53.webp?v=1764293829","width":2000},{"alt":null,"id":26425639108707,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3da914d3fe78419392dfd5086ab020944dbb69e.webp?v=1764293829"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3da914d3fe78419392dfd5086ab020944dbb69e.webp?v=1764293829","width":2000},{"alt":null,"id":26425639501923,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4dcbb2349bea7a983636a4522e50b8b7192c995f.webp?v=1764293830"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4dcbb2349bea7a983636a4522e50b8b7192c995f.webp?v=1764293830","width":2000},{"alt":null,"id":26425639796835,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/104b9991801df9e20efc834698de673e78e4f8c7.webp?v=1764293830"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/104b9991801df9e20efc834698de673e78e4f8c7.webp?v=1764293830","width":2000},{"alt":null,"id":26425640190051,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2232aa70802ca7c8e713262c7d69ea9454f48f8f.webp?v=1764293831"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2232aa70802ca7c8e713262c7d69ea9454f48f8f.webp?v=1764293831","width":2000},{"alt":null,"id":26425640419427,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d426cac8b6366231ef24f513841647410d6f060.webp?v=1764293831"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d426cac8b6366231ef24f513841647410d6f060.webp?v=1764293831","width":2000},{"alt":null,"id":26425640550499,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/765a553a89ffa892b4edc446bebf286eb21df2a0.webp?v=1764293832"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/765a553a89ffa892b4edc446bebf286eb21df2a0.webp?v=1764293832","width":2000},{"alt":null,"id":26425640714339,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a24cb6debdc362030cea585f4ad953de2817ae12.webp?v=1764293832"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a24cb6debdc362030cea585f4ad953de2817ae12.webp?v=1764293832","width":2000},{"alt":null,"id":26425641009251,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed6a6fe9265ad8ab0505f25f7f29637f583f0327.webp?v=1764293833"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed6a6fe9265ad8ab0505f25f7f29637f583f0327.webp?v=1764293833","width":2000},{"alt":null,"id":26425863307363,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a24cb6debdc362030cea585f4ad953de2817ae12_478f5e58-5773-48a2-a894-0ee313d29129.webp?v=1764295268"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a24cb6debdc362030cea585f4ad953de2817ae12_478f5e58-5773-48a2-a894-0ee313d29129.webp?v=1764295268","width":2000},{"alt":null,"id":26425863635043,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/104b9991801df9e20efc834698de673e78e4f8c7_56ed02a3-62af-4f46-839f-c1a5d555f82d.webp?v=1764295269"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/104b9991801df9e20efc834698de673e78e4f8c7_56ed02a3-62af-4f46-839f-c1a5d555f82d.webp?v=1764295269","width":2000},{"alt":null,"id":26425863766115,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed6a6fe9265ad8ab0505f25f7f29637f583f0327_79280bf3-ff1b-48d7-b9ab-99bd6b9a3edd.webp?v=1764295269"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed6a6fe9265ad8ab0505f25f7f29637f583f0327_79280bf3-ff1b-48d7-b9ab-99bd6b9a3edd.webp?v=1764295269","width":2000},{"alt":null,"id":26425863864419,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/311b8f872fb3081633849f3709d03c115d07c47c_d323d9a7-4c47-4db4-9b3f-efe653179e51.webp?v=1764295270"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/311b8f872fb3081633849f3709d03c115d07c47c_d323d9a7-4c47-4db4-9b3f-efe653179e51.webp?v=1764295270","width":2000},{"alt":null,"id":26425864028259,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4dcbb2349bea7a983636a4522e50b8b7192c995f_f4ae28b9-634f-4dfa-ab0a-84de4a072543.webp?v=1764295270"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4dcbb2349bea7a983636a4522e50b8b7192c995f_f4ae28b9-634f-4dfa-ab0a-84de4a072543.webp?v=1764295270","width":2000},{"alt":null,"id":26425864093795,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d426cac8b6366231ef24f513841647410d6f060_03038a47-4143-447a-8652-582b9f8340df.webp?v=1764295270"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d426cac8b6366231ef24f513841647410d6f060_03038a47-4143-447a-8652-582b9f8340df.webp?v=1764295270","width":2000},{"alt":null,"id":26425864224867,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3da914d3fe78419392dfd5086ab020944dbb69e_d8adcda7-1073-4b39-83fc-c28c9243b8d6.webp?v=1764295271"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3da914d3fe78419392dfd5086ab020944dbb69e_d8adcda7-1073-4b39-83fc-c28c9243b8d6.webp?v=1764295271","width":2000},{"alt":null,"id":26425864388707,"position":18,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2232aa70802ca7c8e713262c7d69ea9454f48f8f_fdcd9dd3-a5ab-4ead-9bdf-8151a2240bc3.webp?v=1764295272"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2232aa70802ca7c8e713262c7d69ea9454f48f8f_fdcd9dd3-a5ab-4ead-9bdf-8151a2240bc3.webp?v=1764295272","width":2000},{"alt":null,"id":26425864421475,"position":19,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/765a553a89ffa892b4edc446bebf286eb21df2a0_29cbfa6b-917a-4d3c-84d4-cb0371603b22.webp?v=1764295272"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/765a553a89ffa892b4edc446bebf286eb21df2a0_29cbfa6b-917a-4d3c-84d4-cb0371603b22.webp?v=1764295272","width":2000},{"alt":null,"id":26425864487011,"position":20,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0050ebdb96c088207b6c9a0ce9f9df1bed438f53_9191df0f-bad7-404d-9ce1-a9e780d00774.webp?v=1764295273"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0050ebdb96c088207b6c9a0ce9f9df1bed438f53_9191df0f-bad7-404d-9ce1-a9e780d00774.webp?v=1764295273","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43860684931171,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0123224-EI82","requires_shipping":true,"taxable":true,"featured_image":{"id":34861444005987,"product_id":7931234123875,"position":12,"created_at":"2025-11-28T10:01:07+08:00","updated_at":"2025-11-28T10:01:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/104b9991801df9e20efc834698de673e78e4f8c7_56ed02a3-62af-4f46-839f-c1a5d555f82d.webp?v=1764295269","variant_ids":[43860684931171]},"available":true,"name":"iPhone 13 Pro Max Mod NX (MagSafe 兼容) 白白日記 By Darylhochi Um... - 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-EI82","featured_media":{"alt":null,"id":26425863635043,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/104b9991801df9e20efc834698de673e78e4f8c7_56ed02a3-62af-4f46-839f-c1a5d555f82d.webp?v=1764295269"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43860685127779,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01232J5-EI82","requires_shipping":true,"taxable":true,"featured_image":{"id":34861444792419,"product_id":7931234123875,"position":19,"created_at":"2025-11-28T10:01:10+08:00","updated_at":"2025-11-28T10:01:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/765a553a89ffa892b4edc446bebf286eb21df2a0_29cbfa6b-917a-4d3c-84d4-cb0371603b22.webp?v=1764295272","variant_ids":[43860685127779]},"available":true,"name":"iPhone 13 Pro Max Mod NX (MagSafe 兼容) 白白日記 By Darylhochi Um... - 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-EI82","featured_media":{"alt":null,"id":26425864421475,"position":19,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/765a553a89ffa892b4edc446bebf286eb21df2a0_29cbfa6b-917a-4d3c-84d4-cb0371603b22.webp?v=1764295272"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43860684931171,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0123224-EI82","requires_shipping":true,"taxable":true,"featured_image":{"id":34861444005987,"product_id":7931234123875,"position":12,"created_at":"2025-11-28T10:01:07+08:00","updated_at":"2025-11-28T10:01:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/104b9991801df9e20efc834698de673e78e4f8c7_56ed02a3-62af-4f46-839f-c1a5d555f82d.webp?v=1764295269","variant_ids":[43860684931171]},"available":true,"name":"iPhone 13 Pro Max Mod NX (MagSafe 兼容) 白白日記 By Darylhochi Um... - 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-EI82","featured_media":{"alt":null,"id":26425863635043,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/104b9991801df9e20efc834698de673e78e4f8c7_56ed02a3-62af-4f46-839f-c1a5d555f82d.webp?v=1764295269"}},"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: "停產" }