Merge pull request #2848 from shubhwebkul/master

misc. updates
This commit is contained in:
Jitendra Singh 2020-04-08 19:16:56 +05:30 committed by GitHub
commit f4f84c0a0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 25 additions and 18 deletions

View File

@ -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>

View File

@ -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 () {

View File

@ -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">