Support

Home Forums Event Espresso Premium After EE3 to EE4 migration:[ESPRESSO_REG_PAGE] shortcode not properly registered

After EE3 to EE4 migration:[ESPRESSO_REG_PAGE] shortcode not properly registered

Posted: August 16, 2014 at 12:42 am


Hannes Schnitzer

August 16, 2014 at 12:42 am

Hi,

after migrating to EE4 I have problems displaying the registration form for a single event. On “Registration” page I have the following shortcode:
[ESPRESSO_REG_PAGE event_id=78] (ID is the one from event overview table). When loading the registration page the form does not show up, instead the following error message is displayed:

An error has occurred:
The [ESPRESSO_REG_PAGE] shortcode has not been properly registered or the corresponding addon/module is not active for some reason. Either fix/remove the shortcode from the post, or activate the addon/module the shortcode is associated with.
EE_Front_Controller - _initialize_shortcodes - 265

Please help.


Hannes Schnitzer

August 16, 2014 at 12:52 am

Ok, I figured that the shortcode does not exist anymore. Since there is only one event on our website, how can I display the registration form directly? With the default shortcode it seems only possible to display (a list of) events. I need to skip the event list page and directly show the registration form.

Thanks


Lorenzo Orlando Caum

  • Support Staff

August 16, 2014 at 7:17 pm

Hello,

The closest option for Event Espresso 4 is the ticket selector shortcode:

[ESPRESSO_TICKET_SELECTOR event_id=”your_event_id”]


Lorenzo


Hannes Schnitzer

August 18, 2014 at 12:34 pm

Thanks! Is it possible to override the template for this page?


Lorenzo Orlando Caum

  • Support Staff

August 18, 2014 at 1:36 pm

Hi Hannes,

Could you share more information on the changes that you are trying to make?

That shortcode that you mentioned isn’t available.


Lorenzo


Hannes Schnitzer

August 18, 2014 at 1:41 pm

Sure, here’s the page that currently displays different tickets: http://granpremiodolomiti.com/packages
When clicking one of the (currently disabled) order buttons, I’d like to show the registration form with package(ticket) pre-selected. Last year, with EE3, I achieved this by redirecting to http://granpremiodolomiti.com/register showing the registration form (via [ESPRESSO_REG_PAGE event_id=78]) and making use of URL parameters and a little bit of JavaScript magic to preselect a ticket from the <select> box.


Lorenzo Orlando Caum

  • Support Staff

August 18, 2014 at 2:05 pm

This would take an extra click but how about sending the attendee to the single event page from your sales page?

You could set a minimum amount to 1 for the ticket through the event editor.


Lorenzo


Hannes Schnitzer

August 18, 2014 at 2:14 pm

Do you refer to the page generated by the ticket shortcode [ESPRESSO_TICKET_SELECTOR event_id=”your_event_id”]? Is it possible to override the template for the ticket selector?

Thanks


Lorenzo Orlando Caum

  • Support Staff

August 18, 2014 at 4:12 pm

Hi Hannes,

The event id is the post id of the event. For example, an event with a post id of 153 would use this shortcode for the ticket selector:

[ESPRESSO_TICKET_SELECTOR event_id=”123″]

You can find this while viewing an event in the event overview screen:

http://cl.ly/image/2a2e3s0N0P2p

You may find this tutorial helpful for setting the ticket selector to 1 (or another value):

https://eventespresso.com/wiki/setup-default-value-1-ticket-selector/


Lorenzo


Hannes Schnitzer

August 19, 2014 at 1:37 pm

Thanks. Still, I’m wondering if, like with EE3, I could override the .php template for the ticket selector to have custom html displayed on that page?


Lorenzo Orlando Caum

  • Support Staff

August 19, 2014 at 1:57 pm

Yes, you can do customize the content on the Event Espresso pages but you’ll need to setup the templates in your theme’s folder.

You can find a copy of the templates here:

wp-content/plugins/event-espresso-core-reg/templates/Espresso_Arabica_2014

Also see these links:

https://eventespresso.com/2014/02/developers-corner-theming-event-espresso-4/

https://eventespresso.com/wiki/ee4-themes-templates/


Lorenzo

The support post ‘After EE3 to EE4 migration:[ESPRESSO_REG_PAGE] shortcode not properly registered’ 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