Support

Home Forums Event Espresso Premium Applying global promo code is doubling number of attendees

Applying global promo code is doubling number of attendees

Posted: May 16, 2014 at 9:33 am


M Lou Hyttinen

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,
Event Espresso – MailChimp Integration by version 1.2,
Event Espresso – Multi Event Registration by Seth Shoultes version 1.0.5.p,
Event Espresso – Permissions by Event Espresso version 1.5.5.p,
Event Espresso – Recurring Events by Event Espresso version 1.1.8.p,
Event Espresso – Social Media by Event Espresso version 1.1.7.p,
Event Espresso – Ticketing by Event Espresso version 2.1.p,
Event Espresso by Event Espresso version 3.1.36.5.P,


Josh

  • Support Staff

May 16, 2014 at 10:58 am

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
/multi_registration_page.php
/payment_overview.php
/payment_page.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');


M Lou Hyttinen

May 16, 2014 at 11:05 am

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.


M Lou Hyttinen

May 16, 2014 at 11:31 am

And I did fix the attendee_quantitiy misspelling. No help.


M Lou Hyttinen

May 16, 2014 at 4:08 pm

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.


Sidney Harrell

May 19, 2014 at 7:49 am

Did you try renaming uploads/espresso/templates to uploads/espresso/old-templates? Try doing that and see if the problem goes away.


M Lou Hyttinen

May 19, 2014 at 7:55 am

Already tried updating all templates and renaming them to turn them off. Just renamed the templates folder as suggested. Problem still exists.


Tony

  • Support Staff

May 20, 2014 at 3:18 am

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?


M Lou Hyttinen

May 20, 2014 at 7:18 am

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
Function Name: Event Status
Function Name: Custom Event List Builder

That’s it.


Josh

  • Support Staff

May 20, 2014 at 11:05 am

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?


M Lou Hyttinen

May 20, 2014 at 1:37 pm

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
WordPress version WP 3.9.1
Installed plugins
Akismet by Automattic version 3.0.0,
BackWPup by Inpsyde GmbH version 3.1.2,
iThemes Security by iThemes.com version 4.2.2,
Easing Slider “Lite” by Matthew Ruddy version 2.1.4.1,
Event Espresso – Calendar by Event Espresso version 2.2.3.p,
Event Espresso – MailChimp Integration by version 1.2,
Event Espresso – Multi Event Registration by Seth Shoultes version 1.0.5.p,
Event Espresso – Permissions by Event Espresso version 1.5.5.p,
Event Espresso – Social Media by Event Espresso version 1.1.7.p,
Event Espresso – Ticketing by Event Espresso version 2.1.p,
Event Espresso by Event Espresso version 3.1.36.5.P,
Insert HTML Snippet by xyzscripts.com version 1.1.1,
Officers Directory by Douglas Bell version 1.2.0,
PayPal Donations by Johan Steen version 1.8.4,
Raw HTML by Janis Elsts version 1.4.12,
Shareaholic | share buttons, analytics, related content by Shareaholic version 7.4.0.5,
Simple 301 Redirects by Scott Nellé version 1.06,
Subscription Options Add-On Pack by Tom Saunter version 0.2,
Subscription Options by Tom Saunter version 0.9.1,
Widget Importer & Exporter by Steven Gliebe version 1.1.3,
WordPress SEO by Joost de Valk version 1.5.3

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.


M Lou Hyttinen

May 20, 2014 at 1:50 pm

On second thought, delete the post with the promo code. I created a new promo code for testing only: testpromo


M Lou Hyttinen

May 20, 2014 at 1:57 pm

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.

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  M Lou Hyttinen 5 years, 9 months ago ago

Topic Tags

Tagged: ,

Notifications

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