Virtuemart Logo

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.

 
Discover More VirtueMart Troubleshooting Solutions

This entry was posted in VirtueMart on by .

About Sara Thornton

Sara is a Jack (or Jill) of many trades. A web designer and developer, an ethical SEO implementer, an AdWords advocate, as well as being our in house user-guide creator and trainer. In her spare time she loves a bendy/stretchy yoga session, and feels most happy when she's near the ocean (ideally with a ridiculously absorbing book).

Leave a Reply

Your email address will not be published. Required fields are marked *

23 thoughts on “VirtueMart 2 – How to Display Your Products in the Order You Want

  1. Pingback: VirtueMart 2.0 Troubleshooting

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

    Reply
      1. 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!

        Reply
        1. Sara Thornton Post author

          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

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

          2. Sara Thornton Post author

            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

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

    Reply
    1. Sara Thornton Post author

      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

      Reply
  4. 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)?

    Reply
    1. Sara Thornton Post author

      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

      Reply
  5. 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?

    Reply