Zen Cart Logo
Forums / Zen Cart Code Suggestions / Page speed - different pictures for products listing (news, specials)/ products pages

Page speed - different pictures for products listing (news, specials)/ products pages

Views: 19

Results 1 to 2 of 2
29 Oct 2017, 19:28
#1
meksicus avatar

meksicus

New Zenner

Join Date:
Jul 2015
Location:
Warsaw
Posts:
16
Plugin Contributions:
0

Page speed - different pictures for products listing (news, specials)/ products pages

To improve page loading speed it will be ggod, to have different pictures of products to be displayed on products list pages (also new / featured) - they can be smaller and lower quality (for example 200x200px) and different for product info page (has to be larger and better quality) - let say 600x600 px.
As the solution the function zen_image can be replaced by zen_list_image in the featured_products.php, new_products.php and in product_listing.php (includes/modules) - just checking if exist smaller picture ...
It will speed up page loading time seriously.

Meksicus

29 Oct 2017, 22:04
#2
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Page speed - different pictures for products listing (news, specials)/ products pages

meksicus:

To improve page loading speed it will be ggod, to have different pictures of products to be displayed on products list pages (also new / featured) - they can be smaller and lower quality (for example 200x200px) and different for product info page (has to be larger and better quality) - let say 600x600 px.
As the solution the function zen_image can be replaced by zen_list_image in the featured_products.php, new_products.php and in product_listing.php (includes/modules) - just checking if exist smaller picture ...
It will speed up page loading time seriously.

Meksicus
Umm seems like this has been posted several times in perhaps different areas of the forum, but I haven't read each one nor tried to link them. But the heading of the others seems relatively akin to the content of this thread.

Basically, though it doesn't seem like there is really a question above, it would seem that you are interested in a plugin or way to push an image to a customer that is sized for the view that they will be seeing. A plugin has been developed to do that (some configuration "limitations") called image handler. The plugin has recently been updated (mostly code manipulation needed to take advantage of the ZC software no longer needing file modifications once installed) for ZC 1.5.5 though it could have also easily been back developed/designed for older systems as well, and is called Image Handler 5 (IH5).

It does what it seems like you are hinting at desiring.