Jump to content

Show products with photo first - PS 1.6


faccr

Recommended Posts

I need to show products containing image in your description before the products image.

In the product-list.tpl file, first I tried to create an if you ignore any product that had the lowest id_image zero. But it did not work. It worked in part because the display of products was impaired.

Later on, I found that the display order is linked to $ smarty.foreach.products.iteration

 

However, I caught. I do not know where to move. They could give me a hand?

It would be better move directly in the class by creating some new function to bring products with the first image and already sent to the preset smarty?

Edited by faccr (see edit history)
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...