conditon added for checkout back button

This commit is contained in:
rahul shukla 2019-09-13 17:02:46 +05:30
parent 00b83b1398
commit 53030b2a21
1 changed files with 10 additions and 6 deletions

View File

@ -71,9 +71,11 @@
@endguest
@auth('customer')
@if(count(auth('customer')->user()->addresses))
<a class="btn btn-lg btn-primary" @click = backToSavedBillingAddress()>
{{ __('shop::app.checkout.onepage.back') }}
</a>
@endif
@endauth
</div>
@ -293,9 +295,11 @@
<h1>{{ __('shop::app.checkout.onepage.shipping-address') }}</h1>
@auth('customer')
@if(count(auth('customer')->user()->addresses))
<a class="btn btn-lg btn-primary" @click = backToSavedShippingAddress()>
{{ __('shop::app.checkout.onepage.back') }}
</a>
@endif
@endauth
</div>