From 7fdc8fd4a6b28de033c848f9cfbdd1035955c798 Mon Sep 17 00:00:00 2001 From: phillipcodes <57101430+phillipcodes@users.noreply.github.com> Date: Tue, 17 Mar 2020 15:05:00 +0100 Subject: [PATCH] Update Cart.php --- packages/Webkul/API/Http/Resources/Checkout/Cart.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/Webkul/API/Http/Resources/Checkout/Cart.php b/packages/Webkul/API/Http/Resources/Checkout/Cart.php index 041937f2d..7b6ca3b56 100644 --- a/packages/Webkul/API/Http/Resources/Checkout/Cart.php +++ b/packages/Webkul/API/Http/Resources/Checkout/Cart.php @@ -49,10 +49,10 @@ class Cart extends JsonResource 'formated_tax_total' => core()->formatPrice($this->tax_total, $this->cart_currency_code), 'base_tax_total' => $this->base_tax_total, 'formated_base_tax_total' => core()->formatBasePrice($this->base_tax_total), - 'discount' => $this->discount, - 'formated_discount' => core()->formatPrice($this->discount, $this->cart_currency_code), - 'base_discount' => $this->base_discount, - 'formated_base_discount' => core()->formatBasePrice($this->base_discount), + 'discount' => $this->discount_amount, + 'formated_discount' => core()->formatPrice($this->discount_amount, $this->cart_currency_code), + 'base_discount' => $this->base_discount_amount, + 'formated_base_discount' => core()->formatBasePrice($this->base_discount_amount), 'checkout_method' => $this->checkout_method, 'is_guest' => $this->is_guest, 'is_active' => $this->is_active, @@ -93,4 +93,4 @@ class Cart extends JsonResource return $result; } -} \ No newline at end of file +}