$product = {"id":7823817900131,"title":"iPhone 15 Pro Max SolidX ilovedoodle White Cat Flowers - 白貓花朵","handle":"iphone-15-pro-max-solidx-xf49","description":null,"published_at":"2025-07-01T19:12:06+08:00","created_at":"2025-06-20T10:28:44+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-ilovedoodle","device-iPhone 15 Pro Max","merge","reseller-ilovedoodle"],"price":118000,"price_min":118000,"price_max":118000,"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":43473331454051,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129852-XF49","requires_shipping":true,"taxable":true,"featured_image":{"id":34196589150307,"product_id":7823817900131,"position":13,"created_at":"2025-07-16T14:46:47+08:00","updated_at":"2025-07-16T14:46:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/388994c167ac18060325b3aada2aeed066cb0093_aa291056-8d70-4460-a25b-6bf3956d2281.webp?v=1752648409","variant_ids":[43473331454051]},"available":true,"name":"iPhone 15 Pro Max SolidX ilovedoodle White Cat Flowers - 白貓花朵 - Black","public_title":"Black","options":["Black"],"price":118000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129852-XF49","featured_media":{"alt":null,"id":25829436981347,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/388994c167ac18060325b3aada2aeed066cb0093_aa291056-8d70-4460-a25b-6bf3956d2281.webp?v=1752648409"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43473335877731,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012980B-XF49","requires_shipping":true,"taxable":true,"featured_image":{"id":34196592230499,"product_id":7823817900131,"position":19,"created_at":"2025-07-16T14:46:50+08:00","updated_at":"2025-07-16T14:46:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28697a1ce43689f4d7631695e7546af0632c6f8e_3b81fab7-bd42-4c28-b8c6-05e404ecc1c3.webp?v=1752648412","variant_ids":[43473335877731]},"available":true,"name":"iPhone 15 Pro Max SolidX ilovedoodle White Cat Flowers - 白貓花朵 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":118000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST012980B-XF49","featured_media":{"alt":null,"id":25829438488675,"position":19,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28697a1ce43689f4d7631695e7546af0632c6f8e_3b81fab7-bd42-4c28-b8c6-05e404ecc1c3.webp?v=1752648412"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43473335910499,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NST0129853-XF49","requires_shipping":true,"taxable":true,"featured_image":{"id":34196590133347,"product_id":7823817900131,"position":15,"created_at":"2025-07-16T14:46:48+08:00","updated_at":"2025-07-16T14:46:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80a8d82e25aebb9bedd5bbf0c65d6770bb65de6b_fd6bce2a-8623-4a58-8111-fcbff46b83de.webp?v=1752648410","variant_ids":[43473335910499]},"available":true,"name":"iPhone 15 Pro Max SolidX ilovedoodle White Cat Flowers - 白貓花朵 - White","public_title":"White","options":["White"],"price":118000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129853-XF49","featured_media":{"alt":null,"id":25829437538403,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80a8d82e25aebb9bedd5bbf0c65d6770bb65de6b_fd6bce2a-8623-4a58-8111-fcbff46b83de.webp?v=1752648410"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43473335943267,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"NST01298Z8-XF49","requires_shipping":true,"taxable":true,"featured_image":{"id":34196592558179,"product_id":7823817900131,"position":20,"created_at":"2025-07-16T14:46:51+08:00","updated_at":"2025-07-16T14:46:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eae79ae56434c3579197086d43d675228acc7db8_ae495388-fabf-462f-bd9d-421fa9bfa18a.webp?v=1752648413","variant_ids":[43473335943267]},"available":true,"name":"iPhone 15 Pro Max SolidX ilovedoodle White Cat Flowers - 白貓花朵 - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":118000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01298Z8-XF49","featured_media":{"alt":null,"id":25829438980195,"position":20,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eae79ae56434c3579197086d43d675228acc7db8_ae495388-fabf-462f-bd9d-421fa9bfa18a.webp?v=1752648413"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43473335976035,"title":"Ocean Blue","option1":"Ocean Blue","option2":null,"option3":null,"sku":"NST012980A-XF49","requires_shipping":true,"taxable":true,"featured_image":{"id":34196593082467,"product_id":7823817900131,"position":21,"created_at":"2025-07-16T14:46:52+08:00","updated_at":"2025-07-16T14:46:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3f7476e6ea223cff2850ad12f7a66e2c26ce93d_8f2d3fc3-f45f-40f1-8df4-8bcf0e5e0868.webp?v=1752648413","variant_ids":[43473335976035]},"available":true,"name":"iPhone 15 Pro Max SolidX ilovedoodle White Cat Flowers - 白貓花朵 - Ocean Blue","public_title":"Ocean Blue","options":["Ocean Blue"],"price":118000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST012980A-XF49","featured_media":{"alt":null,"id":25829439209571,"position":21,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3f7476e6ea223cff2850ad12f7a66e2c26ce93d_8f2d3fc3-f45f-40f1-8df4-8bcf0e5e0868.webp?v=1752648413"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43473336008803,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"NST01298O8-XF49","requires_shipping":true,"taxable":true,"featured_image":{"id":34196591902819,"product_id":7823817900131,"position":18,"created_at":"2025-07-16T14:46:50+08:00","updated_at":"2025-07-16T14:46:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7da0184761a65fc89df3df52c873d76c23d48e59_fd6b6c18-da52-4312-b8af-ffec563493c5.webp?v=1752648412","variant_ids":[43473336008803]},"available":true,"name":"iPhone 15 Pro Max SolidX ilovedoodle White Cat Flowers - 白貓花朵 - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":118000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01298O8-XF49","featured_media":{"alt":null,"id":25829438324835,"position":18,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7da0184761a65fc89df3df52c873d76c23d48e59_fd6b6c18-da52-4312-b8af-ffec563493c5.webp?v=1752648412"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43473336041571,"title":"Glacier Blue","option1":"Glacier Blue","option2":null,"option3":null,"sku":"NST01298Z7-XF49","requires_shipping":true,"taxable":true,"featured_image":{"id":34196590887011,"product_id":7823817900131,"position":16,"created_at":"2025-07-16T14:46:49+08:00","updated_at":"2025-07-16T14:46:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1378cadb8839a4ad0eb4b867d3abc6e34fdeffaf_2fd59b52-63cd-41f1-b77e-d04b5fafb772.webp?v=1752648411","variant_ids":[43473336041571]},"available":true,"name":"iPhone 15 Pro Max SolidX ilovedoodle White Cat Flowers - 白貓花朵 - Glacier Blue","public_title":"Glacier Blue","options":["Glacier Blue"],"price":118000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01298Z7-XF49","featured_media":{"alt":null,"id":25829437833315,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1378cadb8839a4ad0eb4b867d3abc6e34fdeffaf_2fd59b52-63cd-41f1-b77e-d04b5fafb772.webp?v=1752648411"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43494014845027,"title":"Sage Green","option1":"Sage Green","option2":null,"option3":null,"sku":"NST01298P2-XF49","requires_shipping":true,"taxable":true,"featured_image":{"id":34196589674595,"product_id":7823817900131,"position":14,"created_at":"2025-07-16T14:46:48+08:00","updated_at":"2025-07-16T14:46:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99905a5942540a82db9228dddba1b236d4bfaed5_6687514e-52ce-471a-9d85-457f53aebf7a.webp?v=1752648409","variant_ids":[43494014845027]},"available":true,"name":"iPhone 15 Pro Max SolidX ilovedoodle White Cat Flowers - 白貓花朵 - Sage Green","public_title":"Sage Green","options":["Sage Green"],"price":118000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01298P2-XF49","featured_media":{"alt":null,"id":25829437309027,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99905a5942540a82db9228dddba1b236d4bfaed5_6687514e-52ce-471a-9d85-457f53aebf7a.webp?v=1752648409"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43494014910563,"title":"Blush Pink","option1":"Blush Pink","option2":null,"option3":null,"sku":"NST0129857-XF49","requires_shipping":true,"taxable":true,"featured_image":{"id":34196591476835,"product_id":7823817900131,"position":17,"created_at":"2025-07-16T14:46:49+08:00","updated_at":"2025-07-16T14:46:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ad3ae0825beaf4ad0eac8e6feeb23a5a6f61fde_afbd73a1-4b98-4616-a6f6-ecdb9cfdb7b4.webp?v=1752648411","variant_ids":[43494014910563]},"available":true,"name":"iPhone 15 Pro Max SolidX ilovedoodle White Cat Flowers - 白貓花朵 - Blush Pink","public_title":"Blush Pink","options":["Blush Pink"],"price":118000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129857-XF49","featured_media":{"alt":null,"id":25829438062691,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ad3ae0825beaf4ad0eac8e6feeb23a5a6f61fde_afbd73a1-4b98-4616-a6f6-ecdb9cfdb7b4.webp?v=1752648411"}},"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-XF49.png?v=1750386526","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-XF49_5f0df08f-b121-4ee3-a6ff-21fed822136e.png?v=1750831365","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28697a1ce43689f4d7631695e7546af0632c6f8e.webp?v=1752638629","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eae79ae56434c3579197086d43d675228acc7db8.webp?v=1752638630","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/388994c167ac18060325b3aada2aeed066cb0093.webp?v=1752638631","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1378cadb8839a4ad0eb4b867d3abc6e34fdeffaf.webp?v=1752638631","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ad3ae0825beaf4ad0eac8e6feeb23a5a6f61fde.webp?v=1752638632","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7da0184761a65fc89df3df52c873d76c23d48e59.webp?v=1752638632","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e7efe223a553a8d8261b409f90d83b1625b92f0.webp?v=1752638633","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3f7476e6ea223cff2850ad12f7a66e2c26ce93d.webp?v=1752638634","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80a8d82e25aebb9bedd5bbf0c65d6770bb65de6b.webp?v=1752638635","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99905a5942540a82db9228dddba1b236d4bfaed5.webp?v=1752638635","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/388994c167ac18060325b3aada2aeed066cb0093_aa291056-8d70-4460-a25b-6bf3956d2281.webp?v=1752648409","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99905a5942540a82db9228dddba1b236d4bfaed5_6687514e-52ce-471a-9d85-457f53aebf7a.webp?v=1752648409","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80a8d82e25aebb9bedd5bbf0c65d6770bb65de6b_fd6bce2a-8623-4a58-8111-fcbff46b83de.webp?v=1752648410","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1378cadb8839a4ad0eb4b867d3abc6e34fdeffaf_2fd59b52-63cd-41f1-b77e-d04b5fafb772.webp?v=1752648411","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ad3ae0825beaf4ad0eac8e6feeb23a5a6f61fde_afbd73a1-4b98-4616-a6f6-ecdb9cfdb7b4.webp?v=1752648411","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7da0184761a65fc89df3df52c873d76c23d48e59_fd6b6c18-da52-4312-b8af-ffec563493c5.webp?v=1752648412","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28697a1ce43689f4d7631695e7546af0632c6f8e_3b81fab7-bd42-4c28-b8c6-05e404ecc1c3.webp?v=1752648412","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eae79ae56434c3579197086d43d675228acc7db8_ae495388-fabf-462f-bd9d-421fa9bfa18a.webp?v=1752648413","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3f7476e6ea223cff2850ad12f7a66e2c26ce93d_8f2d3fc3-f45f-40f1-8df4-8bcf0e5e0868.webp?v=1752648413","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e7efe223a553a8d8261b409f90d83b1625b92f0_ca0a411e-e47b-4804-bd55-bc876046c4e5.webp?v=1752648414"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-298-XF49.png?v=1750386526","options":["color"],"media":[{"alt":null,"id":25720383537251,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-298-XF49.png?v=1750386526"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-298-XF49.png?v=1750386526","width":2000},{"alt":null,"id":25736174469219,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-XF49_5f0df08f-b121-4ee3-a6ff-21fed822136e.png?v=1750831365"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-XF49_5f0df08f-b121-4ee3-a6ff-21fed822136e.png?v=1750831365","width":2000},{"alt":null,"id":25828245569635,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28697a1ce43689f4d7631695e7546af0632c6f8e.webp?v=1752638629"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28697a1ce43689f4d7631695e7546af0632c6f8e.webp?v=1752638629","width":2000},{"alt":null,"id":25828246028387,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eae79ae56434c3579197086d43d675228acc7db8.webp?v=1752638630"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eae79ae56434c3579197086d43d675228acc7db8.webp?v=1752638630","width":2000},{"alt":null,"id":25828246257763,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/388994c167ac18060325b3aada2aeed066cb0093.webp?v=1752638631"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/388994c167ac18060325b3aada2aeed066cb0093.webp?v=1752638631","width":2000},{"alt":null,"id":25828246552675,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1378cadb8839a4ad0eb4b867d3abc6e34fdeffaf.webp?v=1752638631"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1378cadb8839a4ad0eb4b867d3abc6e34fdeffaf.webp?v=1752638631","width":2000},{"alt":null,"id":25828246847587,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ad3ae0825beaf4ad0eac8e6feeb23a5a6f61fde.webp?v=1752638632"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ad3ae0825beaf4ad0eac8e6feeb23a5a6f61fde.webp?v=1752638632","width":2000},{"alt":null,"id":25828247011427,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7da0184761a65fc89df3df52c873d76c23d48e59.webp?v=1752638632"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7da0184761a65fc89df3df52c873d76c23d48e59.webp?v=1752638632","width":2000},{"alt":null,"id":25828247142499,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e7efe223a553a8d8261b409f90d83b1625b92f0.webp?v=1752638633"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e7efe223a553a8d8261b409f90d83b1625b92f0.webp?v=1752638633","width":2000},{"alt":null,"id":25828247306339,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3f7476e6ea223cff2850ad12f7a66e2c26ce93d.webp?v=1752638634"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3f7476e6ea223cff2850ad12f7a66e2c26ce93d.webp?v=1752638634","width":2000},{"alt":null,"id":25828247470179,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80a8d82e25aebb9bedd5bbf0c65d6770bb65de6b.webp?v=1752638635"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80a8d82e25aebb9bedd5bbf0c65d6770bb65de6b.webp?v=1752638635","width":2000},{"alt":null,"id":25828247666787,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99905a5942540a82db9228dddba1b236d4bfaed5.webp?v=1752638635"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99905a5942540a82db9228dddba1b236d4bfaed5.webp?v=1752638635","width":2000},{"alt":null,"id":25829436981347,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/388994c167ac18060325b3aada2aeed066cb0093_aa291056-8d70-4460-a25b-6bf3956d2281.webp?v=1752648409"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/388994c167ac18060325b3aada2aeed066cb0093_aa291056-8d70-4460-a25b-6bf3956d2281.webp?v=1752648409","width":2000},{"alt":null,"id":25829437309027,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99905a5942540a82db9228dddba1b236d4bfaed5_6687514e-52ce-471a-9d85-457f53aebf7a.webp?v=1752648409"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99905a5942540a82db9228dddba1b236d4bfaed5_6687514e-52ce-471a-9d85-457f53aebf7a.webp?v=1752648409","width":2000},{"alt":null,"id":25829437538403,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80a8d82e25aebb9bedd5bbf0c65d6770bb65de6b_fd6bce2a-8623-4a58-8111-fcbff46b83de.webp?v=1752648410"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80a8d82e25aebb9bedd5bbf0c65d6770bb65de6b_fd6bce2a-8623-4a58-8111-fcbff46b83de.webp?v=1752648410","width":2000},{"alt":null,"id":25829437833315,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1378cadb8839a4ad0eb4b867d3abc6e34fdeffaf_2fd59b52-63cd-41f1-b77e-d04b5fafb772.webp?v=1752648411"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1378cadb8839a4ad0eb4b867d3abc6e34fdeffaf_2fd59b52-63cd-41f1-b77e-d04b5fafb772.webp?v=1752648411","width":2000},{"alt":null,"id":25829438062691,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ad3ae0825beaf4ad0eac8e6feeb23a5a6f61fde_afbd73a1-4b98-4616-a6f6-ecdb9cfdb7b4.webp?v=1752648411"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ad3ae0825beaf4ad0eac8e6feeb23a5a6f61fde_afbd73a1-4b98-4616-a6f6-ecdb9cfdb7b4.webp?v=1752648411","width":2000},{"alt":null,"id":25829438324835,"position":18,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7da0184761a65fc89df3df52c873d76c23d48e59_fd6b6c18-da52-4312-b8af-ffec563493c5.webp?v=1752648412"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7da0184761a65fc89df3df52c873d76c23d48e59_fd6b6c18-da52-4312-b8af-ffec563493c5.webp?v=1752648412","width":2000},{"alt":null,"id":25829438488675,"position":19,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28697a1ce43689f4d7631695e7546af0632c6f8e_3b81fab7-bd42-4c28-b8c6-05e404ecc1c3.webp?v=1752648412"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28697a1ce43689f4d7631695e7546af0632c6f8e_3b81fab7-bd42-4c28-b8c6-05e404ecc1c3.webp?v=1752648412","width":2000},{"alt":null,"id":25829438980195,"position":20,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eae79ae56434c3579197086d43d675228acc7db8_ae495388-fabf-462f-bd9d-421fa9bfa18a.webp?v=1752648413"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eae79ae56434c3579197086d43d675228acc7db8_ae495388-fabf-462f-bd9d-421fa9bfa18a.webp?v=1752648413","width":2000},{"alt":null,"id":25829439209571,"position":21,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3f7476e6ea223cff2850ad12f7a66e2c26ce93d_8f2d3fc3-f45f-40f1-8df4-8bcf0e5e0868.webp?v=1752648413"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3f7476e6ea223cff2850ad12f7a66e2c26ce93d_8f2d3fc3-f45f-40f1-8df4-8bcf0e5e0868.webp?v=1752648413","width":2000},{"alt":null,"id":25829439537251,"position":22,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e7efe223a553a8d8261b409f90d83b1625b92f0_ca0a411e-e47b-4804-bd55-bc876046c4e5.webp?v=1752648414"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e7efe223a553a8d8261b409f90d83b1625b92f0_ca0a411e-e47b-4804-bd55-bc876046c4e5.webp?v=1752648414","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$bumper = null;
$variants = [{"id":43473331454051,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129852-XF49","requires_shipping":true,"taxable":true,"featured_image":{"id":34196589150307,"product_id":7823817900131,"position":13,"created_at":"2025-07-16T14:46:47+08:00","updated_at":"2025-07-16T14:46:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/388994c167ac18060325b3aada2aeed066cb0093_aa291056-8d70-4460-a25b-6bf3956d2281.webp?v=1752648409","variant_ids":[43473331454051]},"available":true,"name":"iPhone 15 Pro Max SolidX ilovedoodle White Cat Flowers - 白貓花朵 - Black","public_title":"Black","options":["Black"],"price":118000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129852-XF49","featured_media":{"alt":null,"id":25829436981347,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/388994c167ac18060325b3aada2aeed066cb0093_aa291056-8d70-4460-a25b-6bf3956d2281.webp?v=1752648409"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43473335877731,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012980B-XF49","requires_shipping":true,"taxable":true,"featured_image":{"id":34196592230499,"product_id":7823817900131,"position":19,"created_at":"2025-07-16T14:46:50+08:00","updated_at":"2025-07-16T14:46:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28697a1ce43689f4d7631695e7546af0632c6f8e_3b81fab7-bd42-4c28-b8c6-05e404ecc1c3.webp?v=1752648412","variant_ids":[43473335877731]},"available":true,"name":"iPhone 15 Pro Max SolidX ilovedoodle White Cat Flowers - 白貓花朵 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":118000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST012980B-XF49","featured_media":{"alt":null,"id":25829438488675,"position":19,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28697a1ce43689f4d7631695e7546af0632c6f8e_3b81fab7-bd42-4c28-b8c6-05e404ecc1c3.webp?v=1752648412"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43473335910499,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NST0129853-XF49","requires_shipping":true,"taxable":true,"featured_image":{"id":34196590133347,"product_id":7823817900131,"position":15,"created_at":"2025-07-16T14:46:48+08:00","updated_at":"2025-07-16T14:46:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80a8d82e25aebb9bedd5bbf0c65d6770bb65de6b_fd6bce2a-8623-4a58-8111-fcbff46b83de.webp?v=1752648410","variant_ids":[43473335910499]},"available":true,"name":"iPhone 15 Pro Max SolidX ilovedoodle White Cat Flowers - 白貓花朵 - White","public_title":"White","options":["White"],"price":118000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129853-XF49","featured_media":{"alt":null,"id":25829437538403,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80a8d82e25aebb9bedd5bbf0c65d6770bb65de6b_fd6bce2a-8623-4a58-8111-fcbff46b83de.webp?v=1752648410"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43473335943267,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"NST01298Z8-XF49","requires_shipping":true,"taxable":true,"featured_image":{"id":34196592558179,"product_id":7823817900131,"position":20,"created_at":"2025-07-16T14:46:51+08:00","updated_at":"2025-07-16T14:46:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eae79ae56434c3579197086d43d675228acc7db8_ae495388-fabf-462f-bd9d-421fa9bfa18a.webp?v=1752648413","variant_ids":[43473335943267]},"available":true,"name":"iPhone 15 Pro Max SolidX ilovedoodle White Cat Flowers - 白貓花朵 - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":118000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01298Z8-XF49","featured_media":{"alt":null,"id":25829438980195,"position":20,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eae79ae56434c3579197086d43d675228acc7db8_ae495388-fabf-462f-bd9d-421fa9bfa18a.webp?v=1752648413"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43473335976035,"title":"Ocean Blue","option1":"Ocean Blue","option2":null,"option3":null,"sku":"NST012980A-XF49","requires_shipping":true,"taxable":true,"featured_image":{"id":34196593082467,"product_id":7823817900131,"position":21,"created_at":"2025-07-16T14:46:52+08:00","updated_at":"2025-07-16T14:46:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3f7476e6ea223cff2850ad12f7a66e2c26ce93d_8f2d3fc3-f45f-40f1-8df4-8bcf0e5e0868.webp?v=1752648413","variant_ids":[43473335976035]},"available":true,"name":"iPhone 15 Pro Max SolidX ilovedoodle White Cat Flowers - 白貓花朵 - Ocean Blue","public_title":"Ocean Blue","options":["Ocean Blue"],"price":118000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST012980A-XF49","featured_media":{"alt":null,"id":25829439209571,"position":21,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3f7476e6ea223cff2850ad12f7a66e2c26ce93d_8f2d3fc3-f45f-40f1-8df4-8bcf0e5e0868.webp?v=1752648413"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43473336008803,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"NST01298O8-XF49","requires_shipping":true,"taxable":true,"featured_image":{"id":34196591902819,"product_id":7823817900131,"position":18,"created_at":"2025-07-16T14:46:50+08:00","updated_at":"2025-07-16T14:46:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7da0184761a65fc89df3df52c873d76c23d48e59_fd6b6c18-da52-4312-b8af-ffec563493c5.webp?v=1752648412","variant_ids":[43473336008803]},"available":true,"name":"iPhone 15 Pro Max SolidX ilovedoodle White Cat Flowers - 白貓花朵 - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":118000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01298O8-XF49","featured_media":{"alt":null,"id":25829438324835,"position":18,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7da0184761a65fc89df3df52c873d76c23d48e59_fd6b6c18-da52-4312-b8af-ffec563493c5.webp?v=1752648412"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43473336041571,"title":"Glacier Blue","option1":"Glacier Blue","option2":null,"option3":null,"sku":"NST01298Z7-XF49","requires_shipping":true,"taxable":true,"featured_image":{"id":34196590887011,"product_id":7823817900131,"position":16,"created_at":"2025-07-16T14:46:49+08:00","updated_at":"2025-07-16T14:46:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1378cadb8839a4ad0eb4b867d3abc6e34fdeffaf_2fd59b52-63cd-41f1-b77e-d04b5fafb772.webp?v=1752648411","variant_ids":[43473336041571]},"available":true,"name":"iPhone 15 Pro Max SolidX ilovedoodle White Cat Flowers - 白貓花朵 - Glacier Blue","public_title":"Glacier Blue","options":["Glacier Blue"],"price":118000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01298Z7-XF49","featured_media":{"alt":null,"id":25829437833315,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1378cadb8839a4ad0eb4b867d3abc6e34fdeffaf_2fd59b52-63cd-41f1-b77e-d04b5fafb772.webp?v=1752648411"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43494014845027,"title":"Sage Green","option1":"Sage Green","option2":null,"option3":null,"sku":"NST01298P2-XF49","requires_shipping":true,"taxable":true,"featured_image":{"id":34196589674595,"product_id":7823817900131,"position":14,"created_at":"2025-07-16T14:46:48+08:00","updated_at":"2025-07-16T14:46:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99905a5942540a82db9228dddba1b236d4bfaed5_6687514e-52ce-471a-9d85-457f53aebf7a.webp?v=1752648409","variant_ids":[43494014845027]},"available":true,"name":"iPhone 15 Pro Max SolidX ilovedoodle White Cat Flowers - 白貓花朵 - Sage Green","public_title":"Sage Green","options":["Sage Green"],"price":118000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01298P2-XF49","featured_media":{"alt":null,"id":25829437309027,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99905a5942540a82db9228dddba1b236d4bfaed5_6687514e-52ce-471a-9d85-457f53aebf7a.webp?v=1752648409"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43494014910563,"title":"Blush Pink","option1":"Blush Pink","option2":null,"option3":null,"sku":"NST0129857-XF49","requires_shipping":true,"taxable":true,"featured_image":{"id":34196591476835,"product_id":7823817900131,"position":17,"created_at":"2025-07-16T14:46:49+08:00","updated_at":"2025-07-16T14:46:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ad3ae0825beaf4ad0eac8e6feeb23a5a6f61fde_afbd73a1-4b98-4616-a6f6-ecdb9cfdb7b4.webp?v=1752648411","variant_ids":[43494014910563]},"available":true,"name":"iPhone 15 Pro Max SolidX ilovedoodle White Cat Flowers - 白貓花朵 - Blush Pink","public_title":"Blush Pink","options":["Blush Pink"],"price":118000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129857-XF49","featured_media":{"alt":null,"id":25829438062691,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ad3ae0825beaf4ad0eac8e6feeb23a5a6f61fde_afbd73a1-4b98-4616-a6f6-ecdb9cfdb7b4.webp?v=1752648411"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43473331454051,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129852-XF49","requires_shipping":true,"taxable":true,"featured_image":{"id":34196589150307,"product_id":7823817900131,"position":13,"created_at":"2025-07-16T14:46:47+08:00","updated_at":"2025-07-16T14:46:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/388994c167ac18060325b3aada2aeed066cb0093_aa291056-8d70-4460-a25b-6bf3956d2281.webp?v=1752648409","variant_ids":[43473331454051]},"available":true,"name":"iPhone 15 Pro Max SolidX ilovedoodle White Cat Flowers - 白貓花朵 - Black","public_title":"Black","options":["Black"],"price":118000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129852-XF49","featured_media":{"alt":null,"id":25829436981347,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/388994c167ac18060325b3aada2aeed066cb0093_aa291056-8d70-4460-a25b-6bf3956d2281.webp?v=1752648409"}},"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: "停產"
}