$product = {"id":7822282096739,"title":"iPhone 16 Pro SolidX (MagSafe 兼容) ilovedoodle Hug One Line - 愛與擁抱","handle":"iphone-16-pro-solidx-magsafe-xf55","description":null,"published_at":"2025-07-01T19:39:21+08:00","created_at":"2025-06-18T10:32:58+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-ilovedoodle","device-iPhone 16 Pro","merge","reseller-ilovedoodle"],"price":145000,"price_min":145000,"price_max":145000,"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":43466068820067,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MNS0132752-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34195555319907,"product_id":7822282096739,"position":3,"created_at":"2025-07-16T12:25:08+08:00","updated_at":"2025-07-16T12:25:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18a76995613f368c490d916770c041c5579aaf50.webp?v=1752639910","variant_ids":[43466068820067]},"available":true,"name":"iPhone 16 Pro SolidX (MagSafe 兼容) ilovedoodle Hug One Line - 愛與擁抱 - Black","public_title":"Black","options":["Black"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS0132752-XF55","featured_media":{"alt":null,"id":25828702453859,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18a76995613f368c490d916770c041c5579aaf50.webp?v=1752639910"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43466073112675,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MNS0132753-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34196779368547,"product_id":7822282096739,"position":21,"created_at":"2025-07-16T14:51:11+08:00","updated_at":"2025-07-16T14:51:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bf49d3e179ab6b0b0557adcffd011e37994f6e0_ac97a79a-4298-475f-8f26-78a6ac8ea2db.webp?v=1752648673","variant_ids":[43466073112675]},"available":true,"name":"iPhone 16 Pro SolidX (MagSafe 兼容) ilovedoodle Hug One Line - 愛與擁抱 - White","public_title":"White","options":["White"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS0132753-XF55","featured_media":{"alt":null,"id":25829540528227,"position":21,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bf49d3e179ab6b0b0557adcffd011e37994f6e0_ac97a79a-4298-475f-8f26-78a6ac8ea2db.webp?v=1752648673"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43466073145443,"title":"Ocean Blue","option1":"Ocean Blue","option2":null,"option3":null,"sku":"MNS013270A-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34195558695011,"product_id":7822282096739,"position":11,"created_at":"2025-07-16T12:25:13+08:00","updated_at":"2025-07-16T12:25:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/613a304d3ddd1ef85e2d47138673f73d077f4b8f.webp?v=1752639915","variant_ids":[43466073145443]},"available":true,"name":"iPhone 16 Pro SolidX (MagSafe 兼容) ilovedoodle Hug One Line - 愛與擁抱 - Ocean Blue","public_title":"Ocean Blue","options":["Ocean Blue"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS013270A-XF55","featured_media":{"alt":null,"id":25828704288867,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/613a304d3ddd1ef85e2d47138673f73d077f4b8f.webp?v=1752639915"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43466073178211,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"MNS01327O8-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34195556892771,"product_id":7822282096739,"position":6,"created_at":"2025-07-16T12:25:10+08:00","updated_at":"2025-07-16T12:25:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e62ccb18d73e488e2dc1a7aa7ef8d0772def99d9.webp?v=1752639912","variant_ids":[43466073178211]},"available":true,"name":"iPhone 16 Pro SolidX (MagSafe 兼容) ilovedoodle Hug One Line - 愛與擁抱 - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS01327O8-XF55","featured_media":{"alt":null,"id":25828703076451,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e62ccb18d73e488e2dc1a7aa7ef8d0772def99d9.webp?v=1752639912"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43466073210979,"title":"Glacier Blue","option1":"Glacier Blue","option2":null,"option3":null,"sku":"MNS01327Z7-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34195558006883,"product_id":7822282096739,"position":9,"created_at":"2025-07-16T12:25:12+08:00","updated_at":"2025-07-16T12:25:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b76e9b5db65012e320ab48779db7d2d607ffd33a.webp?v=1752639914","variant_ids":[43466073210979]},"available":true,"name":"iPhone 16 Pro SolidX (MagSafe 兼容) ilovedoodle Hug One Line - 愛與擁抱 - Glacier Blue","public_title":"Glacier Blue","options":["Glacier Blue"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS01327Z7-XF55","featured_media":{"alt":null,"id":25828703961187,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b76e9b5db65012e320ab48779db7d2d607ffd33a.webp?v=1752639914"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43466073243747,"title":"Ultra Marine","option1":"Ultra Marine","option2":null,"option3":null,"sku":"MNS013273O-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34195556434019,"product_id":7822282096739,"position":5,"created_at":"2025-07-16T12:25:09+08:00","updated_at":"2025-07-16T12:25:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc2b88d8f6ed69b63b6770a6366a9889abe834ee.webp?v=1752639911","variant_ids":[43466073243747]},"available":true,"name":"iPhone 16 Pro SolidX (MagSafe 兼容) ilovedoodle Hug One Line - 愛與擁抱 - Ultra Marine","public_title":"Ultra Marine","options":["Ultra Marine"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS013273O-XF55","featured_media":{"alt":null,"id":25828702879843,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc2b88d8f6ed69b63b6770a6366a9889abe834ee.webp?v=1752639911"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43466073276515,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MNS01327Z8-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34195557646435,"product_id":7822282096739,"position":8,"created_at":"2025-07-16T12:25:11+08:00","updated_at":"2025-07-16T12:25:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d0f4d1a09ec8401ba487b38c86245ebab64c22a.webp?v=1752639913","variant_ids":[43466073276515]},"available":true,"name":"iPhone 16 Pro SolidX (MagSafe 兼容) ilovedoodle Hug One Line - 愛與擁抱 - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS01327Z8-XF55","featured_media":{"alt":null,"id":25828703862883,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d0f4d1a09ec8401ba487b38c86245ebab64c22a.webp?v=1752639913"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43466073309283,"title":"Raspberry Sorbet","option1":"Raspberry Sorbet","option2":null,"option3":null,"sku":"MNS013273P-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34195557285987,"product_id":7822282096739,"position":7,"created_at":"2025-07-16T12:25:11+08:00","updated_at":"2025-07-16T12:25:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9493a51cbb9b1923285fd6223da74155e5e77e78.webp?v=1752639913","variant_ids":[43466073309283]},"available":true,"name":"iPhone 16 Pro SolidX (MagSafe 兼容) ilovedoodle Hug One Line - 愛與擁抱 - Raspberry Sorbet","public_title":"Raspberry Sorbet","options":["Raspberry Sorbet"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS013273P-XF55","featured_media":{"alt":null,"id":25828703338595,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9493a51cbb9b1923285fd6223da74155e5e77e78.webp?v=1752639913"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43466073342051,"title":"Deep Mauve","option1":"Deep Mauve","option2":null,"option3":null,"sku":"MNS013273S-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34195558498403,"product_id":7822282096739,"position":10,"created_at":"2025-07-16T12:25:13+08:00","updated_at":"2025-07-16T12:25:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/136e4226001620f73fc83e0f2df6a10a92c7bbf1.webp?v=1752639915","variant_ids":[43466073342051]},"available":true,"name":"iPhone 16 Pro SolidX (MagSafe 兼容) ilovedoodle Hug One Line - 愛與擁抱 - Deep Mauve","public_title":"Deep Mauve","options":["Deep Mauve"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS013273S-XF55","featured_media":{"alt":null,"id":25828704125027,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/136e4226001620f73fc83e0f2df6a10a92c7bbf1.webp?v=1752639915"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43466073374819,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"MNS013270B-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34195555942499,"product_id":7822282096739,"position":4,"created_at":"2025-07-16T12:25:09+08:00","updated_at":"2025-07-16T12:25:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8670fa60ac155dec3e3221e553017947c3981cbe.webp?v=1752639911","variant_ids":[43466073374819]},"available":true,"name":"iPhone 16 Pro SolidX (MagSafe 兼容) ilovedoodle Hug One Line - 愛與擁抱 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS013270B-XF55","featured_media":{"alt":null,"id":25828702650467,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8670fa60ac155dec3e3221e553017947c3981cbe.webp?v=1752639911"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-327-XF55_eb40c81c-cc78-4eb8-9006-2f46587b6761.png?v=1750213981","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bf49d3e179ab6b0b0557adcffd011e37994f6e0.webp?v=1752639910","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18a76995613f368c490d916770c041c5579aaf50.webp?v=1752639910","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8670fa60ac155dec3e3221e553017947c3981cbe.webp?v=1752639911","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc2b88d8f6ed69b63b6770a6366a9889abe834ee.webp?v=1752639911","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e62ccb18d73e488e2dc1a7aa7ef8d0772def99d9.webp?v=1752639912","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9493a51cbb9b1923285fd6223da74155e5e77e78.webp?v=1752639913","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d0f4d1a09ec8401ba487b38c86245ebab64c22a.webp?v=1752639913","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b76e9b5db65012e320ab48779db7d2d607ffd33a.webp?v=1752639914","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/136e4226001620f73fc83e0f2df6a10a92c7bbf1.webp?v=1752639915","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/613a304d3ddd1ef85e2d47138673f73d077f4b8f.webp?v=1752639915","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9493a51cbb9b1923285fd6223da74155e5e77e78_ca4e265d-8510-4bab-a000-c93a0c205ad3.webp?v=1752648668","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/613a304d3ddd1ef85e2d47138673f73d077f4b8f_518bfe01-56aa-4238-beba-6441880fce47.webp?v=1752648669","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18a76995613f368c490d916770c041c5579aaf50_52f9479d-1a7b-4d1c-a09b-d67541ff3dd5.webp?v=1752648669","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b76e9b5db65012e320ab48779db7d2d607ffd33a_5c6c0903-542e-4bfa-b583-25f11d79baca.webp?v=1752648669","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d0f4d1a09ec8401ba487b38c86245ebab64c22a_7493c2d2-6337-4a46-99ee-5ff402d45770.webp?v=1752648670","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8670fa60ac155dec3e3221e553017947c3981cbe_14ea02a0-fde0-4993-ba46-807b123251b4.webp?v=1752648670","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e62ccb18d73e488e2dc1a7aa7ef8d0772def99d9_54986082-3825-4a3c-a12f-32da70c94e24.webp?v=1752648671","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc2b88d8f6ed69b63b6770a6366a9889abe834ee_d9760544-23c5-4925-8530-d2a5a33ba4bd.webp?v=1752648671","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/136e4226001620f73fc83e0f2df6a10a92c7bbf1_d7ae52a5-98be-4345-b7e6-e4bbb4b23886.webp?v=1752648672","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bf49d3e179ab6b0b0557adcffd011e37994f6e0_ac97a79a-4298-475f-8f26-78a6ac8ea2db.webp?v=1752648673"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-327-XF55_eb40c81c-cc78-4eb8-9006-2f46587b6761.png?v=1750213981","options":["color"],"media":[{"alt":null,"id":25713238573155,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-327-XF55_eb40c81c-cc78-4eb8-9006-2f46587b6761.png?v=1750213981"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-327-XF55_eb40c81c-cc78-4eb8-9006-2f46587b6761.png?v=1750213981","width":2000},{"alt":null,"id":25828702322787,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bf49d3e179ab6b0b0557adcffd011e37994f6e0.webp?v=1752639910"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bf49d3e179ab6b0b0557adcffd011e37994f6e0.webp?v=1752639910","width":2000},{"alt":null,"id":25828702453859,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18a76995613f368c490d916770c041c5579aaf50.webp?v=1752639910"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18a76995613f368c490d916770c041c5579aaf50.webp?v=1752639910","width":2000},{"alt":null,"id":25828702650467,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8670fa60ac155dec3e3221e553017947c3981cbe.webp?v=1752639911"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8670fa60ac155dec3e3221e553017947c3981cbe.webp?v=1752639911","width":2000},{"alt":null,"id":25828702879843,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc2b88d8f6ed69b63b6770a6366a9889abe834ee.webp?v=1752639911"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc2b88d8f6ed69b63b6770a6366a9889abe834ee.webp?v=1752639911","width":2000},{"alt":null,"id":25828703076451,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e62ccb18d73e488e2dc1a7aa7ef8d0772def99d9.webp?v=1752639912"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e62ccb18d73e488e2dc1a7aa7ef8d0772def99d9.webp?v=1752639912","width":2000},{"alt":null,"id":25828703338595,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9493a51cbb9b1923285fd6223da74155e5e77e78.webp?v=1752639913"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9493a51cbb9b1923285fd6223da74155e5e77e78.webp?v=1752639913","width":2000},{"alt":null,"id":25828703862883,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d0f4d1a09ec8401ba487b38c86245ebab64c22a.webp?v=1752639913"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d0f4d1a09ec8401ba487b38c86245ebab64c22a.webp?v=1752639913","width":2000},{"alt":null,"id":25828703961187,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b76e9b5db65012e320ab48779db7d2d607ffd33a.webp?v=1752639914"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b76e9b5db65012e320ab48779db7d2d607ffd33a.webp?v=1752639914","width":2000},{"alt":null,"id":25828704125027,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/136e4226001620f73fc83e0f2df6a10a92c7bbf1.webp?v=1752639915"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/136e4226001620f73fc83e0f2df6a10a92c7bbf1.webp?v=1752639915","width":2000},{"alt":null,"id":25828704288867,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/613a304d3ddd1ef85e2d47138673f73d077f4b8f.webp?v=1752639915"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/613a304d3ddd1ef85e2d47138673f73d077f4b8f.webp?v=1752639915","width":2000},{"alt":null,"id":25829537841251,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9493a51cbb9b1923285fd6223da74155e5e77e78_ca4e265d-8510-4bab-a000-c93a0c205ad3.webp?v=1752648668"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9493a51cbb9b1923285fd6223da74155e5e77e78_ca4e265d-8510-4bab-a000-c93a0c205ad3.webp?v=1752648668","width":2000},{"alt":null,"id":25829538136163,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/613a304d3ddd1ef85e2d47138673f73d077f4b8f_518bfe01-56aa-4238-beba-6441880fce47.webp?v=1752648669"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/613a304d3ddd1ef85e2d47138673f73d077f4b8f_518bfe01-56aa-4238-beba-6441880fce47.webp?v=1752648669","width":2000},{"alt":null,"id":25829538300003,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18a76995613f368c490d916770c041c5579aaf50_52f9479d-1a7b-4d1c-a09b-d67541ff3dd5.webp?v=1752648669"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18a76995613f368c490d916770c041c5579aaf50_52f9479d-1a7b-4d1c-a09b-d67541ff3dd5.webp?v=1752648669","width":2000},{"alt":null,"id":25829538529379,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b76e9b5db65012e320ab48779db7d2d607ffd33a_5c6c0903-542e-4bfa-b583-25f11d79baca.webp?v=1752648669"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b76e9b5db65012e320ab48779db7d2d607ffd33a_5c6c0903-542e-4bfa-b583-25f11d79baca.webp?v=1752648669","width":2000},{"alt":null,"id":25829538758755,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d0f4d1a09ec8401ba487b38c86245ebab64c22a_7493c2d2-6337-4a46-99ee-5ff402d45770.webp?v=1752648670"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d0f4d1a09ec8401ba487b38c86245ebab64c22a_7493c2d2-6337-4a46-99ee-5ff402d45770.webp?v=1752648670","width":2000},{"alt":null,"id":25829539217507,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8670fa60ac155dec3e3221e553017947c3981cbe_14ea02a0-fde0-4993-ba46-807b123251b4.webp?v=1752648670"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8670fa60ac155dec3e3221e553017947c3981cbe_14ea02a0-fde0-4993-ba46-807b123251b4.webp?v=1752648670","width":2000},{"alt":null,"id":25829539610723,"position":18,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e62ccb18d73e488e2dc1a7aa7ef8d0772def99d9_54986082-3825-4a3c-a12f-32da70c94e24.webp?v=1752648671"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e62ccb18d73e488e2dc1a7aa7ef8d0772def99d9_54986082-3825-4a3c-a12f-32da70c94e24.webp?v=1752648671","width":2000},{"alt":null,"id":25829539905635,"position":19,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc2b88d8f6ed69b63b6770a6366a9889abe834ee_d9760544-23c5-4925-8530-d2a5a33ba4bd.webp?v=1752648671"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc2b88d8f6ed69b63b6770a6366a9889abe834ee_d9760544-23c5-4925-8530-d2a5a33ba4bd.webp?v=1752648671","width":2000},{"alt":null,"id":25829540233315,"position":20,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/136e4226001620f73fc83e0f2df6a10a92c7bbf1_d7ae52a5-98be-4345-b7e6-e4bbb4b23886.webp?v=1752648672"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/136e4226001620f73fc83e0f2df6a10a92c7bbf1_d7ae52a5-98be-4345-b7e6-e4bbb4b23886.webp?v=1752648672","width":2000},{"alt":null,"id":25829540528227,"position":21,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bf49d3e179ab6b0b0557adcffd011e37994f6e0_ac97a79a-4298-475f-8f26-78a6ac8ea2db.webp?v=1752648673"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bf49d3e179ab6b0b0557adcffd011e37994f6e0_ac97a79a-4298-475f-8f26-78a6ac8ea2db.webp?v=1752648673","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43466068820067,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MNS0132752-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34195555319907,"product_id":7822282096739,"position":3,"created_at":"2025-07-16T12:25:08+08:00","updated_at":"2025-07-16T12:25:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18a76995613f368c490d916770c041c5579aaf50.webp?v=1752639910","variant_ids":[43466068820067]},"available":true,"name":"iPhone 16 Pro SolidX (MagSafe 兼容) ilovedoodle Hug One Line - 愛與擁抱 - Black","public_title":"Black","options":["Black"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS0132752-XF55","featured_media":{"alt":null,"id":25828702453859,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18a76995613f368c490d916770c041c5579aaf50.webp?v=1752639910"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43466073112675,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MNS0132753-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34196779368547,"product_id":7822282096739,"position":21,"created_at":"2025-07-16T14:51:11+08:00","updated_at":"2025-07-16T14:51:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bf49d3e179ab6b0b0557adcffd011e37994f6e0_ac97a79a-4298-475f-8f26-78a6ac8ea2db.webp?v=1752648673","variant_ids":[43466073112675]},"available":true,"name":"iPhone 16 Pro SolidX (MagSafe 兼容) ilovedoodle Hug One Line - 愛與擁抱 - White","public_title":"White","options":["White"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS0132753-XF55","featured_media":{"alt":null,"id":25829540528227,"position":21,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bf49d3e179ab6b0b0557adcffd011e37994f6e0_ac97a79a-4298-475f-8f26-78a6ac8ea2db.webp?v=1752648673"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43466073145443,"title":"Ocean Blue","option1":"Ocean Blue","option2":null,"option3":null,"sku":"MNS013270A-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34195558695011,"product_id":7822282096739,"position":11,"created_at":"2025-07-16T12:25:13+08:00","updated_at":"2025-07-16T12:25:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/613a304d3ddd1ef85e2d47138673f73d077f4b8f.webp?v=1752639915","variant_ids":[43466073145443]},"available":true,"name":"iPhone 16 Pro SolidX (MagSafe 兼容) ilovedoodle Hug One Line - 愛與擁抱 - Ocean Blue","public_title":"Ocean Blue","options":["Ocean Blue"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS013270A-XF55","featured_media":{"alt":null,"id":25828704288867,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/613a304d3ddd1ef85e2d47138673f73d077f4b8f.webp?v=1752639915"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43466073178211,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"MNS01327O8-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34195556892771,"product_id":7822282096739,"position":6,"created_at":"2025-07-16T12:25:10+08:00","updated_at":"2025-07-16T12:25:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e62ccb18d73e488e2dc1a7aa7ef8d0772def99d9.webp?v=1752639912","variant_ids":[43466073178211]},"available":true,"name":"iPhone 16 Pro SolidX (MagSafe 兼容) ilovedoodle Hug One Line - 愛與擁抱 - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS01327O8-XF55","featured_media":{"alt":null,"id":25828703076451,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e62ccb18d73e488e2dc1a7aa7ef8d0772def99d9.webp?v=1752639912"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43466073210979,"title":"Glacier Blue","option1":"Glacier Blue","option2":null,"option3":null,"sku":"MNS01327Z7-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34195558006883,"product_id":7822282096739,"position":9,"created_at":"2025-07-16T12:25:12+08:00","updated_at":"2025-07-16T12:25:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b76e9b5db65012e320ab48779db7d2d607ffd33a.webp?v=1752639914","variant_ids":[43466073210979]},"available":true,"name":"iPhone 16 Pro SolidX (MagSafe 兼容) ilovedoodle Hug One Line - 愛與擁抱 - Glacier Blue","public_title":"Glacier Blue","options":["Glacier Blue"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS01327Z7-XF55","featured_media":{"alt":null,"id":25828703961187,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b76e9b5db65012e320ab48779db7d2d607ffd33a.webp?v=1752639914"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43466073243747,"title":"Ultra Marine","option1":"Ultra Marine","option2":null,"option3":null,"sku":"MNS013273O-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34195556434019,"product_id":7822282096739,"position":5,"created_at":"2025-07-16T12:25:09+08:00","updated_at":"2025-07-16T12:25:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc2b88d8f6ed69b63b6770a6366a9889abe834ee.webp?v=1752639911","variant_ids":[43466073243747]},"available":true,"name":"iPhone 16 Pro SolidX (MagSafe 兼容) ilovedoodle Hug One Line - 愛與擁抱 - Ultra Marine","public_title":"Ultra Marine","options":["Ultra Marine"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS013273O-XF55","featured_media":{"alt":null,"id":25828702879843,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc2b88d8f6ed69b63b6770a6366a9889abe834ee.webp?v=1752639911"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43466073276515,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MNS01327Z8-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34195557646435,"product_id":7822282096739,"position":8,"created_at":"2025-07-16T12:25:11+08:00","updated_at":"2025-07-16T12:25:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d0f4d1a09ec8401ba487b38c86245ebab64c22a.webp?v=1752639913","variant_ids":[43466073276515]},"available":true,"name":"iPhone 16 Pro SolidX (MagSafe 兼容) ilovedoodle Hug One Line - 愛與擁抱 - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS01327Z8-XF55","featured_media":{"alt":null,"id":25828703862883,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d0f4d1a09ec8401ba487b38c86245ebab64c22a.webp?v=1752639913"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43466073309283,"title":"Raspberry Sorbet","option1":"Raspberry Sorbet","option2":null,"option3":null,"sku":"MNS013273P-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34195557285987,"product_id":7822282096739,"position":7,"created_at":"2025-07-16T12:25:11+08:00","updated_at":"2025-07-16T12:25:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9493a51cbb9b1923285fd6223da74155e5e77e78.webp?v=1752639913","variant_ids":[43466073309283]},"available":true,"name":"iPhone 16 Pro SolidX (MagSafe 兼容) ilovedoodle Hug One Line - 愛與擁抱 - Raspberry Sorbet","public_title":"Raspberry Sorbet","options":["Raspberry Sorbet"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS013273P-XF55","featured_media":{"alt":null,"id":25828703338595,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9493a51cbb9b1923285fd6223da74155e5e77e78.webp?v=1752639913"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43466073342051,"title":"Deep Mauve","option1":"Deep Mauve","option2":null,"option3":null,"sku":"MNS013273S-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34195558498403,"product_id":7822282096739,"position":10,"created_at":"2025-07-16T12:25:13+08:00","updated_at":"2025-07-16T12:25:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/136e4226001620f73fc83e0f2df6a10a92c7bbf1.webp?v=1752639915","variant_ids":[43466073342051]},"available":true,"name":"iPhone 16 Pro SolidX (MagSafe 兼容) ilovedoodle Hug One Line - 愛與擁抱 - Deep Mauve","public_title":"Deep Mauve","options":["Deep Mauve"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS013273S-XF55","featured_media":{"alt":null,"id":25828704125027,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/136e4226001620f73fc83e0f2df6a10a92c7bbf1.webp?v=1752639915"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43466073374819,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"MNS013270B-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34195555942499,"product_id":7822282096739,"position":4,"created_at":"2025-07-16T12:25:09+08:00","updated_at":"2025-07-16T12:25:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8670fa60ac155dec3e3221e553017947c3981cbe.webp?v=1752639911","variant_ids":[43466073374819]},"available":true,"name":"iPhone 16 Pro SolidX (MagSafe 兼容) ilovedoodle Hug One Line - 愛與擁抱 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS013270B-XF55","featured_media":{"alt":null,"id":25828702650467,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8670fa60ac155dec3e3221e553017947c3981cbe.webp?v=1752639911"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43466068820067,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MNS0132752-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34195555319907,"product_id":7822282096739,"position":3,"created_at":"2025-07-16T12:25:08+08:00","updated_at":"2025-07-16T12:25:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18a76995613f368c490d916770c041c5579aaf50.webp?v=1752639910","variant_ids":[43466068820067]},"available":true,"name":"iPhone 16 Pro SolidX (MagSafe 兼容) ilovedoodle Hug One Line - 愛與擁抱 - Black","public_title":"Black","options":["Black"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS0132752-XF55","featured_media":{"alt":null,"id":25828702453859,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18a76995613f368c490d916770c041c5579aaf50.webp?v=1752639910"}},"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: "停產"
}