leotest Posted December 23, 2015 Share Posted December 23, 2015 For example, there are 9 products show at the category per page I would like to replace the 3rd product to an image (just hardcode it is ok, no backend need), and so the 3rd product are now go to the next block Are there any module for this purpose or how to customize it? Thanks a lot Link to comment Share on other sites More sharing options...
yaniv14 Posted December 23, 2015 Share Posted December 23, 2015 Maybe you can edit product-list.tpl and add a statement to check the current iteration (loop) and change the <li> to whatever you want. {if $smarty.foreach.products.iteration == 3 || $smarty.foreach.products.iteration == 6} Load image {else} do the regular product li {/if} 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