Accounts Posted January 31, 2012 Share Posted January 31, 2012 This maybe an odd question, but is it possible to display just a product's 2nd position image? There's a reason why I want to do this and not just select the 2nd position as the cover image. The usual code to view the products cover image would be {$link->getImageLink($product.link_rewrite, $product.id_image, 'home')} But is it possible to modify this so that it displays the image thats on the 2nd position (or any other position)? Thanks. Link to comment Share on other sites More sharing options...
Accounts Posted January 31, 2012 Author Share Posted January 31, 2012 Nevermind, I managed to work it out. Because I used this http://blog.devcodeit.com/displaying-all-products-in-prestashop/ all i needed to do was to duplicate the function and change the sql query from cover = 1 to position = whatever. And just use that function instead for whichever pages I need. Thanks anyway Link to comment Share on other sites More sharing options...
satcheen Posted July 14, 2012 Share Posted July 14, 2012 the link is dead =/ is there any chance you could post a snippet of the code you used? thx 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