Support

Home Forums Event Espresso Premium Event List Prices Order

Event List Prices Order

Posted: April 10, 2015 at 7:12 pm


nesso

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!


Dean

April 13, 2015 at 12:42 am

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 (http://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/), it should over rule the one EE uses and display the prices in creation order:

http://pastebin.com/jfX1fJZa


nesso

April 13, 2015 at 1:33 pm

Thanks for the reply! I followed the instruction but the order didn’t change on the event list page. Anything I might have missed?


Dean

April 14, 2015 at 5:42 am

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?


nesso

April 14, 2015 at 10:30 am

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”


Josh

  • Support Staff

April 14, 2015 at 1:17 pm

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.


nesso

April 14, 2015 at 5:44 pm

I get the same 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/a-lli-plugin/lli-plugin-customizations.php on line 63″


Dean

April 15, 2015 at 2:06 am

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.


nesso

April 15, 2015 at 11:57 am

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)
-Second Attendee (Included in firm registration) ($0.00)
-Additional Firm Member ($300.00)
-ALA Member Firm (Two attendees included) ($1,590.00)

And I want them to display as they do on the cart page:

-ALA Member Firm (Two attendees included) $1,590.00
-Non-ALA Firm (Two attendees included) $1,790.00
-Second Attendee (Included in firm registration) $0.00
-Additional Firm Member $300.00

Thank you!


Dean

April 16, 2015 at 5:44 am

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
-Non-ALA Firm (Two attendees included) $1,790.00
-Second Attendee (Included in firm registration) $0.00
-Additional Firm Member $300.00


nesso

April 16, 2015 at 10:22 am

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


Dean

April 17, 2015 at 2:04 am

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 http://eventespresso.com/send-login-details/

NOTE: login details need to be Admin level.


Dean

April 22, 2015 at 4:54 am

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.


nesso

April 23, 2015 at 5:43 pm

That worked! Thank you for the great support 🙂


Dean

April 24, 2015 at 3:40 am

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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Dean 4 years, 7 months ago ago

Topic Tags

Tagged: , ,

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!