How can I order my tickets with price ascending?

Home Forums Ticket Products Event Tickets Plus How can I order my tickets with price ascending?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #43251
    marlies
    Participant

    Hi there,

    I tried updating the Catalog settings of WooCommerce, but unfortunately my tickets won’t change order. What should I do to make my tickets order ascend by price?

    Thanks for your help!
    Marlies

    #43261
    Barry
    Member

    So the easiest way is to create a custom tickets.php template. If you are unsure about how to do this, please see:

    In essence though you would copy tickets.php from:

    wp-content/plugins/wootickets/views/tickets.php

    And place the copy in your theme’s events sub-directory (which you would need to create if it does not already exist):

    wp-content/themes/{YOUR-THEME}/events/tickets.php

    Then, look for the start of the ticket loop. It will be a line like this one:

    foreach ( $tickets as $ticket ) {

    Just above that you could insert this snippet or, if that doesn’t work, it could be you need to use an older form of the same code. That should cause the tickets to display in price order, lowest to highest.

    I hope that helps but let me know if not/if you need clarification.

    #43264
    marlies
    Participant

    it worked! Thanks very much Barry!

    #43271
    Barry
    Member

    No problem 🙂

    #978822
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘How can I order my tickets with price ascending?’ is closed to new replies.