Need help disabling popup image completely Opencart

Please LogIn to Reply!

Post By: guest | 01-19-2013 07:57 Reply

Question

Hi there!

I've been scouring the forums trying to find a solution to this problem. Not sure if there is a post out there for it, if there is I haven't found it.

I want to get rid of the zoom image popup completely. How would I do this? I think the mod it's using is fancybox..?

Any help would be greatly appreciated. Thanks!

Answers

v1.5.2.1
Open: catalog/view/theme/default/template/product/product.tpl and find this line:

Code: Select all
 <div class="image"><a href="<?php echo $popup; ?>" title="<?php echo $heading_title; ?>" class="colorbox" rel="colorbox"><img src="<?php echo $thumb; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" id="image" /></a></div>

Make it look like this:
Code: Select all
 <?php if ($thumb) { ?>
      <div class="image"><img src="<?php echo $thumb; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" id="image" /></div>
      <?php } ?>


Now find this line:
Code: Select all
<?php foreach ($images as $image) { ?>
        <a href="<?php echo $image['popup']; ?>" title="<?php echo $heading_title; ?>" class="colorbox" rel="colorbox"><img src="<?php echo $image['thumb']; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" /></a>
        <?php } ?>


Make it look like this:
Code: Select all
  <?php foreach ($images as $image) { ?>
       <img src="<?php echo $image['thumb']; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" />
        <?php } ?>

It's worth noting if you want the images to link to the larger images still, you could just remove the

Code: Select all
class="colorbox"

from the snippets avvici has given above

Damn, that's messy lol I just looked at what I wrote. Sorry bout that.

Find this:

Code: Select all
<div class="image"><a href="<?php echo $popup; ?>" title="<?php echo $heading_title; ?>" class="colorbox" rel="colorbox"><img src="<?php echo $thumb; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" id="image" /></a></div>


Make look like this:
Code: Select all
<div class="image"><a href="<?php echo $popup; ?>" title="<?php echo $heading_title; ?>"><img src="<?php echo $thumb; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" id="image" /></a></div>


Now Find this:
Code: Select all
<?php foreach ($images as $image) { ?>
        <a href="<?php echo $image['popup']; ?>" title="<?php echo $heading_title; ?>" class="colorbox" rel="colorbox"><img src="<?php echo $image['thumb']; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" /></a>
        <?php } ?>

Make it like this:
Code: Select all
<?php foreach ($images as $image) { ?>
        <a href="<?php echo $image['popup']; ?>" title="<?php echo $heading_title; ?>"><img src="<?php echo $image['thumb']; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" /></a>
        <?php } ?>

Reply Or Comment!
Please LogIn to Reply!