$product = {"id":6987953832035,"title":"iPhone 13 Pro Max SolidSuit (MagSafe 兼容) 涼丰 窯花","handle":"iphone-13-pro-max-solidsuit-classic-magsafe-gd14","description":null,"published_at":"2023-08-11T11:13:09+08:00","created_at":"2023-07-30T19:53:41+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師SolidSuit MagSafe專區-哈利波特 Harry Potter","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-liang-feng","device-iPhone 13 Pro Max","merge","reseller-liang-feng"],"price":125000,"price_min":125000,"price_max":125000,"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":43102691328099,"title":"Black \/ Classic","option1":"Black","option2":"Classic","option3":null,"sku":"MST0123252-GD14","requires_shipping":true,"taxable":true,"featured_image":{"id":30313560440931,"product_id":6987953832035,"position":1,"created_at":"2023-08-10T17:08:58+08:00","updated_at":"2023-08-10T17:08:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-232-GD14.png?v=1691658538","variant_ids":[43102691328099,43102691524707,43102691655779]},"available":true,"name":"iPhone 13 Pro Max SolidSuit (MagSafe 兼容) 涼丰 窯花 - Black \/ Classic","public_title":"Black \/ Classic","options":["Black","Classic"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0123252-GD14","featured_media":{"alt":null,"id":22672479387747,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-232-GD14.png?v=1691658538"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43102691524707,"title":"Shell Beige \/ Classic","option1":"Shell Beige","option2":"Classic","option3":null,"sku":"MST012320B-GD14","requires_shipping":true,"taxable":true,"featured_image":{"id":30313560440931,"product_id":6987953832035,"position":1,"created_at":"2023-08-10T17:08:58+08:00","updated_at":"2023-08-10T17:08:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-232-GD14.png?v=1691658538","variant_ids":[43102691328099,43102691524707,43102691655779]},"available":true,"name":"iPhone 13 Pro Max SolidSuit (MagSafe 兼容) 涼丰 窯花 - Shell Beige \/ Classic","public_title":"Shell Beige \/ Classic","options":["Shell Beige","Classic"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST012320B-GD14","featured_media":{"alt":null,"id":22672479387747,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-232-GD14.png?v=1691658538"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43102691655779,"title":"Parakeet Green \/ Classic","option1":"Parakeet Green","option2":"Classic","option3":null,"sku":"MST012320E-GD14","requires_shipping":true,"taxable":true,"featured_image":{"id":30313560440931,"product_id":6987953832035,"position":1,"created_at":"2023-08-10T17:08:58+08:00","updated_at":"2023-08-10T17:08:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-232-GD14.png?v=1691658538","variant_ids":[43102691328099,43102691524707,43102691655779]},"available":true,"name":"iPhone 13 Pro Max SolidSuit (MagSafe 兼容) 涼丰 窯花 - Parakeet Green \/ Classic","public_title":"Parakeet Green \/ Classic","options":["Parakeet Green","Classic"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST012320E-GD14","featured_media":{"alt":null,"id":22672479387747,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-232-GD14.png?v=1691658538"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-232-GD14.png?v=1691658538","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f11fa4b61f5b76ca9061dec335c79ddbbc76888.webp?v=1784014488","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79ccb6a9c000c1ba7863c01bab7a89c6a09514b5.webp?v=1784014492","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6014ec4aa8c48c9d6a82561b8cb94ddcc29d7c6.webp?v=1784014494","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb5190559d716e7aecc00f39e518c701fc57151d.webp?v=1784014495","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f11fa4b61f5b76ca9061dec335c79ddbbc76888_d9c0c50a-27e0-4232-97b6-9fd016b86c09.webp?v=1784018407","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79ccb6a9c000c1ba7863c01bab7a89c6a09514b5_91dc7278-1628-49f8-adaf-a095b6d0e120.webp?v=1784018409","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6014ec4aa8c48c9d6a82561b8cb94ddcc29d7c6_7258588a-1d95-4454-b17e-322c0bc179e7.webp?v=1784018412","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb5190559d716e7aecc00f39e518c701fc57151d_48d7032b-4007-4690-a0a4-2fd66bb836aa.webp?v=1784018416","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f11fa4b61f5b76ca9061dec335c79ddbbc76888_b9fa8480-d8c1-4dd8-af61-f48325f69d78.webp?v=1784018643","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79ccb6a9c000c1ba7863c01bab7a89c6a09514b5_01a39f32-214a-4b07-8c26-e2f4d2747076.webp?v=1784018643","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6014ec4aa8c48c9d6a82561b8cb94ddcc29d7c6_1939c6ca-134f-4278-93a5-e180e7d3203d.webp?v=1784018644","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb5190559d716e7aecc00f39e518c701fc57151d_e6ea8c3f-20f6-444d-99ca-d56e41396b05.webp?v=1784018645","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f11fa4b61f5b76ca9061dec335c79ddbbc76888_e1f4610c-32b3-4847-ab76-a7054883bca0.webp?v=1784018731","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79ccb6a9c000c1ba7863c01bab7a89c6a09514b5_7a3e0f05-a6bd-4f48-a459-5fdfce0c1a8e.webp?v=1784018732","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6014ec4aa8c48c9d6a82561b8cb94ddcc29d7c6_88f9bd66-1f00-4aae-b9d2-d2d2b4903ce2.webp?v=1784018733","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb5190559d716e7aecc00f39e518c701fc57151d_3652c54b-363f-452d-8adf-4e7a4f178c73.webp?v=1784018736"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-232-GD14.png?v=1691658538","options":["color","Types"],"media":[{"alt":null,"id":22672479387747,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-232-GD14.png?v=1691658538"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-232-GD14.png?v=1691658538","width":2000},{"alt":null,"id":27761821745251,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f11fa4b61f5b76ca9061dec335c79ddbbc76888.webp?v=1784014488"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f11fa4b61f5b76ca9061dec335c79ddbbc76888.webp?v=1784014488","width":2000},{"alt":null,"id":27761823252579,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79ccb6a9c000c1ba7863c01bab7a89c6a09514b5.webp?v=1784014492"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79ccb6a9c000c1ba7863c01bab7a89c6a09514b5.webp?v=1784014492","width":2000},{"alt":null,"id":27761824170083,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6014ec4aa8c48c9d6a82561b8cb94ddcc29d7c6.webp?v=1784014494"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6014ec4aa8c48c9d6a82561b8cb94ddcc29d7c6.webp?v=1784014494","width":2000},{"alt":null,"id":27761825185891,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb5190559d716e7aecc00f39e518c701fc57151d.webp?v=1784014495"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb5190559d716e7aecc00f39e518c701fc57151d.webp?v=1784014495","width":2000},{"alt":null,"id":27762609946723,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f11fa4b61f5b76ca9061dec335c79ddbbc76888_d9c0c50a-27e0-4232-97b6-9fd016b86c09.webp?v=1784018407"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f11fa4b61f5b76ca9061dec335c79ddbbc76888_d9c0c50a-27e0-4232-97b6-9fd016b86c09.webp?v=1784018407","width":2000},{"alt":null,"id":27762610831459,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79ccb6a9c000c1ba7863c01bab7a89c6a09514b5_91dc7278-1628-49f8-adaf-a095b6d0e120.webp?v=1784018409"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79ccb6a9c000c1ba7863c01bab7a89c6a09514b5_91dc7278-1628-49f8-adaf-a095b6d0e120.webp?v=1784018409","width":2000},{"alt":null,"id":27762611585123,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6014ec4aa8c48c9d6a82561b8cb94ddcc29d7c6_7258588a-1d95-4454-b17e-322c0bc179e7.webp?v=1784018412"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6014ec4aa8c48c9d6a82561b8cb94ddcc29d7c6_7258588a-1d95-4454-b17e-322c0bc179e7.webp?v=1784018412","width":2000},{"alt":null,"id":27762612174947,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb5190559d716e7aecc00f39e518c701fc57151d_48d7032b-4007-4690-a0a4-2fd66bb836aa.webp?v=1784018416"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb5190559d716e7aecc00f39e518c701fc57151d_48d7032b-4007-4690-a0a4-2fd66bb836aa.webp?v=1784018416","width":2000},{"alt":null,"id":27762633474147,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f11fa4b61f5b76ca9061dec335c79ddbbc76888_b9fa8480-d8c1-4dd8-af61-f48325f69d78.webp?v=1784018643"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f11fa4b61f5b76ca9061dec335c79ddbbc76888_b9fa8480-d8c1-4dd8-af61-f48325f69d78.webp?v=1784018643","width":2000},{"alt":null,"id":27762633703523,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79ccb6a9c000c1ba7863c01bab7a89c6a09514b5_01a39f32-214a-4b07-8c26-e2f4d2747076.webp?v=1784018643"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79ccb6a9c000c1ba7863c01bab7a89c6a09514b5_01a39f32-214a-4b07-8c26-e2f4d2747076.webp?v=1784018643","width":2000},{"alt":null,"id":27762633965667,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6014ec4aa8c48c9d6a82561b8cb94ddcc29d7c6_1939c6ca-134f-4278-93a5-e180e7d3203d.webp?v=1784018644"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6014ec4aa8c48c9d6a82561b8cb94ddcc29d7c6_1939c6ca-134f-4278-93a5-e180e7d3203d.webp?v=1784018644","width":2000},{"alt":null,"id":27762634260579,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb5190559d716e7aecc00f39e518c701fc57151d_e6ea8c3f-20f6-444d-99ca-d56e41396b05.webp?v=1784018645"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb5190559d716e7aecc00f39e518c701fc57151d_e6ea8c3f-20f6-444d-99ca-d56e41396b05.webp?v=1784018645","width":2000},{"alt":null,"id":27762654249059,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f11fa4b61f5b76ca9061dec335c79ddbbc76888_e1f4610c-32b3-4847-ab76-a7054883bca0.webp?v=1784018731"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f11fa4b61f5b76ca9061dec335c79ddbbc76888_e1f4610c-32b3-4847-ab76-a7054883bca0.webp?v=1784018731","width":2000},{"alt":null,"id":27762654773347,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79ccb6a9c000c1ba7863c01bab7a89c6a09514b5_7a3e0f05-a6bd-4f48-a459-5fdfce0c1a8e.webp?v=1784018732"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79ccb6a9c000c1ba7863c01bab7a89c6a09514b5_7a3e0f05-a6bd-4f48-a459-5fdfce0c1a8e.webp?v=1784018732","width":2000},{"alt":null,"id":27762655330403,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6014ec4aa8c48c9d6a82561b8cb94ddcc29d7c6_88f9bd66-1f00-4aae-b9d2-d2d2b4903ce2.webp?v=1784018733"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6014ec4aa8c48c9d6a82561b8cb94ddcc29d7c6_88f9bd66-1f00-4aae-b9d2-d2d2b4903ce2.webp?v=1784018733","width":2000},{"alt":null,"id":27762656411747,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb5190559d716e7aecc00f39e518c701fc57151d_3652c54b-363f-452d-8adf-4e7a4f178c73.webp?v=1784018736"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb5190559d716e7aecc00f39e518c701fc57151d_3652c54b-363f-452d-8adf-4e7a4f178c73.webp?v=1784018736","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43102691328099,"title":"Black \/ Classic","option1":"Black","option2":"Classic","option3":null,"sku":"MST0123252-GD14","requires_shipping":true,"taxable":true,"featured_image":{"id":30313560440931,"product_id":6987953832035,"position":1,"created_at":"2023-08-10T17:08:58+08:00","updated_at":"2023-08-10T17:08:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-232-GD14.png?v=1691658538","variant_ids":[43102691328099,43102691524707,43102691655779]},"available":true,"name":"iPhone 13 Pro Max SolidSuit (MagSafe 兼容) 涼丰 窯花 - Black \/ Classic","public_title":"Black \/ Classic","options":["Black","Classic"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0123252-GD14","featured_media":{"alt":null,"id":22672479387747,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-232-GD14.png?v=1691658538"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43102691524707,"title":"Shell Beige \/ Classic","option1":"Shell Beige","option2":"Classic","option3":null,"sku":"MST012320B-GD14","requires_shipping":true,"taxable":true,"featured_image":{"id":30313560440931,"product_id":6987953832035,"position":1,"created_at":"2023-08-10T17:08:58+08:00","updated_at":"2023-08-10T17:08:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-232-GD14.png?v=1691658538","variant_ids":[43102691328099,43102691524707,43102691655779]},"available":true,"name":"iPhone 13 Pro Max SolidSuit (MagSafe 兼容) 涼丰 窯花 - Shell Beige \/ Classic","public_title":"Shell Beige \/ Classic","options":["Shell Beige","Classic"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST012320B-GD14","featured_media":{"alt":null,"id":22672479387747,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-232-GD14.png?v=1691658538"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43102691655779,"title":"Parakeet Green \/ Classic","option1":"Parakeet Green","option2":"Classic","option3":null,"sku":"MST012320E-GD14","requires_shipping":true,"taxable":true,"featured_image":{"id":30313560440931,"product_id":6987953832035,"position":1,"created_at":"2023-08-10T17:08:58+08:00","updated_at":"2023-08-10T17:08:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-232-GD14.png?v=1691658538","variant_ids":[43102691328099,43102691524707,43102691655779]},"available":true,"name":"iPhone 13 Pro Max SolidSuit (MagSafe 兼容) 涼丰 窯花 - Parakeet Green \/ Classic","public_title":"Parakeet Green \/ Classic","options":["Parakeet Green","Classic"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST012320E-GD14","featured_media":{"alt":null,"id":22672479387747,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-232-GD14.png?v=1691658538"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43102691328099,"title":"Black \/ Classic","option1":"Black","option2":"Classic","option3":null,"sku":"MST0123252-GD14","requires_shipping":true,"taxable":true,"featured_image":{"id":30313560440931,"product_id":6987953832035,"position":1,"created_at":"2023-08-10T17:08:58+08:00","updated_at":"2023-08-10T17:08:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-232-GD14.png?v=1691658538","variant_ids":[43102691328099,43102691524707,43102691655779]},"available":true,"name":"iPhone 13 Pro Max SolidSuit (MagSafe 兼容) 涼丰 窯花 - Black \/ Classic","public_title":"Black \/ Classic","options":["Black","Classic"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0123252-GD14","featured_media":{"alt":null,"id":22672479387747,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-232-GD14.png?v=1691658538"}},"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: "停產"
}