$product = {"id":7937875312739,"title":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan 進擊的巨人","handle":"iphone-12-pro-mod-nx-magsafe-xu08","description":null,"published_at":"2025-12-12T10:42:15+08:00","created_at":"2025-12-11T15:47:55+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-attack-on-titan","device-iPhone 12 Pro","merge","reseller-attack-on-titan"],"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":43884239356003,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-XU08","requires_shipping":true,"taxable":true,"featured_image":{"id":34932905017443,"product_id":7937875312739,"position":3,"created_at":"2025-12-11T15:48:00+08:00","updated_at":"2025-12-11T15:48:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8adacc2e017b38a546a9ed7490c736349ebc3da.webp?v=1765439282","variant_ids":[43884239356003]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan 進擊的巨人 - Lavender","public_title":"Lavender","options":["Lavender"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01185C1-XU08","featured_media":{"alt":null,"id":26495276777571,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8adacc2e017b38a546a9ed7490c736349ebc3da.webp?v=1765439282"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43884242927715,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"MPB0118569-XU08","requires_shipping":true,"taxable":true,"featured_image":{"id":34932904591459,"product_id":7937875312739,"position":1,"created_at":"2025-12-11T15:47:59+08:00","updated_at":"2025-12-11T15:48:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecd566c54935c2b02ad32d6bf9794e9d70590d20.webp?v=1765439281","variant_ids":[43884242927715]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan 進擊的巨人 - Graphite","public_title":"Graphite","options":["Graphite"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118569-XU08","featured_media":{"alt":null,"id":26495276351587,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecd566c54935c2b02ad32d6bf9794e9d70590d20.webp?v=1765439281"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43884243091555,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118524-XU08","requires_shipping":true,"taxable":true,"featured_image":{"id":34932906721379,"product_id":7937875312739,"position":11,"created_at":"2025-12-11T15:48:05+08:00","updated_at":"2025-12-11T15:48:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38a65522c0adfcaab616a45c9c47248644fb37b7.webp?v=1765439287","variant_ids":[43884243091555]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan 進擊的巨人 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118524-XU08","featured_media":{"alt":null,"id":26495278481507,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38a65522c0adfcaab616a45c9c47248644fb37b7.webp?v=1765439287"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43884243157091,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0118504-XU08","requires_shipping":true,"taxable":true,"featured_image":{"id":34932905214051,"product_id":7937875312739,"position":4,"created_at":"2025-12-11T15:48:00+08:00","updated_at":"2025-12-11T15:48:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/287b4480f17667d534b7b626da0f0fd97fa7d49d.webp?v=1765439282","variant_ids":[43884243157091]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan 進擊的巨人 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118504-XU08","featured_media":{"alt":null,"id":26495276974179,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/287b4480f17667d534b7b626da0f0fd97fa7d49d.webp?v=1765439282"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43884243189859,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01185J5-XU08","requires_shipping":true,"taxable":true,"featured_image":{"id":34932906098787,"product_id":7937875312739,"position":8,"created_at":"2025-12-11T15:48:04+08:00","updated_at":"2025-12-11T15:48:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e214a456ffdcf61801da9848a1232a5dfff7b3c0.webp?v=1765439286","variant_ids":[43884243189859]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan 進擊的巨人 - 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":"MPB01185J5-XU08","featured_media":{"alt":null,"id":26495277858915,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e214a456ffdcf61801da9848a1232a5dfff7b3c0.webp?v=1765439286"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecd566c54935c2b02ad32d6bf9794e9d70590d20.webp?v=1765439281","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/deab7c0c2acf3573f5a11e1b3b902c2ff6eb6c5c.webp?v=1765439281","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8adacc2e017b38a546a9ed7490c736349ebc3da.webp?v=1765439282","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/287b4480f17667d534b7b626da0f0fd97fa7d49d.webp?v=1765439282","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a7f3fe9c69e31455ae901e882b0842ee0818fcc.webp?v=1765439283","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73156ca21b5f5bc16c4580d382309bbe0c1a6343.webp?v=1765439283","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1792d16f3ad60a9e42ae8cb9909521bdd5327539.webp?v=1765439286","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e214a456ffdcf61801da9848a1232a5dfff7b3c0.webp?v=1765439286","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/646e35a8f0c246bb18397445cb823d1c866a5874.webp?v=1765439286","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8512896191a2541b504621fe259e8da201be4765.webp?v=1765439287","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38a65522c0adfcaab616a45c9c47248644fb37b7.webp?v=1765439287"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecd566c54935c2b02ad32d6bf9794e9d70590d20.webp?v=1765439281","options":["color"],"media":[{"alt":null,"id":26495276351587,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecd566c54935c2b02ad32d6bf9794e9d70590d20.webp?v=1765439281"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecd566c54935c2b02ad32d6bf9794e9d70590d20.webp?v=1765439281","width":2000},{"alt":null,"id":26495276580963,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/deab7c0c2acf3573f5a11e1b3b902c2ff6eb6c5c.webp?v=1765439281"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/deab7c0c2acf3573f5a11e1b3b902c2ff6eb6c5c.webp?v=1765439281","width":2000},{"alt":null,"id":26495276777571,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8adacc2e017b38a546a9ed7490c736349ebc3da.webp?v=1765439282"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8adacc2e017b38a546a9ed7490c736349ebc3da.webp?v=1765439282","width":2000},{"alt":null,"id":26495276974179,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/287b4480f17667d534b7b626da0f0fd97fa7d49d.webp?v=1765439282"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/287b4480f17667d534b7b626da0f0fd97fa7d49d.webp?v=1765439282","width":2000},{"alt":null,"id":26495277170787,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a7f3fe9c69e31455ae901e882b0842ee0818fcc.webp?v=1765439283"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a7f3fe9c69e31455ae901e882b0842ee0818fcc.webp?v=1765439283","width":2000},{"alt":null,"id":26495277334627,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73156ca21b5f5bc16c4580d382309bbe0c1a6343.webp?v=1765439283"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73156ca21b5f5bc16c4580d382309bbe0c1a6343.webp?v=1765439283","width":2000},{"alt":null,"id":26495277465699,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1792d16f3ad60a9e42ae8cb9909521bdd5327539.webp?v=1765439286"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1792d16f3ad60a9e42ae8cb9909521bdd5327539.webp?v=1765439286","width":2000},{"alt":null,"id":26495277858915,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e214a456ffdcf61801da9848a1232a5dfff7b3c0.webp?v=1765439286"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e214a456ffdcf61801da9848a1232a5dfff7b3c0.webp?v=1765439286","width":2000},{"alt":null,"id":26495278121059,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/646e35a8f0c246bb18397445cb823d1c866a5874.webp?v=1765439286"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/646e35a8f0c246bb18397445cb823d1c866a5874.webp?v=1765439286","width":2000},{"alt":null,"id":26495278350435,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8512896191a2541b504621fe259e8da201be4765.webp?v=1765439287"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8512896191a2541b504621fe259e8da201be4765.webp?v=1765439287","width":2000},{"alt":null,"id":26495278481507,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38a65522c0adfcaab616a45c9c47248644fb37b7.webp?v=1765439287"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38a65522c0adfcaab616a45c9c47248644fb37b7.webp?v=1765439287","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43884239356003,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-XU08","requires_shipping":true,"taxable":true,"featured_image":{"id":34932905017443,"product_id":7937875312739,"position":3,"created_at":"2025-12-11T15:48:00+08:00","updated_at":"2025-12-11T15:48:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8adacc2e017b38a546a9ed7490c736349ebc3da.webp?v=1765439282","variant_ids":[43884239356003]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan 進擊的巨人 - Lavender","public_title":"Lavender","options":["Lavender"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01185C1-XU08","featured_media":{"alt":null,"id":26495276777571,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8adacc2e017b38a546a9ed7490c736349ebc3da.webp?v=1765439282"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43884242927715,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"MPB0118569-XU08","requires_shipping":true,"taxable":true,"featured_image":{"id":34932904591459,"product_id":7937875312739,"position":1,"created_at":"2025-12-11T15:47:59+08:00","updated_at":"2025-12-11T15:48:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecd566c54935c2b02ad32d6bf9794e9d70590d20.webp?v=1765439281","variant_ids":[43884242927715]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan 進擊的巨人 - Graphite","public_title":"Graphite","options":["Graphite"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118569-XU08","featured_media":{"alt":null,"id":26495276351587,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecd566c54935c2b02ad32d6bf9794e9d70590d20.webp?v=1765439281"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43884243091555,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118524-XU08","requires_shipping":true,"taxable":true,"featured_image":{"id":34932906721379,"product_id":7937875312739,"position":11,"created_at":"2025-12-11T15:48:05+08:00","updated_at":"2025-12-11T15:48:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38a65522c0adfcaab616a45c9c47248644fb37b7.webp?v=1765439287","variant_ids":[43884243091555]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan 進擊的巨人 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118524-XU08","featured_media":{"alt":null,"id":26495278481507,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38a65522c0adfcaab616a45c9c47248644fb37b7.webp?v=1765439287"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43884243157091,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0118504-XU08","requires_shipping":true,"taxable":true,"featured_image":{"id":34932905214051,"product_id":7937875312739,"position":4,"created_at":"2025-12-11T15:48:00+08:00","updated_at":"2025-12-11T15:48:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/287b4480f17667d534b7b626da0f0fd97fa7d49d.webp?v=1765439282","variant_ids":[43884243157091]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan 進擊的巨人 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118504-XU08","featured_media":{"alt":null,"id":26495276974179,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/287b4480f17667d534b7b626da0f0fd97fa7d49d.webp?v=1765439282"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43884243189859,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01185J5-XU08","requires_shipping":true,"taxable":true,"featured_image":{"id":34932906098787,"product_id":7937875312739,"position":8,"created_at":"2025-12-11T15:48:04+08:00","updated_at":"2025-12-11T15:48:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e214a456ffdcf61801da9848a1232a5dfff7b3c0.webp?v=1765439286","variant_ids":[43884243189859]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan 進擊的巨人 - 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":"MPB01185J5-XU08","featured_media":{"alt":null,"id":26495277858915,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e214a456ffdcf61801da9848a1232a5dfff7b3c0.webp?v=1765439286"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43884239356003,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-XU08","requires_shipping":true,"taxable":true,"featured_image":{"id":34932905017443,"product_id":7937875312739,"position":3,"created_at":"2025-12-11T15:48:00+08:00","updated_at":"2025-12-11T15:48:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8adacc2e017b38a546a9ed7490c736349ebc3da.webp?v=1765439282","variant_ids":[43884239356003]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan 進擊的巨人 - Lavender","public_title":"Lavender","options":["Lavender"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01185C1-XU08","featured_media":{"alt":null,"id":26495276777571,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8adacc2e017b38a546a9ed7490c736349ebc3da.webp?v=1765439282"}},"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: "停產" }