Hi all,
Using NOPCommerce 3.50,
I've set DefaultPictureZoomEnabled to True and initially I was getting a "magnific popup is not a function" error in firebug when the product details page (_ProductDetailsPictures.cshtml) was loading. Upon changing the
<script type="text/javascript">
declaration to explicitly include the source as such:
<script src="~/Scripts/jquery.magnific-popup.js" type="text/javascript">
$(document).ready(function () {
$('#[email protected]').magnificPopup(
{
type: 'image',
removalDelay: 300,
gallery: {
enabled: true
}
});
});
</script>
I was no longer getting the "magnific popup is not a function" error, however, when I click on an image, it still opens in a separate tab and firebug tells me there is no <script> tag on the page.
I've spent too much time on this and I'm primarily a back end developer with very little web front-end skills. Any help is greatly appreciated. Thanks.