$product = {"id":6987960877155,"title":"iPhone 13 Pro Max SolidSuit (MagSafe 兼容) 涼丰 麵包與梨","handle":"iphone-13-pro-max-solidsuit-classic-magsafe-gd01","description":null,"published_at":"2023-08-03T02:16:55+08:00","created_at":"2023-07-30T19:54:40+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":43102361223267,"title":"Black \/ Classic","option1":"Black","option2":"Classic","option3":null,"sku":"MST0123252-GD01","requires_shipping":true,"taxable":true,"featured_image":{"id":30287605137507,"product_id":6987960877155,"position":1,"created_at":"2023-07-30T19:54:44+08:00","updated_at":"2023-07-30T19:54:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-232-GD01.png?v=1690718084","variant_ids":[43102361223267,43102361419875,43102361550947]},"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-GD01","featured_media":{"alt":null,"id":22646314893411,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-232-GD01.png?v=1690718084"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43102361419875,"title":"Shell Beige \/ Classic","option1":"Shell Beige","option2":"Classic","option3":null,"sku":"MST012320B-GD01","requires_shipping":true,"taxable":true,"featured_image":{"id":30287605137507,"product_id":6987960877155,"position":1,"created_at":"2023-07-30T19:54:44+08:00","updated_at":"2023-07-30T19:54:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-232-GD01.png?v=1690718084","variant_ids":[43102361223267,43102361419875,43102361550947]},"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-GD01","featured_media":{"alt":null,"id":22646314893411,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-232-GD01.png?v=1690718084"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43102361550947,"title":"Parakeet Green \/ Classic","option1":"Parakeet Green","option2":"Classic","option3":null,"sku":"MST012320E-GD01","requires_shipping":true,"taxable":true,"featured_image":{"id":30287605137507,"product_id":6987960877155,"position":1,"created_at":"2023-07-30T19:54:44+08:00","updated_at":"2023-07-30T19:54:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-232-GD01.png?v=1690718084","variant_ids":[43102361223267,43102361419875,43102361550947]},"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-GD01","featured_media":{"alt":null,"id":22646314893411,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-232-GD01.png?v=1690718084"}},"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-GD01.png?v=1690718084","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0557234a38120eb4fa4219c4ef9ec075b12a8ab.webp?v=1784011600","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/668aa37305694eb7615a179c96684fc160884402.webp?v=1784011601","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef7b41ac71d83781bd456b66d2a59767ef140c3a.webp?v=1784011601","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42d9b3b9027de76ef612f3085f431b5ac1f820e1.webp?v=1784011602","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0557234a38120eb4fa4219c4ef9ec075b12a8ab_4b001f4f-df6a-424a-bc5c-224184e4045d.webp?v=1784013349","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/668aa37305694eb7615a179c96684fc160884402_2a03574f-c58c-4983-bf75-3ca78f8a78ab.webp?v=1784013349","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef7b41ac71d83781bd456b66d2a59767ef140c3a_48a95857-9a73-4d90-bce2-fb1b521a2034.webp?v=1784013350","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42d9b3b9027de76ef612f3085f431b5ac1f820e1_60c43a48-2761-4345-9b2b-3eb9731702b5.webp?v=1784013351","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0557234a38120eb4fa4219c4ef9ec075b12a8ab_3c06a023-e901-414c-ad4f-221b9987b168.webp?v=1784013469","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/668aa37305694eb7615a179c96684fc160884402_a46422b4-f992-4c79-b53d-a89c0159b1b2.webp?v=1784013471","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef7b41ac71d83781bd456b66d2a59767ef140c3a_b3d420e3-c749-41ca-b551-5510b7480120.webp?v=1784013472","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42d9b3b9027de76ef612f3085f431b5ac1f820e1_122db608-7531-40e7-a040-f485ef21fed0.webp?v=1784013473","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0557234a38120eb4fa4219c4ef9ec075b12a8ab_396ba4c0-3abb-445d-8490-211c4b330750.webp?v=1784013531","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/668aa37305694eb7615a179c96684fc160884402_247f553c-5fff-49cd-ad56-236ea11b6c8f.webp?v=1784013531","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef7b41ac71d83781bd456b66d2a59767ef140c3a_78144e71-63d1-409b-b77c-b6dff61f3c1e.webp?v=1784013532","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42d9b3b9027de76ef612f3085f431b5ac1f820e1_5906e836-4974-4a8a-9830-bd461d0bad1a.webp?v=1784013535"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-232-GD01.png?v=1690718084","options":["color","Types"],"media":[{"alt":null,"id":22646314893411,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-232-GD01.png?v=1690718084"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-232-GD01.png?v=1690718084","width":2000},{"alt":null,"id":27761313808483,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0557234a38120eb4fa4219c4ef9ec075b12a8ab.webp?v=1784011600"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0557234a38120eb4fa4219c4ef9ec075b12a8ab.webp?v=1784011600","width":2000},{"alt":null,"id":27761314037859,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/668aa37305694eb7615a179c96684fc160884402.webp?v=1784011601"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/668aa37305694eb7615a179c96684fc160884402.webp?v=1784011601","width":2000},{"alt":null,"id":27761314332771,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef7b41ac71d83781bd456b66d2a59767ef140c3a.webp?v=1784011601"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef7b41ac71d83781bd456b66d2a59767ef140c3a.webp?v=1784011601","width":2000},{"alt":null,"id":27761314496611,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42d9b3b9027de76ef612f3085f431b5ac1f820e1.webp?v=1784011602"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42d9b3b9027de76ef612f3085f431b5ac1f820e1.webp?v=1784011602","width":2000},{"alt":null,"id":27761654366307,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0557234a38120eb4fa4219c4ef9ec075b12a8ab_4b001f4f-df6a-424a-bc5c-224184e4045d.webp?v=1784013349"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0557234a38120eb4fa4219c4ef9ec075b12a8ab_4b001f4f-df6a-424a-bc5c-224184e4045d.webp?v=1784013349","width":2000},{"alt":null,"id":27761654464611,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/668aa37305694eb7615a179c96684fc160884402_2a03574f-c58c-4983-bf75-3ca78f8a78ab.webp?v=1784013349"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/668aa37305694eb7615a179c96684fc160884402_2a03574f-c58c-4983-bf75-3ca78f8a78ab.webp?v=1784013349","width":2000},{"alt":null,"id":27761654595683,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef7b41ac71d83781bd456b66d2a59767ef140c3a_48a95857-9a73-4d90-bce2-fb1b521a2034.webp?v=1784013350"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef7b41ac71d83781bd456b66d2a59767ef140c3a_48a95857-9a73-4d90-bce2-fb1b521a2034.webp?v=1784013350","width":2000},{"alt":null,"id":27761654726755,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42d9b3b9027de76ef612f3085f431b5ac1f820e1_60c43a48-2761-4345-9b2b-3eb9731702b5.webp?v=1784013351"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42d9b3b9027de76ef612f3085f431b5ac1f820e1_60c43a48-2761-4345-9b2b-3eb9731702b5.webp?v=1784013351","width":2000},{"alt":null,"id":27761665114211,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0557234a38120eb4fa4219c4ef9ec075b12a8ab_3c06a023-e901-414c-ad4f-221b9987b168.webp?v=1784013469"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0557234a38120eb4fa4219c4ef9ec075b12a8ab_3c06a023-e901-414c-ad4f-221b9987b168.webp?v=1784013469","width":2000},{"alt":null,"id":27761665310819,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/668aa37305694eb7615a179c96684fc160884402_a46422b4-f992-4c79-b53d-a89c0159b1b2.webp?v=1784013471"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/668aa37305694eb7615a179c96684fc160884402_a46422b4-f992-4c79-b53d-a89c0159b1b2.webp?v=1784013471","width":2000},{"alt":null,"id":27761665671267,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef7b41ac71d83781bd456b66d2a59767ef140c3a_b3d420e3-c749-41ca-b551-5510b7480120.webp?v=1784013472"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef7b41ac71d83781bd456b66d2a59767ef140c3a_b3d420e3-c749-41ca-b551-5510b7480120.webp?v=1784013472","width":2000},{"alt":null,"id":27761666064483,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42d9b3b9027de76ef612f3085f431b5ac1f820e1_122db608-7531-40e7-a040-f485ef21fed0.webp?v=1784013473"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42d9b3b9027de76ef612f3085f431b5ac1f820e1_122db608-7531-40e7-a040-f485ef21fed0.webp?v=1784013473","width":2000},{"alt":null,"id":27761674977379,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0557234a38120eb4fa4219c4ef9ec075b12a8ab_396ba4c0-3abb-445d-8490-211c4b330750.webp?v=1784013531"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0557234a38120eb4fa4219c4ef9ec075b12a8ab_396ba4c0-3abb-445d-8490-211c4b330750.webp?v=1784013531","width":2000},{"alt":null,"id":27761675829347,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/668aa37305694eb7615a179c96684fc160884402_247f553c-5fff-49cd-ad56-236ea11b6c8f.webp?v=1784013531"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/668aa37305694eb7615a179c96684fc160884402_247f553c-5fff-49cd-ad56-236ea11b6c8f.webp?v=1784013531","width":2000},{"alt":null,"id":27761676484707,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef7b41ac71d83781bd456b66d2a59767ef140c3a_78144e71-63d1-409b-b77c-b6dff61f3c1e.webp?v=1784013532"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef7b41ac71d83781bd456b66d2a59767ef140c3a_78144e71-63d1-409b-b77c-b6dff61f3c1e.webp?v=1784013532","width":2000},{"alt":null,"id":27761676877923,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42d9b3b9027de76ef612f3085f431b5ac1f820e1_5906e836-4974-4a8a-9830-bd461d0bad1a.webp?v=1784013535"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42d9b3b9027de76ef612f3085f431b5ac1f820e1_5906e836-4974-4a8a-9830-bd461d0bad1a.webp?v=1784013535","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43102361223267,"title":"Black \/ Classic","option1":"Black","option2":"Classic","option3":null,"sku":"MST0123252-GD01","requires_shipping":true,"taxable":true,"featured_image":{"id":30287605137507,"product_id":6987960877155,"position":1,"created_at":"2023-07-30T19:54:44+08:00","updated_at":"2023-07-30T19:54:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-232-GD01.png?v=1690718084","variant_ids":[43102361223267,43102361419875,43102361550947]},"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-GD01","featured_media":{"alt":null,"id":22646314893411,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-232-GD01.png?v=1690718084"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43102361419875,"title":"Shell Beige \/ Classic","option1":"Shell Beige","option2":"Classic","option3":null,"sku":"MST012320B-GD01","requires_shipping":true,"taxable":true,"featured_image":{"id":30287605137507,"product_id":6987960877155,"position":1,"created_at":"2023-07-30T19:54:44+08:00","updated_at":"2023-07-30T19:54:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-232-GD01.png?v=1690718084","variant_ids":[43102361223267,43102361419875,43102361550947]},"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-GD01","featured_media":{"alt":null,"id":22646314893411,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-232-GD01.png?v=1690718084"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43102361550947,"title":"Parakeet Green \/ Classic","option1":"Parakeet Green","option2":"Classic","option3":null,"sku":"MST012320E-GD01","requires_shipping":true,"taxable":true,"featured_image":{"id":30287605137507,"product_id":6987960877155,"position":1,"created_at":"2023-07-30T19:54:44+08:00","updated_at":"2023-07-30T19:54:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-232-GD01.png?v=1690718084","variant_ids":[43102361223267,43102361419875,43102361550947]},"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-GD01","featured_media":{"alt":null,"id":22646314893411,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-232-GD01.png?v=1690718084"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43102361223267,"title":"Black \/ Classic","option1":"Black","option2":"Classic","option3":null,"sku":"MST0123252-GD01","requires_shipping":true,"taxable":true,"featured_image":{"id":30287605137507,"product_id":6987960877155,"position":1,"created_at":"2023-07-30T19:54:44+08:00","updated_at":"2023-07-30T19:54:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-232-GD01.png?v=1690718084","variant_ids":[43102361223267,43102361419875,43102361550947]},"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-GD01","featured_media":{"alt":null,"id":22646314893411,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-232-GD01.png?v=1690718084"}},"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: "停產" }