From 2c1bdbd80328c3968fd62f83713417f70e356ec0 Mon Sep 17 00:00:00 2001 From: Matt Floyd Date: Tue, 24 Sep 2024 08:57:16 -0400 Subject: [PATCH] Update carts.md Removes duplicated code sample --- docs/core/reference/carts.md | 9 --------- 1 file changed, 9 deletions(-) diff --git a/docs/core/reference/carts.md b/docs/core/reference/carts.md index 6d171c3d3f..9ef5955e50 100644 --- a/docs/core/reference/carts.md +++ b/docs/core/reference/carts.md @@ -129,15 +129,6 @@ foreach ($cart->shippingBreakdown->items as $shippingBreakdown) { } -foreach ($cart->discountBreakdown as $discountBreakdown) { - $discountBreakdown->discount_id - foreach ($discountBreakdown->lines as $discountLine) { - $discountLine->quantity - $discountLine->line - } - $discountBreakdown->total->value -} - foreach ($cart->discountBreakdown as $discountBreakdown) { $discountBreakdown->discount_id foreach ($discountBreakdown->lines as $discountLine) {