Posted: April 10, 2015 at 7:12 pm
|
Hello – I didn’t find this specific request in the forum so forgive me if it is there. On the Event List page (https://legalleadershipinstitute.com/register/), the “Prices” look like they currently sort by ticket price from cheapest to most expensive. I would like the order to appear the same as the order on the shopping cart page (the order they appear when editing the event). I’m running Version 3.1.37.1.P Thank you! |
|
Hi, The price list display type will always display in low to high value. If you add the following function to a site specific plugin (https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/), it should over rule the one EE uses and display the prices in creation order: |
|
Thanks for the reply! I followed the instruction but the order didn’t change on the event list page. Anything I might have missed? |
|
Hi, I’m seeing a difference with the above code in play. Is your site specific plugin active? Did any errors occur when activating it? |
|
SOrry, haven’t used a site specific plugin before. Here is the error I get: “Plugin could not be activated because it triggered a fatal error. Fatal error: Cannot redeclare event_espresso_price_list() (previously declared in /home3/nesso/public_html/wp-content/plugins/event-espresso/includes/functions/pricing.php:697) in /home3/nesso/public_html/wp-content/plugins/lli-plugin/lli-plugin-customizations.php on line 63” |
Hi there, Your plugin needs to load before Event Espresso to avoid the error you saw. Since WordPress plugins load A-Z according to folder name, you can change your plugin folder name from “lli-plugin” to “a-lli-plugin” and that will make it load first. |
|
|
I get the same error ” |
|
Hi, Deactivate Event Espresso and the A Lil Plugin plugins. Then reactivate (in this order) A Lil Plugin, then Event Espresso. That should kick it in for you. Sometimes load order is important in WordPress. |
|
Thanks! That worked. The tickets are displaying in a different order but not the same order as the Cart page. The register page is listing them as: -Non-ALA Firm (Two attendees included) ($1,790.00) And I want them to display as they do on the cart page: -ALA Member Firm (Two attendees included) $1,590.00 Thank you! |
|
Hi, The prices listed in the cart should just be in shown in the order they were entered in the event. The code I listed simply stops the list price form displaying in price order, reverting it to the default order by entry. From my tests this should be working correctly. Are your prices entered in this order in the event itself? -ALA Member Firm (Two attendees included) $1,590.00 |
|
Thanks! Yes, that is how they appear on the event editing screen. Here’s a screenshot of what I see on the editing screen: https://legalleadershipinstitute.com/wp-content/uploads/2015/04/Screenshot_2.jpg |
|
That’s weird, it should work then. Is it possible to get your login details in order to look into this? If so, please send them via https://eventespresso.com/send-login-details/ NOTE: login details need to be Admin level. |
|
Thanks for the login details. I re-jigged the code to use order_by again and this time ordered by price ID, so the order is now correct for you. |
|
That worked! Thank you for the great support 🙂 |
|
You’re welcome! |
The support post ‘Event List Prices Order’ 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.