OC 2.3.0.2
We find product page pop-ups are not necessary so I'd like to disable them entirely on product pages. I've searched and tried a couple of solutions, but with no success. Any thoughts on how to disable these product page pop-ups? A paid extension would be fine, but couldn't find one.
Thanks, John
We find product page pop-ups are not necessary so I'd like to disable them entirely on product pages. I've searched and tried a couple of solutions, but with no success. Any thoughts on how to disable these product page pop-ups? A paid extension would be fine, but couldn't find one.
Thanks, John
No, I meant the pop-up for the main product image. The way I'm setting up the store, the main product image is fine in its size... its pop-up when clicked is not necessary. That would go for any additional product images too though. I've attached an example... the pop-up is not necessary, as you can see.
Hi
In default theme, this file:
catalog\view\theme\default\template\product\product.tpl
This code:
makes the popup. you can remove it.
if you are using a custom theme, it can be different.
In default theme, this file:
catalog\view\theme\default\template\product\product.tpl
This code:
Code: Select all
$(document).ready(function() {
$('.thumbnails').magnificPopup({
type:'image',
delegate: 'a',
gallery: {
enabled:true
}
});
});
if you are using a custom theme, it can be different.
Unfortunately the site isn't live yet as I still have to do a few things before we do make it live, but I did refresh the modifications. When happens is that rather than a pop-up on top of the page, clicking on the main product image leads to the image directly on a black background.
I very much appreciate the help here, and if ok by you, I'd like to post a live link once I get this store open... this should be in a day or two days, tops.
John
I very much appreciate the help here, and if ok by you, I'd like to post a live link once I get this store open... this should be in a day or two days, tops.
John
You can remove the link, find:
Change it to:
Code: Select all
<li><a class="thumbnail" href="<?php echo $popup; ?>" title="<?php echo $heading_title; ?>"><img src="<?php echo $thumb; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" /></a></li>
Code: Select all
<li><img src="<?php echo $thumb; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" /></li>
Well, it came very close... and again - thanks for the help! While it did get rid of the pop-up action, and that's great, the images lost their resizing ability. Here you can see the image is staying full sized with a horizontal scrollbar once the page is sized down.
Please add class="img-responsive" to the img, like this:
Code: Select all
<li><img class="img-responsive" src="<?php echo $thumb; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" /></li>
WOW!!!
I can't say thank you enough for this help, your solution works perfectly! Given that all our original images are in the 640px wide size, the pop-up almost took away from the page. This solution is great.
https://www.ztrackresale.com/locomotive ... lag-6104-3
Again thanks so much for the help, it is really appreciated!
John
I can't say thank you enough for this help, your solution works perfectly! Given that all our original images are in the 640px wide size, the pop-up almost took away from the page. This solution is great.
https://www.ztrackresale.com/locomotive ... lag-6104-3
Again thanks so much for the help, it is really appreciated!
John
Who is online
Users browsing this forum: No registered users and 254 guests