Support

Home Forums Event Espresso Premium Vanilla registration form for paid events returns as free event?

Vanilla registration form for paid events returns as free event?

Posted: February 5, 2013 at 3:17 pm


James Barker

February 5, 2013 at 3:17 pm

Using EE 3.1.29.1.P. When a user goes to register for an event with a fee, the confirmation page says it’s a free event. You can see for yourself here: http://tobpr.tdwest.net/events/system-registration.php?ee=23.

I’ve traced the problem down to /includes/process-registration/add_attendees_to_db.php on line 149: it’s looking for $_POST[‘price_id’], but neither $_POST nor the registration form have any fields or keys resembling price_id. I’ve got debug messages showing everything $_POST is handing the confirmation page, so you can see for yourself.

This is just the default registration form on the default pro version of the plugin – no mods, no addons. Looking at the code, it’s really not obvious where it’s supposed to be coming from, either. What am I doing wrong? Is it a bug, a setting I have to change, or some component missing in the questions manager?

  • This topic was modified 6 years, 10 months ago by  James Barker.
  • This topic was modified 6 years, 10 months ago by  James Barker.


Dean

February 6, 2013 at 12:59 am

Hi James,

Interesting issue. I have tested a vanilla 3.1.29.1 and had no issues.

No offence intended, but are you sure there are no template files in the wp-content/uploads/espresso directory?

If there are none, 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.


James Barker

February 6, 2013 at 9:49 am

Thanks for the speedy reply!

No offense taken. Just double-checked, there’s nothing in any of the folders in /wp-content/uploads/espresso, including templates. Sending login details now.


Chris Reynolds

  • Support Staff

February 6, 2013 at 10:25 am

Hey James —

It looks like you’ve made modifications to the core plugin.

modified ee

As such, we’re limited in how much support we can provide since a) we have no way of seeing what version you are using (and if your plugin is based on 3.1.29, that’s an outdated version of the plugin), and we have no idea what modifications to the code you have made.

Looking at your page I see two things wrong.

1) jQuery validate has an error, which means that people can get through the registration process without filling anything out, since that’s currently our only means of validating input.

jquery validate

2) The second issue is that it looks like there’s a hidden input field missing which should be passing the price to the $_POST variable. Without this hidden input for the event price, all your events are going to pass a null value for the price.

Beyond that, we can’t really provide much more information, unfortunately. Hope that helps!


James Barker

February 7, 2013 at 8:34 pm

Hey guys,

Can you tell me where the price_id originally gets generated and injected into the form?

We know about the missing key/field is price_id, and it’s supposed to come from event_espresso_add_question_groups (/includes/functions/main.php, line 659) – but don’t see price_id anywhere in that file, let alone inside that function.

Sorry about the core mod. It was a requirement from the client and something we generally don’t do.

Thanks for your help


James Barker

February 7, 2013 at 8:54 pm

Also worth mentioning that the only mods done were superficial inside the admin – nothing extending as far as the template files. With the exception of espresso.php and admin_menu.php, the code should be the same.


James Barker

February 8, 2013 at 3:54 pm

Bumping this thread


Josh

  • Support Staff

February 8, 2013 at 7:42 pm

Hi James,

Have you tried using a stock copy of the registration_page_display.php and registration_page.php templates? It looks like the ones on the site have been modified.


James Barker

February 11, 2013 at 2:18 pm

Looks like something in the version patch fixed it – got it installed in my local env and It’s working fine. Thanks for the help all the same!

The support post ‘Vanilla registration form for paid events returns as free event?’ 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  James Barker 6 years, 10 months ago ago

Topic Tags

Tagged: , , , ,

Notifications

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