updated checkout flow
This commit is contained in:
@@ -322,30 +322,42 @@
|
||||
@endif
|
||||
<h3>Order Summary</h3>
|
||||
</div>
|
||||
|
||||
@if (!Auth::guest())
|
||||
|
||||
<div style="border: 1px solid #e2e2e2; padding: 10px; border-bottom: none;">
|
||||
|
||||
<p><strong>Ship to:</strong></p>
|
||||
@if ($address_book === null)
|
||||
<a href="{{ url('user/address-book') }}">[ Add ]</a>
|
||||
@else
|
||||
<div>{{ $address_book[0]->Fullname }}</div>
|
||||
<div>{{ $address_book[0]->ContactNumber }}</div>
|
||||
<div>
|
||||
{{ $address_book[0]->Address . ', ' . $address_book[0]->State . ', ' . $address_book[0]->City . ', ' . $address_book[0]->Country . ', ' . $address_book[0]->CountryCode . ' ' . $address_book[0]->ZipCode }}
|
||||
<a href="{{ url('user/address-book') }}">[ Edit ]</a> </div>
|
||||
@endif
|
||||
|
||||
|
||||
@if ($address_book === null)
|
||||
<a href="{{ url('user/address-book') }}">[ Add ]</a>
|
||||
@else
|
||||
<div>{{ $address_book[0]->Fullname }}</div>
|
||||
<div>{{ $address_book[0]->ContactNumber }}</div>
|
||||
<div>
|
||||
{{ $address_book[0]->Address . ', ' . $address_book[0]->State . ', ' . $address_book[0]->City . ', ' . $address_book[0]->Country . ', ' . $address_book[0]->CountryCode . ' ' . $address_book[0]->ZipCode }}
|
||||
<a href="{{ url('user/address-book') }}">[ Edit ]</a>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
</div>
|
||||
|
||||
@endif
|
||||
<div style="border: 1px solid #e2e2e2; padding: 10px; border-bottom: none;">
|
||||
<h5>Subtotal: <small>{{ number_format($tax['order_grandtotal'] , 2) . ' ' . $store_array[0]->StoreCurrency }}</small> </h5>
|
||||
<h5>Shipping Fee: <small>{{ number_format($shipping_fee , 2) . ' ' . $store_array[0]->StoreCurrency }}</small> </h5>
|
||||
<h5>Tax: <small>{{ number_format($tax['tax'] , 2) . ' ' . $store_array[0]->StoreCurrency }}</small> </h5>
|
||||
<hr>
|
||||
<h3>Total: <span id="my_subtotal">{{ number_format($tax['order_grandtotal'] + $shipping_fee + $tax['tax'], 2) }}</span>
|
||||
<small>{{ $store_array[0]->StoreCurrency }}</small></h3>
|
||||
<h5>Subtotal:
|
||||
<small>{{ number_format($tax['order_grandtotal'], 2) . ' ' . $store_array[0]->StoreCurrency }}</small>
|
||||
</h5>
|
||||
<h5>Shipping Fee:
|
||||
<small>{{ number_format($shipping_fee, 2) . ' ' . $store_array[0]->StoreCurrency }}</small>
|
||||
</h5>
|
||||
<h5>Tax:
|
||||
<small>{{ number_format($tax['tax'], 2) . ' ' . $store_array[0]->StoreCurrency }}</small>
|
||||
</h5>
|
||||
<hr>
|
||||
<h3>Total: <span
|
||||
id="my_subtotal">{{ number_format($tax['order_grandtotal'] + $shipping_fee + $tax['tax'], 2) }}</span>
|
||||
<small>{{ $store_array[0]->StoreCurrency }}</small>
|
||||
</h3>
|
||||
|
||||
{{-- {{ var_dump($tax) }}
|
||||
{{-- {{ var_dump($tax) }}
|
||||
{{ var_dump($shipping_fee) }} --}}
|
||||
<hr>
|
||||
<div class="form-group" id="voucher_list">
|
||||
@@ -386,13 +398,11 @@
|
||||
</div>
|
||||
|
||||
<div style="border: 1px solid #e2e2e2; padding: 10px;">
|
||||
<a @if ($getSubtotal <= 0) disabled @endif href="{{ url('getCheckout') }}" class="btn btn-primary w-100"
|
||||
style="background-color: #ffc300; border-color: #e2ad00; text-align: -webkit-center;"><img
|
||||
src="{{ asset('/public/images/paypal1.png') }}" class="img img-responsive"
|
||||
style="height:30px;"></a><br>
|
||||
<a @if ($getSubtotal <= 0) disabled @endif href="{{ url('getCheckout') }}" class="btn w-100"
|
||||
style="background-color: #ffc300; border-color: #e2ad00; text-align: -webkit-center;">Checkout</a><br>
|
||||
<!-- <div class="my-2">
|
||||
<button class="btn btn-lg btn-info w-100">Checkout with Voucher</button>
|
||||
</div> -->
|
||||
<button class="btn btn-lg btn-info w-100">Checkout with Voucher</button>
|
||||
</div> -->
|
||||
<div class="bg-info p-2 mt-2">
|
||||
Be advised payments made on merchbay will show up as crewsportswear on your receipt
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user