News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Custom sort-by criterium - where in the code?

Started by larissa_n, January 25, 2013, 23:37:50 PM

Previous topic - Next topic

larissa_n

Hey,

I need to have a custom orderby-criterium which is user proximity. I have user location (cookies/IP) and product location (customfields) and I have an idea of how to calculate this value, but I feel completely lost in where to insert my code into virtuemart to get this extra filter.

I find tutorials for VM1, but not for VM2, and these are the files that changed the most.

I can see that the product.php assigns a SQL query to most orderby-cases, but where is this list generated that the admin can choose the actual options from?

Thank you so much for your help!
Larissa