Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Let's Contribute & Make This Happen!

Let's Contribute & Make This Happen!

Locked

Views: 1,053

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
6 Dec 2007, 5:17 PM
#1
sheril avatar

sheril

New Zenner

Join Date:
Dec 2007
Posts:
4
Plugin Contributions:
0

Let's Contribute & Make This Happen!

Hello,

The only thing annoying me is that on main page, sideboxes and other pages, including additional images, below product description ....... all are being taken from the folder where big images of the products are kept ..... that means, if on your home page you have 12 products shown in each of the modules, i.e., New Products, Upcoming Products, Featured Products, all together they will sum up to 36 product images and if each image size is approx. 25kb, 36 images will weigh 900 KB, which will obviously make you page load extremely slow.

Although all images are shown in small dimensions, but they are all big images, which also makes them look very poor.

I have created two folder inside the images folder 'big' and 'thumgs'. I have created images in two dimensions with same name and kept the bigger ones in the folder 'big' and smaller ones in the folder 'thumbs'.

Now I have modified modified the code of the file includes/modules/additional_images.php. What it does is, it now shows smaller images in Additional Images on product page, but if you click any one of them, they will open the same image in the folder 'big'.

Now I want the same to happen on main page in the boxes of "New Products", "Special Products", "Upcoming Products", etc. and also in the side boxes with product images.

Any contribution will be very much appreciated, thanks.

I am attaching the file "additional_products.php" but with extension '.txt', please change the extension after the download.

6 Dec 2007, 5:21 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: Let's Contribute & Make This Happen!

Zen Cart already has support for multiple images-per-product: small, medium, large.

FAQ: https://www.zen-cart.com/tutorials/index.php?article=58

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

6 Dec 2007, 5:23 PM
#3
cjpinder avatar

cjpinder

Totally Zenned

Join Date:
Apr 2007
Location:
Herts. UK
Posts:
893
Plugin Contributions:
0

Re: Let's Contribute & Make This Happen!

The Image Handler 2 mod is very good as well and will take care of the details for you.

You can download it here...
http://www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_47&products_id=117

Regards,
Christian.

6 Dec 2007, 7:28 PM
#4
sheril avatar

sheril

New Zenner

Join Date:
Dec 2007
Posts:
4
Plugin Contributions:
0

Re: Let's Contribute & Make This Happen!

Dear DrByte and CJPinder,

I will read about it, it would be great if this support is built-in, thanks.

6 Dec 2007, 8:44 PM
#6
sheril avatar

sheril

New Zenner

Join Date:
Dec 2007
Posts:
4
Plugin Contributions:
0

Re: Let's Contribute & Make This Happen!

CJPinder,

I have downloaded and installed IH2 and installed it, its a very good product, but it lacks the support of multiple images, I wish it had that functionality.

6 Dec 2007, 8:50 PM
#8
cjpinder avatar

cjpinder

Totally Zenned

Join Date:
Apr 2007
Location:
Herts. UK
Posts:
893
Plugin Contributions:
0

Re: Let's Contribute & Make This Happen!

Hi, Sheril

Sheril:

I have downloaded and installed IH2 and installed it, its a very good product, but it lacks the support of multiple images, I wish it had that functionality.

It does support multiple images, you just have to name the images correctly. If you read the tutorials at the links posted above it will be more clear.

Regards,
Christian.

6 Dec 2007, 8:51 PM
#9
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Let's Contribute & Make This Happen!

:huh: If you go into your admin->tools->Image Handler 2, threre's a box tat says "Click to add a new image to this product". I'd say that handles multiple images per product.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

6 Dec 2007, 10:11 PM
#10
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Let's Contribute & Make This Happen!

IH2 works for main images as well as additional images,

Zen cart PCI compliant Hosting