Jump to content

How To Replace The 3Rd Product With A Image In Product List?


leotest

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...