ande85 Posted April 24, 2012 Share Posted April 24, 2012 Hi, This is perhaps an easy question to answer, as i am new to developeing for prestashop. I what to display a thumbnail image to each product that i add to the cart. How do I do this? Thanks for your answer! Link to comment Share on other sites More sharing options...
ande85 Posted April 24, 2012 Author Share Posted April 24, 2012 Solved it myself! <a href="{$link->getProductLink($product.id_product, $product.link_rewrite, $product.category)}"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'small')}" alt="" align="left" title="{$product.name|escape:htmlall:'UTF-8'|truncate:20}" /></a> Link to comment Share on other sites More sharing options...
doubleD Posted April 24, 2012 Share Posted April 24, 2012 Hi, This is perhaps an easy question to answer, as i am new to developeing for prestashop. I what to display a thumbnail image to each product that i add to the cart. How do I do this? Thanks for your answer! Hi, Take a look here if you want it to work with ajax (for presta 1.4) Link to comment Share on other sites More sharing options...
Alex Choe Posted October 4, 2012 Share Posted October 4, 2012 Hi, Take a look here if you want it to work with ajax (for presta 1.4) Hi How did you solve it with ajax? Link to comment Share on other sites More sharing options...
doubleD Posted October 4, 2012 Share Posted October 4, 2012 Hi How did you solve it with ajax? Everything is here. I can confirm it works with 1.5 also... Make sure force compile is set to 'YES' and Cache to 'NO'. What exactly is the problem for you? 1 Link to comment Share on other sites More sharing options...
Alex Choe Posted October 4, 2012 Share Posted October 4, 2012 Solved it myself! <a href="{$link->getProductLink($product.id_product, $product.link_rewrite, $product.category)}"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'small')}" alt="" align="left" title="{$product.name|escape:htmlall:'UTF-8'|truncate:20}" /></a> how did you solve the ajax problem? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now