News:

Support the VirtueMart project and become a member

Main Menu

Default sort by depenting on category

Started by patben, February 24, 2015, 18:06:35 PM

Previous topic - Next topic

patben

Hi

I want to have different sort by option for each category. I know that i have to edit models/product.php, but i dont know what changes i have to do. I want to use some code like that
if category_id ='1'  .....
else if ........
etc.

virtuemart 2.6.x
Thanks