Page 1 of 1

Hide or Rewrite Product Image URL

Posted: Wed Jul 23, 2014 6:52 am
by fortuna
Hi,

I would like to hide the product image URL displayed on the product page when mouse over image.
For example:
website/opencart/image/cache/data/ourcategory/producta-500x500.jpeg

I am sure product.tpl can be modified but don't know the code well enough.

Re: Hide or Rewrite Product Image URL

Posted: Wed Jul 23, 2014 2:39 pm
by imdevlper18
1) open product.tpl

Find this block of statement if you are using default theme:

Code: Select all

 <div class="image"><a href="<?php echo $popup; ?>" title="<?php echo $heading_title; ?>" class="colorbox"><img src="<?php echo $thumb; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" id="image" /></a></div>
Replace it with

Code: Select all

<div class="image"><img src="<?php echo $thumb; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" id="image" /></div>