This commit is contained in:
jitendra 2022-03-28 13:34:29 +05:30
parent 6edd13c4e2
commit 2c56804049
1 changed files with 13 additions and 7 deletions

View File

@ -49,6 +49,11 @@
$minimumOrderAmount = (float) core()->getConfigData('sales.orderSettings.minimum-order.minimum_order_amount') ?? 0;
@endphp
@if (Cart::hasError())
<button class="theme-btn text-uppercase col-12 remove-decoration fw6 text-center" disabled>
{{ __('velocity::app.checkout.proceed') }}
</button>
@else
<proceed-to-checkout
href="{{ route('shop.checkout.onepage.index') }}"
add-class="theme-btn text-uppercase col-12 remove-decoration fw6 text-center"
@ -56,5 +61,6 @@
is-minimum-order-completed="{{ $cart->checkMinimumOrder() }}"
minimum-order-message="{{ __('shop::app.checkout.cart.minimum-order-message', ['amount' => core()->currency($minimumOrderAmount)]) }}">
</proceed-to-checkout>
@endif
</div>
</div>