From d365b122db41cbd84ece2568e5e106f31b458fa7 Mon Sep 17 00:00:00 2001 From: IceToast Date: Fri, 2 Jun 2023 14:54:02 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Coupon=20frontend,=20calc?= =?UTF-8?q?ulation=20and=20submitting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/default/views/store/checkout.blade.php | 355 +++++++++--------- 1 file changed, 177 insertions(+), 178 deletions(-) diff --git a/themes/default/views/store/checkout.blade.php b/themes/default/views/store/checkout.blade.php index 5fc36004..5d5de5cf 100644 --- a/themes/default/views/store/checkout.blade.php +++ b/themes/default/views/store/checkout.blade.php @@ -22,104 +22,87 @@ -
+
-
+ @csrf @method('post')
@if (!$productIsFree)
-
-

- - Payment Methods -

-
-
- - -
-
- @foreach ($paymentGateways as $gateway) -
-
- - - +
+
    +
  • +
    + + +
    + {{ __('Payment Methods') }} +
    + @foreach ($paymentGateways as $gateway) +
    +
    + + + + +
    +
    + @endforeach
    - @endforeach -
    -
+
+ + +
  • +
    +
    + @if ($isCouponsEnabled) + {{ __('Coupon') }} + +
    + + + +
    + @error('coupon_code') +
    + {{ $message }} +
    + @enderror + @endif +
    +
    +
  • +
    - @if ($isCouponsEnabled) -
    -
    -
    -

    - Coupon Code -

    -
    -
    -
    - - -
    - @error('coupon_code') -
    - {{ $message }} -
    - @enderror -
    -
    -
    - @endif @endif
    @@ -173,7 +156,7 @@
  • {{ __('Subtotal') }} - {{ $product->formatToCurrency($discountedprice) }} + {{ $product->formatToCurrency($product->price) }}
  • {{ __('Tax') }} @@ -184,18 +167,19 @@ + {{ $product->formatToCurrency($taxvalue) }}
    -
    - - {{ __('Coupon Discount') }} - - +
    + + {{ __('Coupon Discount') }} + + - +
    @if ($discountpercent && $discountvalue)
    {{ __('Discount') }} - ({{ $discountpercent }}%): + ({{ $discountpercent }}%) -{{ $product->formatToCurrency($discountvalue) }}
    @@ -203,40 +187,36 @@
    {{ __('Total') }} - - - {{ $product->formatToCurrency($total) }} + +
    - - +
    @@ -248,81 +228,100 @@ @endsection