Merge pull request #806 from rahulshukla-webkul/development

Development
This commit is contained in:
Jitendra Singh 2019-04-05 16:57:59 +05:30 committed by GitHub
commit cdd0e5c81f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 4 deletions

View File

@ -42,11 +42,13 @@
{{-- Uncomment the line below for activating share links --}}
{{-- @include('shop::products.sharelinks') --}}
@auth('customer')
<a class="add-to-wishlist" href="{{ route('customer.wishlist.add', $product->id) }}">
</a>
@endauth
</div>
</div>
</script>
@ -157,6 +159,17 @@
zoomImage.data('zoom-image', $(this).data('zoom-image'));
zoomImage.ezPlus();
});
$(document).mousemove(function(event) {
if ( (event.pageX - $('.product-hero-image').offset().left > 440 ) && (event.pageX - $('.product-hero-image').offset().left < 465) && (event.pageY - $('.product-hero-image').offset().top > 16) && (event.pageY - $('.product-hero-image').offset().top < 38)) {
$('.zoomContainer').attr('style', 'z-index: -1 !important');
} else {
$('.zoomContainer').css({"position": "absolute", "top": "143px", "left"
: "249px", "height": "480px", "width": "480px", "z-index": "999" });
}
});
})
</script>