Forums / General Questions / Can I use a completely different set of previous/next images?

Can I use a completely different set of previous/next images?

Started by mcpisik on 22 Apr 2013, 7:56 PM · Views: 591

Results 1 to 2 of 2
22 Apr 2013, 7:56 PM
#1
mcpisik avatar

mcpisik

Zen Follower

Join Date:
Jan 2007
Location:
Mount Maunganui, New Zealand
Posts:
417
Plugin Contributions:
0

Can I use a completely different set of previous/next images?

Hi,
At the moment, the previous/next images are taken from my small images.
The only problem is I cant set 'product info' image width, to use a reduced size setting, without distorting pr/next image.

eg. Small image size is 190x114
Divide that by 3 say, and make the image height setting only 63.3333333333 (becomes 63)
Will be distorted

So I'd like to make a folder of images say at 60x40 and use those for prev/next

Any ideas?

22 Apr 2013, 9:02 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Can I use a completely different set of previous/next images?

You would need to rewrite these two lines in /includes/modules/YOUR_TEMPLATE_NAME/product_prev_next.php to do a whole lot more complicated processing than just calling the basic image, as it does now:```
$previous_image = zen_get_products_image($previous, PREVIOUS_NEXT_IMAGE_WIDTH, PREVIOUS_NEXT_IMAGE_HEIGHT);
$next_item_image = zen_get_products_image($next_item, PREVIOUS_NEXT_IMAGE_WIDTH, PREVIOUS_NEXT_IMAGE_HEIGHT);

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.