Jump to content

[product-list.tpl] New Sort above search result


Anthos59

Recommended Posts

Hi everyone,

Firstly, Sorry for my bad in english, i hope you will understand me =)

My problem is "simple" because I would like to see 2 time the search result but with different sort.
I explain that :

I search product who have a size of 25cm and 20 products matched

So i would like to see the 20 products with the default sort and above that, a new result with the same product but sorted by the lowest price.

Can you explain me how i can do it please ?

Thanks,

Regards,

PS : I work with prestashop 1.4.

Link to comment
Share on other sites

You can do this only if you familiar with PHP programming. You can override ProductController, where add yet one list of products sorted as you want. Also, you must include product-list.tpl once more and pass there this is new list.
If you can not find place in ProductController, which need to be changed, please let me know.

Link to comment
Share on other sites

Modification only of product-list.tpl nothing will give you.
You must find in PHP code where this data was generated and generate also another list, which sorted as you want.
Then in place, where product-list included, you must include this once more with another list as param, sorted as you want

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...