$product = {"id":6987868962915,"title":"iPhone 13 Pro Max SolidSuit (MagSafe 兼容) 涼丰 水豚君","handle":"iphone-13-pro-max-solidsuit-classic-magsafe-gd30","description":null,"published_at":"2023-08-03T02:10:31+08:00","created_at":"2023-07-30T19:41:32+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師SolidSuit專區哈利波特 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":43103403245667,"title":"Black \/ Classic","option1":"Black","option2":"Classic","option3":null,"sku":"MST0123252-GD30","requires_shipping":true,"taxable":true,"featured_image":{"id":30287508078691,"product_id":6987868962915,"position":1,"created_at":"2023-07-30T19:41:35+08:00","updated_at":"2023-07-30T19:41:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-232-GD30.png?v=1690717295","variant_ids":[43103403245667,43103403442275,43103403573347]},"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-GD30","featured_media":{"alt":null,"id":22646217834595,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-232-GD30.png?v=1690717295"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43103403442275,"title":"Shell Beige \/ Classic","option1":"Shell Beige","option2":"Classic","option3":null,"sku":"MST012320B-GD30","requires_shipping":true,"taxable":true,"featured_image":{"id":30287508078691,"product_id":6987868962915,"position":1,"created_at":"2023-07-30T19:41:35+08:00","updated_at":"2023-07-30T19:41:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-232-GD30.png?v=1690717295","variant_ids":[43103403245667,43103403442275,43103403573347]},"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-GD30","featured_media":{"alt":null,"id":22646217834595,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-232-GD30.png?v=1690717295"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43103403573347,"title":"Parakeet Green \/ Classic","option1":"Parakeet Green","option2":"Classic","option3":null,"sku":"MST012320E-GD30","requires_shipping":true,"taxable":true,"featured_image":{"id":30287508078691,"product_id":6987868962915,"position":1,"created_at":"2023-07-30T19:41:35+08:00","updated_at":"2023-07-30T19:41:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-232-GD30.png?v=1690717295","variant_ids":[43103403245667,43103403442275,43103403573347]},"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-GD30","featured_media":{"alt":null,"id":22646217834595,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-232-GD30.png?v=1690717295"}},"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-GD30.png?v=1690717295","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f33a2e308cc371e46fdafd0ede5982b0e3c6ab0f.webp?v=1784014492","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9abdc4e28b68353645859834ba7c80d12e2141fa.webp?v=1784014494","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3b9aafec95de6fceb9bf788cee9485ebaeceb64.webp?v=1784014495","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56d489099f3f0c98f5fce5ce6f8751a1565d8c02.webp?v=1784014497","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f33a2e308cc371e46fdafd0ede5982b0e3c6ab0f_29fef5bb-6a6c-4db0-8747-504fdfcc441c.webp?v=1784018413","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9abdc4e28b68353645859834ba7c80d12e2141fa_d952c7ff-c269-48a7-a845-d7fc3fe63267.webp?v=1784018416","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3b9aafec95de6fceb9bf788cee9485ebaeceb64_4989f24e-ff89-4040-9924-a30126572b76.webp?v=1784018428","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56d489099f3f0c98f5fce5ce6f8751a1565d8c02_94d44cf5-7731-4ade-a951-3b0bab480f3b.webp?v=1784018429","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f33a2e308cc371e46fdafd0ede5982b0e3c6ab0f_b0114732-3ba3-428c-8280-8d50fc1f8b68.webp?v=1784018646","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9abdc4e28b68353645859834ba7c80d12e2141fa_21fd0cb5-939b-4ea5-be1d-141bbe0272ba.webp?v=1784018647","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3b9aafec95de6fceb9bf788cee9485ebaeceb64_573b3bfd-c320-4e06-979e-2ecd180914af.webp?v=1784018648","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56d489099f3f0c98f5fce5ce6f8751a1565d8c02_0f7261fe-c64c-4595-9c7e-608601871d50.webp?v=1784018649","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f33a2e308cc371e46fdafd0ede5982b0e3c6ab0f_ca3b9080-e27d-48a1-ac43-4d32404db41b.webp?v=1784018733","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9abdc4e28b68353645859834ba7c80d12e2141fa_9f5b735f-7109-4d0e-baf2-e391949ff536.webp?v=1784018736","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3b9aafec95de6fceb9bf788cee9485ebaeceb64_41c5d929-be26-4cf8-823d-ea3dba439f8d.webp?v=1784018738","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56d489099f3f0c98f5fce5ce6f8751a1565d8c02_49c02d44-60ad-474b-a269-3e770ff150fb.webp?v=1784018739"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-232-GD30.png?v=1690717295","options":["color","Types"],"media":[{"alt":null,"id":22646217834595,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-232-GD30.png?v=1690717295"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-232-GD30.png?v=1690717295","width":2000},{"alt":null,"id":27761822662755,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f33a2e308cc371e46fdafd0ede5982b0e3c6ab0f.webp?v=1784014492"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f33a2e308cc371e46fdafd0ede5982b0e3c6ab0f.webp?v=1784014492","width":2000},{"alt":null,"id":27761823711331,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9abdc4e28b68353645859834ba7c80d12e2141fa.webp?v=1784014494"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9abdc4e28b68353645859834ba7c80d12e2141fa.webp?v=1784014494","width":2000},{"alt":null,"id":27761824858211,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3b9aafec95de6fceb9bf788cee9485ebaeceb64.webp?v=1784014495"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3b9aafec95de6fceb9bf788cee9485ebaeceb64.webp?v=1784014495","width":2000},{"alt":null,"id":27761825939555,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56d489099f3f0c98f5fce5ce6f8751a1565d8c02.webp?v=1784014497"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56d489099f3f0c98f5fce5ce6f8751a1565d8c02.webp?v=1784014497","width":2000},{"alt":null,"id":27762611650659,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f33a2e308cc371e46fdafd0ede5982b0e3c6ab0f_29fef5bb-6a6c-4db0-8747-504fdfcc441c.webp?v=1784018413"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f33a2e308cc371e46fdafd0ede5982b0e3c6ab0f_29fef5bb-6a6c-4db0-8747-504fdfcc441c.webp?v=1784018413","width":2000},{"alt":null,"id":27762612273251,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9abdc4e28b68353645859834ba7c80d12e2141fa_d952c7ff-c269-48a7-a845-d7fc3fe63267.webp?v=1784018416"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9abdc4e28b68353645859834ba7c80d12e2141fa_d952c7ff-c269-48a7-a845-d7fc3fe63267.webp?v=1784018416","width":2000},{"alt":null,"id":27762613387363,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3b9aafec95de6fceb9bf788cee9485ebaeceb64_4989f24e-ff89-4040-9924-a30126572b76.webp?v=1784018428"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3b9aafec95de6fceb9bf788cee9485ebaeceb64_4989f24e-ff89-4040-9924-a30126572b76.webp?v=1784018428","width":2000},{"alt":null,"id":27762613813347,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56d489099f3f0c98f5fce5ce6f8751a1565d8c02_94d44cf5-7731-4ade-a951-3b0bab480f3b.webp?v=1784018429"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56d489099f3f0c98f5fce5ce6f8751a1565d8c02_94d44cf5-7731-4ade-a951-3b0bab480f3b.webp?v=1784018429","width":2000},{"alt":null,"id":27762635276387,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f33a2e308cc371e46fdafd0ede5982b0e3c6ab0f_b0114732-3ba3-428c-8280-8d50fc1f8b68.webp?v=1784018646"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f33a2e308cc371e46fdafd0ede5982b0e3c6ab0f_b0114732-3ba3-428c-8280-8d50fc1f8b68.webp?v=1784018646","width":2000},{"alt":null,"id":27762636128355,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9abdc4e28b68353645859834ba7c80d12e2141fa_21fd0cb5-939b-4ea5-be1d-141bbe0272ba.webp?v=1784018647"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9abdc4e28b68353645859834ba7c80d12e2141fa_21fd0cb5-939b-4ea5-be1d-141bbe0272ba.webp?v=1784018647","width":2000},{"alt":null,"id":27762637078627,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3b9aafec95de6fceb9bf788cee9485ebaeceb64_573b3bfd-c320-4e06-979e-2ecd180914af.webp?v=1784018648"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3b9aafec95de6fceb9bf788cee9485ebaeceb64_573b3bfd-c320-4e06-979e-2ecd180914af.webp?v=1784018648","width":2000},{"alt":null,"id":27762638127203,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56d489099f3f0c98f5fce5ce6f8751a1565d8c02_0f7261fe-c64c-4595-9c7e-608601871d50.webp?v=1784018649"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56d489099f3f0c98f5fce5ce6f8751a1565d8c02_0f7261fe-c64c-4595-9c7e-608601871d50.webp?v=1784018649","width":2000},{"alt":null,"id":27762655035491,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f33a2e308cc371e46fdafd0ede5982b0e3c6ab0f_ca3b9080-e27d-48a1-ac43-4d32404db41b.webp?v=1784018733"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f33a2e308cc371e46fdafd0ede5982b0e3c6ab0f_ca3b9080-e27d-48a1-ac43-4d32404db41b.webp?v=1784018733","width":2000},{"alt":null,"id":27762656444515,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9abdc4e28b68353645859834ba7c80d12e2141fa_9f5b735f-7109-4d0e-baf2-e391949ff536.webp?v=1784018736"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9abdc4e28b68353645859834ba7c80d12e2141fa_9f5b735f-7109-4d0e-baf2-e391949ff536.webp?v=1784018736","width":2000},{"alt":null,"id":27762657067107,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3b9aafec95de6fceb9bf788cee9485ebaeceb64_41c5d929-be26-4cf8-823d-ea3dba439f8d.webp?v=1784018738"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3b9aafec95de6fceb9bf788cee9485ebaeceb64_41c5d929-be26-4cf8-823d-ea3dba439f8d.webp?v=1784018738","width":2000},{"alt":null,"id":27762657755235,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56d489099f3f0c98f5fce5ce6f8751a1565d8c02_49c02d44-60ad-474b-a269-3e770ff150fb.webp?v=1784018739"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56d489099f3f0c98f5fce5ce6f8751a1565d8c02_49c02d44-60ad-474b-a269-3e770ff150fb.webp?v=1784018739","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43103403245667,"title":"Black \/ Classic","option1":"Black","option2":"Classic","option3":null,"sku":"MST0123252-GD30","requires_shipping":true,"taxable":true,"featured_image":{"id":30287508078691,"product_id":6987868962915,"position":1,"created_at":"2023-07-30T19:41:35+08:00","updated_at":"2023-07-30T19:41:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-232-GD30.png?v=1690717295","variant_ids":[43103403245667,43103403442275,43103403573347]},"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-GD30","featured_media":{"alt":null,"id":22646217834595,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-232-GD30.png?v=1690717295"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43103403442275,"title":"Shell Beige \/ Classic","option1":"Shell Beige","option2":"Classic","option3":null,"sku":"MST012320B-GD30","requires_shipping":true,"taxable":true,"featured_image":{"id":30287508078691,"product_id":6987868962915,"position":1,"created_at":"2023-07-30T19:41:35+08:00","updated_at":"2023-07-30T19:41:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-232-GD30.png?v=1690717295","variant_ids":[43103403245667,43103403442275,43103403573347]},"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-GD30","featured_media":{"alt":null,"id":22646217834595,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-232-GD30.png?v=1690717295"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43103403573347,"title":"Parakeet Green \/ Classic","option1":"Parakeet Green","option2":"Classic","option3":null,"sku":"MST012320E-GD30","requires_shipping":true,"taxable":true,"featured_image":{"id":30287508078691,"product_id":6987868962915,"position":1,"created_at":"2023-07-30T19:41:35+08:00","updated_at":"2023-07-30T19:41:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-232-GD30.png?v=1690717295","variant_ids":[43103403245667,43103403442275,43103403573347]},"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-GD30","featured_media":{"alt":null,"id":22646217834595,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-232-GD30.png?v=1690717295"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43103403245667,"title":"Black \/ Classic","option1":"Black","option2":"Classic","option3":null,"sku":"MST0123252-GD30","requires_shipping":true,"taxable":true,"featured_image":{"id":30287508078691,"product_id":6987868962915,"position":1,"created_at":"2023-07-30T19:41:35+08:00","updated_at":"2023-07-30T19:41:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-232-GD30.png?v=1690717295","variant_ids":[43103403245667,43103403442275,43103403573347]},"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-GD30","featured_media":{"alt":null,"id":22646217834595,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-232-GD30.png?v=1690717295"}},"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: "停產"
}