It looks like it’s controlled by templates/shopping_cart.php line 34:
$sql .= " ORDER BY e.start_date ";
You could add some code in after line 36 when it has the results to take a specific event and move it to the end of the array, or use a custom php array sort to sort by an event meta key’s value. Or you could change the sort to sort by event id or event name.
If I were to change the “ORDER BY” in the shopping_cart.php file to be the Event Name, what would the field name be that would correspond to “”e.start_date” in the current cart?
The support post ‘Changing Sort Order of Events in Cart’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.