Posted: May 16, 2014 at 9:33 am
|
This is a weird one. I set up a global 10% off coupon on an event with group registration enabled. I am also using the multiple event registration plugin. If I attempt to register one or more attendees (and it doesn’t matter if I have “Additional Attendee Registration info?” turn on or off) with the 10% off promo code, I see my attendees and totals doubled when I go to the Payment Overview page. However, if I proceed to checkout (using PayPal), the correct amount is shown, not the doubled amount. Also, the number of attendees is correct in the event overview dashboard. I am using custom templates, but not a custom promo template. The event in question is located here: http://www.heritagefarmstead.org/event-registration/?ee=83 I’m running WP 3.9.1 and the following EE plugins: Event Espresso – Calendar by Event Espresso version 2.2.3.p, |
Hi M Lou, This is likely from the modified /multi_registration_page_display.php template. You can verify which template is causing the breakage by temporarily renaming them to allow the standard templates to load instead. The templates that affect the Multi Event Registration process that are currently loading from /wp-content/uploads/espresso/templates on your site are: /multi_registration_page_display.php The first thing I recommend checking is line 7 of /multi_registration_page_display.php to make sure it reads exactly as: $num_attendees = ' - ' . $_SESSION['espresso_session']['events_in_session'][$event_id]['attendee_quantity'] . __(' attendees', 'event_espresso'); it should not be: $num_attendees = ' - ' . $_SESSION['espresso_session']['events_in_session'][$event_id]['attendee_quantitiy'] . __(' attendees', 'event_espresso'); |
|
|
After I posted this issue I went through the custom templates and updated all templates to the current versions with the exception of ongoing_event_list.php and ongoing_events_widget.php. Still have the doubling problem. |
|
And I did fix the attendee_quantitiy misspelling. No help. |
|
One other quirk I noticed. When I review the attendee list for the test attempts that were not paid, but left pending, I can see that the total amount owed is double the proper total. However, the number of tickets to be purchased is correct, not doubled. Likewise, the amount sent to the PayPal page is correct, not doubled. |
|
Did you try renaming uploads/espresso/templates to uploads/espresso/old-templates? Try doing that and see if the problem goes away. |
|
Already tried updating all templates and renaming them to turn them off. Just renamed the templates folder as suggested. Problem still exists. |
Hi M Lou, If you go to wp-content/uploads/espresso/ do you have a custom_functions.php file within there? If so can you check if that file contains the function event_espresso_add_attendees_to_db_multi() or have you modified that function within Event Espresso core at all? |
|
|
Sorry, I was logged in as another client when I replied. Please delete the cstephens response. The event_espresso_add_attendees_to_db_multi() fuction is not in my custom_functions.php file and I never modified the EE core. I even ran a Diff Merge comparison on the installed files vs. the latest EE version to verify. The custom_functions.php file contains the following functions: Function Name: Maximum Date Display That’s it. |
Hi M Lou, The reason that we’re all asking you to check for modified files and modified functions is because we are not able to reproduce this on any of our test systems. Thanks for checking to see if there have been any modifications made to Event Espresso core. Along with that, is it possible that there is a plugin that’s installed, or there’s a function in the theme’s functions.php file that’s overriding a core Event Espresso function? |
|
|
I tried switching themes to WP 2014 and no change, so I doubt my theme’s functions.php page is responsible. I deleted some inactive plugins and tried disabling any that might possibly affect the cart. Still nothing. Here are the plugins installed. Event Espresso version 3.1.36.5.P One last detail that I didn’t mention earlier. Specific promocodes do not show up in the event listing. They never have since I tried using promocodes. I created two non-global codes and they would not show up in the event listing when I selected “Global and Specific Promocodes.” So, I was forced to use global promocodes. |
|
On second thought, delete the post with the promo code. I created a new promo code for testing only: testpromo |
|
I found the bug! I wasn’t sure if promocodes were case sensitive, so I had created two versions so my promocodes–one in all lowercase and one in all uppercase. After I deleted one of the promocodes and tested it, the cart is working as it should. |
The support post ‘Applying global promo code is doubling number of attendees’ 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.