Hi guys,
In the home page, the image being called is the thumb, like so. <img src="<?php echo $products[$j]['thumb']; ?>
Upon clicking on it, we go to the product page. I want to use one of the alternate images as the main image, may I know what is the code to call alternate images?
Thanks peeps!
In the home page, the image being called is the thumb, like so. <img src="<?php echo $products[$j]['thumb']; ?>
Upon clicking on it, we go to the product page. I want to use one of the alternate images as the main image, may I know what is the code to call alternate images?
Thanks peeps!
Thanks Jay, I think I did not quite put the question well, I apologize. I was actually wondering if there was a call to the alternate images. For the thumbs I know it's <?php echo $thumb; ?> and was wondering what it would be for the alternate images? Reason why is because I would like to call it to replace the current thumb image.
the additional images are in an array called $images which contains all the additional thumb and popup. Look at the additional images tab section for a better idea.
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
You can assign an image of any size in the controller. You'll need to have the originals url (which you can get from each product). If you take a look at the controllers of things like the bestsellers module (/catalog/controller/module/bestseller.php) and look for the image cache lines, they should give you a better understanding of how it all works
Thanks dude, I've kind of cheated on this one. I increased the size of the thumbnails and removed the original image link. Ha.JAY6390 wrote:You can assign an image of any size in the controller. You'll need to have the originals url (which you can get from each product). If you take a look at the controllers of things like the bestsellers module (/catalog/controller/module/bestseller.php) and look for the image cache lines, they should give you a better understanding of how it all works
Who is online
Users browsing this forum: No registered users and 4 guests