back button implemented on checkout page
This commit is contained in:
parent
d232722b5d
commit
255664c4c0
|
|
@ -433,7 +433,8 @@ return [
|
|||
'contact' => 'Contact',
|
||||
'place-order' => 'Place Order',
|
||||
'new-address' => 'Add New Address',
|
||||
'save_as_address' => 'Save as Address'
|
||||
'save_as_address' => 'Save as Address',
|
||||
'back' => 'Back'
|
||||
],
|
||||
|
||||
'total' => [
|
||||
|
|
|
|||
|
|
@ -364,7 +364,15 @@
|
|||
|
||||
newShippingAddress: function() {
|
||||
this.new_shipping_address = true;
|
||||
}
|
||||
},
|
||||
|
||||
backToSavedBillingAddress: function() {
|
||||
this.new_billing_address = false;
|
||||
},
|
||||
|
||||
backToSavedShippingAddress: function() {
|
||||
this.new_shipping_address = false;
|
||||
},
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -69,6 +69,12 @@
|
|||
{{ __('shop::app.checkout.onepage.sign-in') }}
|
||||
</a>
|
||||
@endguest
|
||||
|
||||
@auth('customer')
|
||||
<a class="btn btn-lg btn-primary" @click = backToSavedBillingAddress()>
|
||||
{{ __('shop::app.checkout.onepage.back') }}
|
||||
</a>
|
||||
@endauth
|
||||
</div>
|
||||
|
||||
<div class="control-group" :class="[errors.has('address-form.billing[first_name]') ? 'has-error' : '']">
|
||||
|
|
@ -285,6 +291,12 @@
|
|||
|
||||
<div class="form-header">
|
||||
<h1>{{ __('shop::app.checkout.onepage.shipping-address') }}</h1>
|
||||
|
||||
@auth('customer')
|
||||
<a class="btn btn-lg btn-primary" @click = backToSavedShippingAddress()>
|
||||
{{ __('shop::app.checkout.onepage.back') }}
|
||||
</a>
|
||||
@endauth
|
||||
</div>
|
||||
|
||||
<div class="control-group" :class="[errors.has('address-form.shipping[first_name]') ? 'has-error' : '']">
|
||||
|
|
|
|||
Loading…
Reference in New Issue