Post by JPC60 » Tue Jul 30, 2019 8:27 am

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

New member

Posts

Joined
Thu Nov 17, 2011 5:42 am

Post by DigitCart » Tue Jul 30, 2019 3:57 pm

Hi
Do you mean product additional images?

My Extensions


User avatar
Active Member

Posts

Joined
Thu Jun 22, 2017 5:32 pm


Post by JPC60 » Tue Jul 30, 2019 4:12 pm

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.
Image

DigitCart wrote:
Tue Jul 30, 2019 3:57 pm
Hi
Do you mean product additional images?

New member

Posts

Joined
Thu Nov 17, 2011 5:42 am

Post by DigitCart » Tue Jul 30, 2019 4:24 pm

Hi
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
		}
	});
});
makes the popup. you can remove it.
if you are using a custom theme, it can be different.

My Extensions


User avatar
Active Member

Posts

Joined
Thu Jun 22, 2017 5:32 pm


Post by JPC60 » Wed Jul 31, 2019 1:13 am

Hi,

Thanks for this, but it didn't work. I'm on 2.3.0.2 using the default theme, I found the file and code but no luck with removing that snippet.

John

New member

Posts

Joined
Thu Nov 17, 2011 5:42 am

Post by DigitCart » Wed Jul 31, 2019 1:26 am

Hi
did you refresh the modifications?
can you paste a link to your product page?

My Extensions


User avatar
Active Member

Posts

Joined
Thu Jun 22, 2017 5:32 pm


Post by JPC60 » Wed Jul 31, 2019 1:37 am

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

New member

Posts

Joined
Thu Nov 17, 2011 5:42 am

Post by DigitCart » Wed Jul 31, 2019 1:43 am

You can remove the link, find:

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>
Change it to:

Code: Select all

<li><img src="<?php echo $thumb; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" /></li>

My Extensions


User avatar
Active Member

Posts

Joined
Thu Jun 22, 2017 5:32 pm


Post by JPC60 » Wed Jul 31, 2019 12:10 pm

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.
Image

New member

Posts

Joined
Thu Nov 17, 2011 5:42 am

Post by DigitCart » Wed Jul 31, 2019 3:24 pm

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>

My Extensions


User avatar
Active Member

Posts

Joined
Thu Jun 22, 2017 5:32 pm


Post by JPC60 » Wed Jul 31, 2019 3:47 pm

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

New member

Posts

Joined
Thu Nov 17, 2011 5:42 am

Post by DigitCart » Wed Jul 31, 2019 3:51 pm

You are welcome.

My Extensions


User avatar
Active Member

Posts

Joined
Thu Jun 22, 2017 5:32 pm


Post by JPC60 » Fri Aug 02, 2019 3:33 am

Hi again,

Sorry but I meant to ask... do you have a "Buy Me A Beer / Coffee... etc" kind of thing set up? Your help really was terrific and I should have asked this immediately.

John

New member

Posts

Joined
Thu Nov 17, 2011 5:42 am

Post by DigitCart » Fri Aug 02, 2019 5:27 am

Hi John

I have no such things. anyway thank you.

My Extensions


User avatar
Active Member

Posts

Joined
Thu Jun 22, 2017 5:32 pm


Post by JPC60 » Fri Aug 02, 2019 5:32 am

Ok, I thought I'd check!

John

New member

Posts

Joined
Thu Nov 17, 2011 5:42 am
Who is online

Users browsing this forum: No registered users and 254 guests