Order a listing based on two or more fields

  • Posts: 639
  • Thank you received: 16
  • Hikashop Business
12 years 2 weeks ago #109749

I want to establish an ordering criteria based on more than one fields like:

parent_id + product_name + custom_field_whatever

I don't think I con do this with standard parametrization in the parameters for products area:




Can I do this through changes in a view file? Any clue?

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 84046
  • Thank you received: 13621
  • MODERATOR
12 years 2 weeks ago #109787

No you can't do that via the interface. You actually can't do that via a view file edition either.

You will have to create a hikashop plugin implementing the trigger onBeforeProductListingLoad and change the second parameter (&$order) to the ordering that you want.

Please Log in or Create an account to join the conversation.

Time to create page: 0.051 seconds
Powered by Kunena Forum
loading