Posted: April 2, 2014 at 2:30 am
|
Hi there What am I doing wrong? |
Hi Andrea, It looks like the site uses the [ESPRESSO_REG_FORM] shortcode to output the registration form on your event posts which does not output the event times/prices etc. Did your previous events with multiple prices show those prices in a dropdown you could select before registering? You can override the function and force it to display the full registration page with a small snippet of code: function espresso_reg_form_sc($atts) { wp_enqueue_script('validation'); //This tells the plugin to load the required scripts extract(shortcode_atts(array('event_id' => '0'), $atts)); $event_id = "{$event_id}"; ob_start(); register_attendees(NULL, $event_id, false); $buffer = ob_get_contents(); ob_end_clean(); return $buffer; } I noticed within a previous thread you created a custom_functions.php file within wp-content/uploads/espresso/ if you add that snippet to that the end of that file your events should display the full registration page. |
|
|
Hi Tony I don’t understand why it’s suddenly doing this do you? Cheers. |
Hi Andrea, You can move the function that was shared earlier into your existing custom plugin. Alternatively, you can upload this one to the WordPress plugins folder: http://cl.ly/code/410u2b2b2Z3t From there, just activate it through WordPress admin –> Plugins. — |
|
|
I got this error when I tried the your suggestion; Fatal error: Cannot redeclare espresso_reg_form_sc() (previously declared in /home/womenwit/public_html/blog/wp-content/plugins/event-espresso/includes/shortcodes.php:280) in /home/womenwit/public_html/blog/wp-content/plugins/display-fix-registration-form.php on line 16 |
Hi Andrea, I ‘m not sure as to the cause, have you recently updated Event Espresso? If so do you know the previous version you had installed? I’d like to check the differences. You can de-activate the plugin Lorenzo gave you, the reason you get that error is the plugin is running after Event Espresso, so EE declares the function first. Then that plugin tried to override it (EE has a check to see if it is already declared but as it is running before that plugin it has not so EE declares the default one) adding the function to custom_functions.php forces EE to check there first and if the function is declared there use that. |
|
|
No we have not recently updated EE – are you able to go in and take a look for me & let me know what’s wrong? |
Hello, Could you please create a temporary WordPress admin login and a temporary SFTP or FTP so I can take a closer look at this issue? Please share that temporary login through the secure link below: To prevent delays in troubleshooting, be sure to double check your information on the form before submitting. The submit button for the form appears after you have answered “Yes” to the last question. Thanks. — |
|
The support post ‘Prices not showing’ 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.