{!! apply_filters(RENDER_PRODUCTS_IN_CHECKOUT_PAGE, $products) !!} @php $checkoutDiscounts = $discounts ?? null; if ($checkoutDiscounts === null) { $checkoutDiscountsQuery = \Botble\Ecommerce\Models\Discount::query() ->where('type', \Botble\Ecommerce\Enums\DiscountTypeEnum::COUPON) ->where('display_at_checkout', true) ->active() ->available(); $checkoutDiscounts = apply_filters('ecommerce_checkout_discounts_query', $checkoutDiscountsQuery, $products)->get(); } @endphp @include(EcommerceHelper::viewPath('discounts.partials.form'), ['discounts' => $checkoutDiscounts])
{{ __('Subtotal') }}:
{{ format_price($checkoutSubtotal) }}
{{ __('Tax') }} @if (Cart::instance('cart')->rawTax()) ({{ Cart::instance('cart')->taxClassesName() }}) @endif
{{ format_price(Cart::instance('cart')->rawTax()) }}
{{ __('Coupon code') }}:
{{ session('applied_coupon_code') }}
{{ __('Coupon code discount amount') }}:
{{ format_price($couponDiscountAmount) }}
{{ __('Promotion discount') }}:
-{{ format_price($checkoutPromotionDiscountAmount) }}
{{ __('Shipping fee') }}:
{{ format_price($shippingAmount) }}
{{ __('plugins/payment::payment.payment_fee') }}:
{{ format_price($paymentFee) }}
{{ __('Total') }}:
{{ format_price($checkoutTotal) }}