Support

Home Forums Event Espresso Premium How do I order price points so that highest price is listed first?

How do I order price points so that highest price is listed first?

Posted: January 24, 2014 at 2:59 am

Viewing 6 reply threads


Nick Putman

    January 24, 2014 at 2:59 am

    Hi,

    It would appear that the default sort order for price points in an event listing is from lowest price to highest and I would like to reverse the order so that the highest comes first. Could you please let me know how I can do this.

    Thanks,

    Nick


    Anonymous

      January 27, 2014 at 3:01 am

      Hi Nick,

      The event list should display the first price entered into the event.

      So in this example http://d.pr/i/Q2wY

      Price 1 (10.00) should be displayed for the event.

      So the easiest method to displaying a certain price within the event list is to input that price first.

      Does that make sense?


      Nick Putman

        January 31, 2014 at 3:55 pm

        Mmmh, that’s not what is happening on my site. The order of the price points in the admin section happens to be in the order I would like them to be displayed (i.e. sorted from highest to lowest), but on the front end of the site they are listed lowest to highest.


        Anonymous

          February 3, 2014 at 3:33 am

          Hi Nick,

          Can you post a link so we can see where this is happening please?


          Nick Putman

            February 9, 2014 at 1:18 am

            Hi Tony, Yes. Here is the events page on my site – the price points are not in the same order as in the Admin page:

            http://opendialogueapproach.co.uk/events/

            Thanks,

            Nick


            Anonymous

              February 10, 2014 at 4:25 am

              Hi Nick,

              I noticed from your previous post you are using THIS function to display the price list.

              The function in that Gist organizes the prices by the event_price ascending. You need to order them by ID so just change line 9 in that gist:

              $order_by = 'event_cost';

              to

              $order_by = 'id';

              That should then work as you expect it. Your line numbers will be different within the custom_functions.php file you have placed that function but should be easy enough to find.

              Hope that helps.


              Nick Putman

                February 10, 2014 at 5:30 am

                Thanks for noticing that Tony. That change has indeed fixed the issue.

                Best Wishes,

                Nick


                Anonymous

                  February 10, 2014 at 6:06 am

                  No Problem :)

                  I’ll mark this thread resolved.

                  Viewing 6 reply threads

                  The support post ‘How do I order price points so that highest price is listed first?’ is closed to new replies.

                  Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

                  Event Espresso - Staging Server