commit
f4f84c0a0f
|
|
@ -3,7 +3,15 @@
|
|||
@auth('customer')
|
||||
{!! view_render_event('bagisto.shop.products.wishlist.before') !!}
|
||||
|
||||
<a @if ($wishListHelper->getWishlistProduct($product)) class="add-to-wishlist already" @else class="add-to-wishlist" @endif href="{{ route('customer.wishlist.add', $product->product_id) }}" id="wishlist-changer">
|
||||
<a
|
||||
@if ($wishListHelper->getWishlistProduct($product))
|
||||
class="add-to-wishlist already"
|
||||
@else
|
||||
class="add-to-wishlist"
|
||||
@endif
|
||||
id="wishlist-changer"
|
||||
style="margin-right: 15px;"
|
||||
href="{{ route('customer.wishlist.add', $product->product_id) }}">
|
||||
<span class="icon wishlist-icon"></span>
|
||||
</a>
|
||||
|
||||
|
|
|
|||
|
|
@ -286,26 +286,25 @@
|
|||
return isManualValidationFail;
|
||||
},
|
||||
|
||||
isCustomerExist: function () {
|
||||
this.$validator.attach('email', 'required|email');
|
||||
isCustomerExist: function() {
|
||||
this.$validator.attach('address-form.billing[email]', 'required|email');
|
||||
|
||||
var this_this = this;
|
||||
this.$validator.validate('address-form.billing[email]', this.address.billing.email)
|
||||
.then(isValid => {
|
||||
if (! isValid)
|
||||
return;
|
||||
|
||||
this.$validator.validate('email', this.address.billing.email)
|
||||
.then(function(isValid) {
|
||||
if (! isValid)
|
||||
return;
|
||||
|
||||
this_this.$http.post("{{ route('customer.checkout.exist') }}", {email: this_this.address.billing.email})
|
||||
.then(function(response) {
|
||||
this_this.is_customer_exist = response.data ? 1 : 0;
|
||||
|
||||
if (response.data)
|
||||
document.body.style.cursor = 'default';
|
||||
})
|
||||
.catch(function (error) {})
|
||||
this.$http.post("{{ route('customer.checkout.exist') }}", {email: this.address.billing.email})
|
||||
.then(response => {
|
||||
this.is_customer_exist = response.data ? 1 : 0;
|
||||
console.log(this.is_customer_exist);
|
||||
|
||||
if (response.data)
|
||||
document.body.style.cursor = 'default';
|
||||
})
|
||||
.catch(function (error) {})
|
||||
})
|
||||
.catch(error => {})
|
||||
},
|
||||
|
||||
loginCustomer: function () {
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
name="password"
|
||||
v-model="address.billing.password" />
|
||||
|
||||
<div class="forgot-password-link">
|
||||
<div class="forgot-password-link mt-4 mb-4">
|
||||
<a href="{{ route('customer.forgot-password.create') }}">{{ __('shop::app.customer.login-form.forgot_pass') }}</a>
|
||||
|
||||
<div class="mt-10">
|
||||
|
|
|
|||
Loading…
Reference in New Issue