
VirtueMart 2 – How to Display Your Products in the Order You Want
Go to Components -> VirtueMart
Click the Configuration button
In the Product Order Settings tab, set Default Product Sort Order to Ordering (last option in the drop down box) to display your products in the order you created them. Select any other option in the drop down box to suit your needs.
Save. Refresh website page to view new settings.
VirtueMart 2.0 Troubleshooting
[…] My products aren’t in the order I want […]
Melissa
Thanks this is very useful, I will try it out next week 🙂
Sara Thornton
Thanks for the feedback!
Just let me know if you have any questions 🙂
Best wishes,
Sara
chris reitz
hi sara,
nice and easy tutorial though.
But is there any way to show the “related products” sort by price?
Thanks in advance!
chris
Sara Thornton
Hi Chris,
This might require a bit of a code change. Could you confirm which version of VirtueMart you’re using?
Thanks,
Sara
chris
Hi Sara,
yes I didn´t found any solution in any forumconcerning this topic.
So I guess it has unfortunately to be a code hack solution.
Anyway, my system:
Joomla 2.5.8
Virtuemart 2.0.20b
Just in case, I know VM is not last version. But after an update to xx.024c my shop is messed up somehow, even when I use overrides.
So I decide to downgrade back again, and I´m fine with it.
Beside I think it doesn´t effect the “related_products.php” if it just a bit older version, right?
Thank you!
Sara Thornton
Hi Chris,
There was actually a change made to address the ordering of Related Products in VM 2.0.24
The VirtueMart patch news is here: http://virtuemart.net/news/list-all-news/416
For your upgrade to 2.0.24C, you may want to try the suggested fix (in the link above): “Some users experienced missing products in the category view, even with default layout. Just go in the vm config to the ordering settings, choose product name and store it one time. After that configure your desired setting.”
For the ordering fix, if you’re happy to hop into the code, solutions have been posted here: http://forum.virtuemart.net/index.php?topic=108177.0
If you’re not too comfortable with code, just let me know.
Hope this helps,
Sara
chris
Hello Sara,
thanks a lot for all your detailed hints. Really, that´s very gentle! : )
I didn´t expected that.
However, I´m not too enthuiastic about upgrating, I know about all
the bad things, but there are also a bunch of unexpected behaviours
which appear when upgrading.
I watched the link you gave me for the code to set the ordering by price right.
But can´t make any sense out of it in my case.
That´s not your fault, it´s just that I get tired to puzzle all the pieces together.
I was very pleased to find this topic here, which fit my needs best I think:
http://stackoverflow.com/questions/11346328/display-pricing-and-add-to-cart-button-in-related-products-virtuemart-2-0
But that doesn´t work for me as well. If I did it like explained the related products are disappearing at all.
May it make sense to ask you, if you are willing to fix that issue on my page?
Don´t know if you are working on freelancing base, to make any offer.
My site is for public offline, but I can sent you an link to the page with login data. so you will have an overview and possibly can tell me what will it cost.
So if that sounds interesting to you, please pm me.
Thanks once again!
Chris
Sara Thornton
Hello Chris,
My pleasure – I’m happy to help!
Sorry to hear that you’re still having problems with the ordering.
I’ll contact you directly regarding resolving the problem you’re experiencing.
Best wishes,
Sara
Tok
Thank you so much Sarah ,
This’s very simple but very helpful… 🙂
Sara Thornton
Happy to help – thanks for your feedback Tok.
alpi
thank you for your hint – it was useful for me too 🙂
best!
Sara Thornton
Glad to help Alpi, and thanks for letting me know that the article was helpful.
Jorge Grajales
Thanks! I´m a newbie with virtuemart 2 and this was very useful to me.
Sara Thornton
Glad to help Jorge. Thanks for your feedback.
Alex Roseland
Hello Sara,
Thanks for the great info, is there any way that I can go through my products and simply decide which ones I want ordered first and last?
Thanks alot!
Sara Thornton
Hello Alex,
Thanks for your feedback. If you manually order your products in the back end using the Reorder column, then follow the instructions in the tutorial above, this should produce the result that you’re looking for.
Best wishes,
Sara
Mike
Nice tutorial, but I would like to use double sorting (first by GTIN (EAN,ISBN) and second by Availability Date) – I probably can’t do that from Administration, I would have to modify files right? DO you maybe know which file do I have to modify to do that (to ignore administrator settings but just use sort in PHP code)?
Sara Thornton
Hi Mike,
Thanks for your post. The file you want will most likely be /administrator/components/com_virtuemart/models/product.php (depending on your version of VirtueMart).
This forum post might help give a rough starting point of where you can plug in your custom code: https://forum.virtuemart.net/index.php?topic=108097.0
Feel free to post your solution here, so that it might help others who are looking for a similar solution 🙂
Best wishes,
Sara
Mike
Great, this is just what I need. Thank you. 🙂
Sara Thornton
My pleasure 🙂
Amy
hi,
I am new to the whole VM thing. I have installed 3 languages and all working fine
the thing is: if i check a product in English and then use the french language, I get redirected to the equivalent category
what I want to do is to have an equivalent product in a different language
so, if i check a wall frame in English,and then I choose the french language, I want to be durected to an item i created called “tableau” and it would be in french
how can i do that?
Sara Thornton
Hi Amy,
You might find this tutorial helpful: http://docs.virtuemart.net/tutorials/multilingual-store/99-multilanguage-setup.html
If you’re having problems, check if you have the latest version of VirtueMart, and upgrade if needed (backup your website first!). There was a language fix around 2.0.22a, but you’ll need to check the latest changelog for more details: http://virtuemart.net/news/list-all-news/416
Hope this helps!