Posted: 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?
|
|
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 https://eventespresso.com/send-login-details/ NOTE: login details need to be Admin level. |
|
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. |
Hey James — It looks like you’ve made modifications to the core plugin. 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. 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! |
|
|
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 |
|
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. |
|
Bumping this thread |
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. |
|
|
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.