$product = {"id":7988613316707,"title":"iPhone 12 \/ 12 Pro Mod NX ilovedoodle Irrelephant 大象","handle":"iphone-12-pro-mod-nx-xf09","description":null,"published_at":"2026-04-02T16:37:51+08:00","created_at":"2026-03-31T14:40:20+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-ilovedoodle","device-iPhone 12 Pro","merge","reseller-ilovedoodle"],"price":90000,"price_min":90000,"price_max":90000,"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":44092301049955,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"NPB01185C1-XF09","requires_shipping":true,"taxable":true,"featured_image":{"id":35581163372643,"product_id":7988613316707,"position":6,"created_at":"2026-04-02T14:24:56+08:00","updated_at":"2026-04-02T14:24:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/311e5c8bd744bf615f67789347a99032ed197a61_be0861ca-1afe-4f05-8fbb-33c07c0cc66f.webp?v=1775111098","variant_ids":[44092301049955]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX ilovedoodle Irrelephant 大象 - Lavender","public_title":"Lavender","options":["Lavender"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01185C1-XF09","featured_media":{"alt":null,"id":27113783591011,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/311e5c8bd744bf615f67789347a99032ed197a61_be0861ca-1afe-4f05-8fbb-33c07c0cc66f.webp?v=1775111098"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44092302229603,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01185J5-XF09","requires_shipping":true,"taxable":true,"featured_image":{"id":35581163602019,"product_id":7988613316707,"position":7,"created_at":"2026-04-02T14:24:57+08:00","updated_at":"2026-04-02T14:24:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4ea5b654454b42c3f0423110f95a7677956d1ba_7b681d72-5fa2-4b2d-8303-9836596ed695.webp?v=1775111099","variant_ids":[44092302229603]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX ilovedoodle Irrelephant 大象 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01185J5-XF09","featured_media":{"alt":null,"id":27113783820387,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4ea5b654454b42c3f0423110f95a7677956d1ba_7b681d72-5fa2-4b2d-8303-9836596ed695.webp?v=1775111099"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44092302262371,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"NPB0118569-XF09","requires_shipping":true,"taxable":true,"featured_image":{"id":35581163995235,"product_id":7988613316707,"position":9,"created_at":"2026-04-02T14:24:58+08:00","updated_at":"2026-04-02T14:25:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00eecce7242b1d329d2d55ef809b87e197226876_24104cd8-06c6-4783-b05e-544be931737c.webp?v=1775111100","variant_ids":[44092302262371]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX ilovedoodle Irrelephant 大象 - Graphite","public_title":"Graphite","options":["Graphite"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118569-XF09","featured_media":{"alt":null,"id":27113784213603,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00eecce7242b1d329d2d55ef809b87e197226876_24104cd8-06c6-4783-b05e-544be931737c.webp?v=1775111100"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44092302295139,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118524-XF09","requires_shipping":true,"taxable":true,"featured_image":{"id":35581164159075,"product_id":7988613316707,"position":10,"created_at":"2026-04-02T14:24:59+08:00","updated_at":"2026-04-02T14:25:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/957432415d439143dcab11d6e7cf68bbbaa68d96_fb2d7adf-2a1a-462e-b510-01c547b2df9c.webp?v=1775111100","variant_ids":[44092302295139]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX ilovedoodle Irrelephant 大象 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118524-XF09","featured_media":{"alt":null,"id":27113784377443,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/957432415d439143dcab11d6e7cf68bbbaa68d96_fb2d7adf-2a1a-462e-b510-01c547b2df9c.webp?v=1775111100"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44092302327907,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0118504-XF09","requires_shipping":true,"taxable":true,"featured_image":{"id":35581163798627,"product_id":7988613316707,"position":8,"created_at":"2026-04-02T14:24:58+08:00","updated_at":"2026-04-02T14:24:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edf23af1d6d66064d6d1b6ec2173b685da6d2546_559b5a9d-fafc-4ba8-bcc8-ca090c756bc7.webp?v=1775111099","variant_ids":[44092302327907]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX ilovedoodle Irrelephant 大象 - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118504-XF09","featured_media":{"alt":null,"id":27113784016995,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edf23af1d6d66064d6d1b6ec2173b685da6d2546_559b5a9d-fafc-4ba8-bcc8-ca090c756bc7.webp?v=1775111099"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4ea5b654454b42c3f0423110f95a7677956d1ba.webp?v=1774939226","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edf23af1d6d66064d6d1b6ec2173b685da6d2546.webp?v=1774939226","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00eecce7242b1d329d2d55ef809b87e197226876.webp?v=1774939227","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/957432415d439143dcab11d6e7cf68bbbaa68d96.webp?v=1774939227","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/311e5c8bd744bf615f67789347a99032ed197a61.webp?v=1774939228","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/311e5c8bd744bf615f67789347a99032ed197a61_be0861ca-1afe-4f05-8fbb-33c07c0cc66f.webp?v=1775111098","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4ea5b654454b42c3f0423110f95a7677956d1ba_7b681d72-5fa2-4b2d-8303-9836596ed695.webp?v=1775111099","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edf23af1d6d66064d6d1b6ec2173b685da6d2546_559b5a9d-fafc-4ba8-bcc8-ca090c756bc7.webp?v=1775111099","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00eecce7242b1d329d2d55ef809b87e197226876_24104cd8-06c6-4783-b05e-544be931737c.webp?v=1775111100","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/957432415d439143dcab11d6e7cf68bbbaa68d96_fb2d7adf-2a1a-462e-b510-01c547b2df9c.webp?v=1775111100"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4ea5b654454b42c3f0423110f95a7677956d1ba.webp?v=1774939226","options":["color"],"media":[{"alt":null,"id":27102224613475,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4ea5b654454b42c3f0423110f95a7677956d1ba.webp?v=1774939226"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4ea5b654454b42c3f0423110f95a7677956d1ba.webp?v=1774939226","width":2000},{"alt":null,"id":27102224908387,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edf23af1d6d66064d6d1b6ec2173b685da6d2546.webp?v=1774939226"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edf23af1d6d66064d6d1b6ec2173b685da6d2546.webp?v=1774939226","width":2000},{"alt":null,"id":27102225137763,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00eecce7242b1d329d2d55ef809b87e197226876.webp?v=1774939227"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00eecce7242b1d329d2d55ef809b87e197226876.webp?v=1774939227","width":2000},{"alt":null,"id":27102225432675,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/957432415d439143dcab11d6e7cf68bbbaa68d96.webp?v=1774939227"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/957432415d439143dcab11d6e7cf68bbbaa68d96.webp?v=1774939227","width":2000},{"alt":null,"id":27102225662051,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/311e5c8bd744bf615f67789347a99032ed197a61.webp?v=1774939228"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/311e5c8bd744bf615f67789347a99032ed197a61.webp?v=1774939228","width":2000},{"alt":null,"id":27113783591011,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/311e5c8bd744bf615f67789347a99032ed197a61_be0861ca-1afe-4f05-8fbb-33c07c0cc66f.webp?v=1775111098"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/311e5c8bd744bf615f67789347a99032ed197a61_be0861ca-1afe-4f05-8fbb-33c07c0cc66f.webp?v=1775111098","width":2000},{"alt":null,"id":27113783820387,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4ea5b654454b42c3f0423110f95a7677956d1ba_7b681d72-5fa2-4b2d-8303-9836596ed695.webp?v=1775111099"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4ea5b654454b42c3f0423110f95a7677956d1ba_7b681d72-5fa2-4b2d-8303-9836596ed695.webp?v=1775111099","width":2000},{"alt":null,"id":27113784016995,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edf23af1d6d66064d6d1b6ec2173b685da6d2546_559b5a9d-fafc-4ba8-bcc8-ca090c756bc7.webp?v=1775111099"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edf23af1d6d66064d6d1b6ec2173b685da6d2546_559b5a9d-fafc-4ba8-bcc8-ca090c756bc7.webp?v=1775111099","width":2000},{"alt":null,"id":27113784213603,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00eecce7242b1d329d2d55ef809b87e197226876_24104cd8-06c6-4783-b05e-544be931737c.webp?v=1775111100"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00eecce7242b1d329d2d55ef809b87e197226876_24104cd8-06c6-4783-b05e-544be931737c.webp?v=1775111100","width":2000},{"alt":null,"id":27113784377443,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/957432415d439143dcab11d6e7cf68bbbaa68d96_fb2d7adf-2a1a-462e-b510-01c547b2df9c.webp?v=1775111100"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/957432415d439143dcab11d6e7cf68bbbaa68d96_fb2d7adf-2a1a-462e-b510-01c547b2df9c.webp?v=1775111100","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":44092301049955,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"NPB01185C1-XF09","requires_shipping":true,"taxable":true,"featured_image":{"id":35581163372643,"product_id":7988613316707,"position":6,"created_at":"2026-04-02T14:24:56+08:00","updated_at":"2026-04-02T14:24:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/311e5c8bd744bf615f67789347a99032ed197a61_be0861ca-1afe-4f05-8fbb-33c07c0cc66f.webp?v=1775111098","variant_ids":[44092301049955]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX ilovedoodle Irrelephant 大象 - Lavender","public_title":"Lavender","options":["Lavender"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01185C1-XF09","featured_media":{"alt":null,"id":27113783591011,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/311e5c8bd744bf615f67789347a99032ed197a61_be0861ca-1afe-4f05-8fbb-33c07c0cc66f.webp?v=1775111098"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44092302229603,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01185J5-XF09","requires_shipping":true,"taxable":true,"featured_image":{"id":35581163602019,"product_id":7988613316707,"position":7,"created_at":"2026-04-02T14:24:57+08:00","updated_at":"2026-04-02T14:24:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4ea5b654454b42c3f0423110f95a7677956d1ba_7b681d72-5fa2-4b2d-8303-9836596ed695.webp?v=1775111099","variant_ids":[44092302229603]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX ilovedoodle Irrelephant 大象 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01185J5-XF09","featured_media":{"alt":null,"id":27113783820387,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4ea5b654454b42c3f0423110f95a7677956d1ba_7b681d72-5fa2-4b2d-8303-9836596ed695.webp?v=1775111099"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44092302262371,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"NPB0118569-XF09","requires_shipping":true,"taxable":true,"featured_image":{"id":35581163995235,"product_id":7988613316707,"position":9,"created_at":"2026-04-02T14:24:58+08:00","updated_at":"2026-04-02T14:25:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00eecce7242b1d329d2d55ef809b87e197226876_24104cd8-06c6-4783-b05e-544be931737c.webp?v=1775111100","variant_ids":[44092302262371]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX ilovedoodle Irrelephant 大象 - Graphite","public_title":"Graphite","options":["Graphite"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118569-XF09","featured_media":{"alt":null,"id":27113784213603,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00eecce7242b1d329d2d55ef809b87e197226876_24104cd8-06c6-4783-b05e-544be931737c.webp?v=1775111100"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44092302295139,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118524-XF09","requires_shipping":true,"taxable":true,"featured_image":{"id":35581164159075,"product_id":7988613316707,"position":10,"created_at":"2026-04-02T14:24:59+08:00","updated_at":"2026-04-02T14:25:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/957432415d439143dcab11d6e7cf68bbbaa68d96_fb2d7adf-2a1a-462e-b510-01c547b2df9c.webp?v=1775111100","variant_ids":[44092302295139]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX ilovedoodle Irrelephant 大象 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118524-XF09","featured_media":{"alt":null,"id":27113784377443,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/957432415d439143dcab11d6e7cf68bbbaa68d96_fb2d7adf-2a1a-462e-b510-01c547b2df9c.webp?v=1775111100"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44092302327907,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0118504-XF09","requires_shipping":true,"taxable":true,"featured_image":{"id":35581163798627,"product_id":7988613316707,"position":8,"created_at":"2026-04-02T14:24:58+08:00","updated_at":"2026-04-02T14:24:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edf23af1d6d66064d6d1b6ec2173b685da6d2546_559b5a9d-fafc-4ba8-bcc8-ca090c756bc7.webp?v=1775111099","variant_ids":[44092302327907]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX ilovedoodle Irrelephant 大象 - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118504-XF09","featured_media":{"alt":null,"id":27113784016995,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edf23af1d6d66064d6d1b6ec2173b685da6d2546_559b5a9d-fafc-4ba8-bcc8-ca090c756bc7.webp?v=1775111099"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":44092301049955,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"NPB01185C1-XF09","requires_shipping":true,"taxable":true,"featured_image":{"id":35581163372643,"product_id":7988613316707,"position":6,"created_at":"2026-04-02T14:24:56+08:00","updated_at":"2026-04-02T14:24:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/311e5c8bd744bf615f67789347a99032ed197a61_be0861ca-1afe-4f05-8fbb-33c07c0cc66f.webp?v=1775111098","variant_ids":[44092301049955]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX ilovedoodle Irrelephant 大象 - Lavender","public_title":"Lavender","options":["Lavender"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01185C1-XF09","featured_media":{"alt":null,"id":27113783591011,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/311e5c8bd744bf615f67789347a99032ed197a61_be0861ca-1afe-4f05-8fbb-33c07c0cc66f.webp?v=1775111098"}},"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: "停產"
}