Support

Home Forums Event Espresso Premium Removing Register button in MER – globally across all events

Removing Register button in MER – globally across all events

Posted: August 30, 2013 at 3:27 pm


dalcevents

August 30, 2013 at 3:27 pm

I have read and used the information in the forum topic: Use ‘Add to Cart’ link instead of default registration form, but is there a way to have the “Add to Cart’ link appear GLOBALLY without having to make this change on each individual event?

I have an admin-level person entering the events and I would prefer not to have them use shortcodes in the event description.

Of course they can learn if they have to 😉


Josh

  • Support Staff

August 30, 2013 at 4:37 pm

Hi there,

The add to cart shortcode can be added to the registration_page_display.php template where ever you’d like it to appear:

<?php echo do_shortcode('[ESPRESSO_CART_LINK event_id="'.$event_id.'" anchor="Add to Cart"]'); ?>


dalcevents

August 30, 2013 at 5:39 pm

This works in the registration_page_display.php template well.

Will this also work in event_list_display.php? It is so convenient for students to ‘register’ directly from the event listings.

J.


dalcevents

August 30, 2013 at 5:55 pm

Plus, I tried adding the code to each of the templates registration_list_display (with R) and Event_list_display (with E) and it ended up breaking the cart – so no input fields were visible when I tried to register.

http://jredweb.com/dalc.jredweb.com/programs/enrichment-classes/cooking/

Sounds like there is a ‘no man’s land’ somewhere in here, such that the code works ont he registration list but differently on the event list.

J.


Sidney Harrell

September 2, 2013 at 12:24 pm

I tried the add-to-cart link from the event list page, and it seems to be working. You may just need to make sure that your cart in cleared out before you start testing (visit the registration-cancel or thank-you page).

The support post ‘Removing Register button in MER – globally across all events’ 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