Support

Home Forums Event Espresso Premium Prices not showing

Prices not showing

Posted: April 2, 2014 at 2:30 am


womenwithaltitude

April 2, 2014 at 2:30 am

Hi there
Prices are not showing on our latest events. I have 4 different prices for these 3 events http://www.womenwithaltitude.com.au/events/ but none of them are showing – when someone registers – they only get the one payment price option.

What am I doing wrong?


Tony

  • Support Staff

April 2, 2014 at 5:26 am

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.


womenwithaltitude

April 2, 2014 at 5:50 pm

Hi Tony
Thanks for this
Yes prices & the whole rego form was showing on the previous events. I haven’t changed anything or changed the way I add events. I will have to get a coder to make these changes you suggest.

I don’t understand why it’s suddenly doing this do you?

Cheers.


Lorenzo Orlando Caum

  • Support Staff

April 2, 2014 at 9:36 pm

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.


Lorenzo


womenwithaltitude

April 3, 2014 at 10:37 pm

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


Tony

  • Support Staff

April 4, 2014 at 5:00 am

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.


womenwithaltitude

April 4, 2014 at 6:30 pm

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?


Lorenzo Orlando Caum

  • Support Staff

April 4, 2014 at 6:46 pm

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:

https://eventespresso.com/send-login-details/

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.


Lorenzo

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.

Event Espresso