Promokit Posted September 22, 2011 Share Posted September 22, 2011 Hi guys. I need to solve some problem. How can I get all product images (not one image with different sizes) in product-list.tpl file? Now in this file next line display the image - <img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home')}" /> where: $product.link_rewrite - is image alias, "ipod-nano" - for example $product.id_image - image ID, "1-27" - for example home - is a type of image I tried to find any information on this forum, but anything. Thanks in advance. Link to comment Share on other sites More sharing options...
Promokit Posted September 24, 2011 Author Share Posted September 24, 2011 Any ideas? Link to comment Share on other sites More sharing options...
Promokit Posted September 26, 2011 Author Share Posted September 26, 2011 Maybe prestashop teams developers can help me? Link to comment Share on other sites More sharing options...
Promokit Posted September 27, 2011 Author Share Posted September 27, 2011 Thanks for your answer. And can you give me any contact of this developers? Link to comment Share on other sites More sharing options...
Promokit Posted September 28, 2011 Author Share Posted September 28, 2011 Hey guys, anybody know some developer, who can help me with this issue? Link to comment Share on other sites More sharing options...
Promokit Posted September 30, 2011 Author Share Posted September 30, 2011 any ideas? Link to comment Share on other sites More sharing options...
sokpet Posted December 21, 2011 Share Posted December 21, 2011 did you finally find a way to do it? Link to comment Share on other sites More sharing options...
B. Szakacs Posted February 1, 2012 Share Posted February 1, 2012 Hi. i urgently need this also. Anybody found solution? Strange, that nobody yet did it, as the code actually is in prestashop: take the corresponding part from productcontroller, add it to categorycontroller and modify the TPL accordingly. Sounds like a 2 hour thing max for the right person Link to comment Share on other sites More sharing options...
Promokit Posted February 1, 2012 Author Share Posted February 1, 2012 I'm also waiting for any ideas, but nothing Link to comment Share on other sites More sharing options...
Medea Web Agency Posted March 6, 2012 Share Posted March 6, 2012 No one is answering, very disappointing... Link to comment Share on other sites More sharing options...
jrmvii Posted May 4, 2012 Share Posted May 4, 2012 Up ! Link to comment Share on other sites More sharing options...
szamman Posted July 1, 2012 Share Posted July 1, 2012 (edited) maybe this helps I override id_image in search result. with this: $search = Search::attribute_id((int)(self::$cookie->id_lang), $attribute_id, false, $this->p, $this->n); foreach ($search['result'] AS &$product){ $product['id_image'] = $product['id_product'].'-'. $product['id_image'] ; } and then I get images links like: img/p/22-105-home.jpg instead like it was before : img/p/1/0/5/105-home.jpg - only id image in name. Edited July 1, 2012 by szamman (see edit history) Link to comment Share on other sites More sharing options...
janekbar5 Posted October 4, 2012 Share Posted October 4, 2012 for all who wants to display all images on product-list.tpl 1 follow this thread http://www.prestashop.com/forums/topic/96085-rollover-image-in-product-list/ 2 download rollover.zip provided by DGV Posted 06 August 2012 - 02:07 AM 3 unpack zip upload files 4 open uploaded file override/classes/Category.php change this: SELECT * from `'._DB_PREFIX_.'image` WHERE id_product="'.$product_id.'" ORDER BY `position` LIMIT 0,2 to that: SELECT * from `'._DB_PREFIX_.'image` WHERE id_product="'.$product_id.'" ORDER BY `position` all images should appear on product-list.tpl Link to comment Share on other sites More sharing options...
kalakrima Posted December 27, 2012 Share Posted December 27, 2012 for all who wants to display all images on product-list.tpl 1 follow this thread http://www.prestasho...n-product-list/ 2 download rollover.zip provided by DGV Posted 06 August 2012 - 02:07 AM 3 unpack zip upload files 4 open uploaded file override/classes/Category.php change this: SELECT * from `'._DB_PREFIX_.'image` WHERE id_product="'.$product_id.'" ORDER BY `position` LIMIT 0,2 to that: SELECT * from `'._DB_PREFIX_.'image` WHERE id_product="'.$product_id.'" ORDER BY `position` all images should appear on product-list.tpl Hello janekbar5, I followed the same tutorial about doing this, but it doesn't work for new products, best sales, promotions, etc. Did you know how I can do this? I will be really glad if you can help me, I spent hours and hours to search and try everything I found on the web, but... nothing works.. Link to comment Share on other sites More sharing options...
SkyHiRider Posted November 12, 2013 Share Posted November 12, 2013 I'm trying to do this on Prestashop 1.4.4 and I am getting a blank page after I add the override/controllers/CategoryController.php :/ Could anyone tell my why is the override file breaking my page? It really shouldn't do that as is is only supposed to add or extend additional classes without breaking anything, right? Link to comment Share on other sites More sharing options...
Recommended Posts