Support

Home Forums Event Espresso Premium EE4 update

EE4 update

Posted: June 19, 2014 at 5:22 am


Adam Drelich

June 19, 2014 at 5:22 am

hi there,
i bought the business license and i’m trying to set up the site, but now i’m not sure whether i should go for EE3 or EE4. EE4 seems like the way to go, but then i’d really need Ticketing addon and a couple of more as well to work with EE4.
could you please let me know what’s the chance to see these addons working with EE4 any time soon?

thanks,
Adam


Tony

  • Support Staff

June 19, 2014 at 5:37 am

Hi Adam,

Unfortunately we currently can not give any timelines for the EE4 Add-on’s.

If you require the Ticketing functionality I would recommend going with EE3 at this time. You will then be able to migrate over from EE3 to EE4 once the relevant Add-on’s you require have been released.


Adam Drelich

June 19, 2014 at 8:46 am

thanks Tony, that’s fair enough. it’s a bit annoying that these addons don’t work with EE4, but hopefully they’ll be working in the future and updating from EE3 to EE4 won’t be too painful.
i’m only worrying that if i do custom modifications, they’ll be lost once i upgrade but that’s probably something to worry about in the future i guess once it’s actually possible.

thanks,
Adam


Tony

  • Support Staff

June 19, 2014 at 3:32 pm

Hi Adam,

We all feel your pain 🙂

We’d love to have been able to release all of the Add-on’s (or comparable functionality) for EE4 at release, but as EE3 and EE4 are so vastly different systems this just simply wasn’t possible.

We have built migration scripts within EE4 that will allow you to migrate all of you current EE3 data over when suits your needs.

I can tell you that any custom modifications made to EE3 will almost certainly not be compatible with EE4 (again as they are so vastly different)


Adam Drelich

June 20, 2014 at 12:32 pm

hi Tony,
thanks, i understand that.
i’ll use EE3 then. i’m just wondering.. it’s possible to create a post while creating an event. how can i tweak single post page so i have event registration on the post opposed to Register link only?

thanks,
Adam


Tony

  • Support Staff

June 20, 2014 at 2:32 pm

Your event ‘post’ should actually display the registration form within the post itself, not just a link to the EE event, unless your using MER and hiding the registration form?

Do you have a link I can view the post and see what is happening?


Adam Drelich

June 23, 2014 at 3:38 am

hi Tony,
sorry for my late reply, i was away and couldn’t get back sooner.

please check the post here: http://dobuytickets.com/sports/2014-formula-1-abu-dhabi-grand-prix/

it doesn’t display the registration form, just ‘Register’ link which then takes you to the EE event..

i’d like to be able to customise that so if you could guide me a bit that’d be great!

thanks,
Adam


Dean

June 23, 2014 at 5:10 am

Hi Adam,

The posts don’t contain the form by default.

There are a couple of ways to do it, you cna create the post then add in the [ESPRESSO_REG_FORM event_id=xxx] shortcode.

While this is the simplest way, it can also be prone to problems, especially if you update the event as it will remove the shortcode.

The second option does require a little bit of template editing but is more bulletproof.

If you copy /wp-content/plugins/event-espresso/templates/event_post.php over to wp-content/uploads/espresso/templates/ and then edit it there you can add in a line of code that will automatically add the form.

Simply add

<?php echo do_shortcode('[ESPRESSO_REG_FORM event_id=' . $event_id . ']'); ?>

at the bottom of the file. Now every event Post will have the appropriate form attached.

While you’re in the file you may want to remove the register links:

Change this line

<p><img style="padding-right: 5px;" src="<?php echo EVENT_ESPRESSO_PLUGINFULLURL?>/images/map.png" border="0" alt="<?php _e('View Map', 'event_espresso'); ?>" /><?php echo $google_map_link; ?> | <a class="a_register_link" id="a_register_link-<?php echo $event_id ?>" href="<?php echo $registration_url; ?>" title="<?php echo stripslashes_deep($event_name) ?>"><?php _e('Register', 'event_espresso'); ?></a></p>

to

<p><img style="padding-right: 5px;" src="<?php echo EVENT_ESPRESSO_PLUGINFULLURL?>/images/map.png" border="0" alt="<?php _e('View Map', 'event_espresso'); ?>" /><?php echo $google_map_link; ?> | <a class="a_register_link" id="a_register_link-<?php echo $event_id ?>" href="<?php echo $registration_url; ?>" title="<?php echo stripslashes_deep($event_name) ?>"><?php _e('Register', 'event_espresso'); ?></a></p>

and remove this line completely

<p><a class="a_register_link" id="a_register_link-<?php echo $event_id ?>" href="<?php echo $registration_url; ?>" title="<?php echo stripslashes_deep($event_name) ?>"><?php _e('Register', 'event_espresso'); ?></a></p>

Please note you will have to update the event before any changes will be shown on the post.


Adam Drelich

June 23, 2014 at 5:49 am

thanks Dean for your reply!
i think we slightly misunderstand each other. event-post.php is a custom post type feature, which needs to be ticket on in template settings. is that correct?

when i create an event, there’s ‘create a post’ option there. i’ve moved event-post.php file how instructed but nothing on the post was changing. i’ve double checked on ‘Develpers Only’ that events-page.php has been moved so i guess it must be some other file that needs tweaks?

thanks,
Adam

PS. is it possible to display google map instead of just ‘View MapMap and Directions’ ?


Dean

June 23, 2014 at 6:13 am

Hi,

No, event_post.php actually refers to the post created by the event, NOT the custom post type that can also be created.

Did you modify the template?

Did you update the event afterwards? (Making sure that the “Add/Update post for this event?” option at the bottom of the event is set to Yes).

Regarding the venue, add [ESPRESSO_VENUE] to the event description. You may want to change the Template Setting “Display the address in the registration form?” to No otherwise you will have two addresses showing.


Adam Drelich

June 23, 2014 at 7:24 am

hi Dean,
thanks for that. i didn’t know i need to update the event. it works now. however, i think that the code line you’ve asked me to change to is the same as the original one.
could you send me the one i should use?

thanks,
Adam,

PS. on the blog post page, i’d like people first to select what type of a ticket they want and then once they do that, click on register and take them to registration page. would that possible?


Josh

  • Support Staff

June 23, 2014 at 8:22 pm

Hi Adam,

I think Dean meant to post:

Change this line

<p><img style="padding-right: 5px;" src="<?php echo EVENT_ESPRESSO_PLUGINFULLURL?>/images/map.png" border="0" alt="<?php _e('View Map', 'event_espresso'); ?>" /><?php echo $google_map_link; ?> | <a class="a_register_link" id="a_register_link-<?php echo $event_id ?>" href="<?php echo $registration_url; ?>" title="<?php echo stripslashes_deep($event_name) ?>"><?php _e('Register', 'event_espresso'); ?></a>

to

<p><img style="padding-right: 5px;" src="<?php echo EVENT_ESPRESSO_PLUGINFULLURL?>/images/map.png" border="0" alt="<?php _e('View Map', 'event_espresso'); ?>" /><?php echo $google_map_link; ?> </p>

PS. on the blog post page, i’d like people first to select what type of a ticket they want and then once they do that, click on register and take them to registration page. would that possible?

This is possible in Event Espresso 4, but not in Event Espresso 3. If you want to break up the registration where they’d first select a ticket type in a cart, then register, you could try this: Install the Multi Event Registration add-on, then instead of displaying the registration form on the event’s post, display the add to cart link. You can try it out by placing this in the event’s description:

[ESPRESSO_CART_LINK]


Adam Drelich

June 24, 2014 at 6:32 am

thanks, i’ve used <pre class=”brush: php; gutter: true; first-line: 1; highlight: []; html-script: false”><?php echo do_shortcode('[ESPRESSO_CART_LINK]'); ?> and it worked.
however, it says ‘Register’. how could i replace this text or even better display as an image?
then, once i click ‘Register’ is says ‘View Cart’ and after clicking it takes to another page. is there any chance to view the cart on the same page or that’s EE4 only?

thanks,
Adam


Josh

  • Support Staff

June 24, 2014 at 9:01 am

Hi Adam,

In Event Espresso 3 the cart is on a separate page, but it does allow for a automatic redirect to the cart if you add the direct_to_cart=1 parameter.

You can change the anchor text or even display an image by using the anchor=”Anchor text goes here” parameter. I’ll include a link to the Multi Event Registration shortcode documentation for your reference:

https://eventespresso.com/wiki/shortcodes-template-variables/#add-to-cart

If you want to make the add to cart link more button like you can use some CSS or use an image for the anchor. Here’s a few links that have tutorials that show how to do either:

https://eventespresso.com/wiki/multiple-events-registration-use-add-to-cart-link-instead-of-default-registration-form/#customizing

https://eventespresso.com/wiki/using-css3-to-style-links/

The support post ‘EE4 update’ 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