Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Register Now & Add To Cart Shortcode | Event Espresso - Staging Server

Support

Home Forums Multiple Event Registration Register Now & Add To Cart Shortcode

Register Now & Add To Cart Shortcode

Posted: February 13, 2014 at 8:47 pm

Viewing 4 reply threads


Anji Grainger

February 13, 2014 at 8:47 pm

Hello,
I would like to use an “Add to Cart” and “Register Now” short code to to generate text links on a page for 1 specific event. I am using MER.

I would like the “Add to Cart” to add the item to the sidebar cart widget. I would like the Register Now shortcode to take the user to the registration page.

I prefer not to use the default event template layouts for registering or adding to cart, just text links.

How can I do this?

Thanks!


Anonymous

February 14, 2014 at 2:20 am

Hi Brian,

To create the Add to Cart link you can use the [ESPRESSO_CART_LINK] shortcode, passing only the event_id as a parameter (possibly using the Anchor parameter too to change the text).

There is no shortcode for just the Register Now button as this is basically just a link to the event registration page.

To build this you edit the Event.
Go to Event Espresso -> Event Overview.
Find the event you wish to link to.
Edit the event and look under the Event Name/Title. You’ll see 3 buttons.
‘Shortcode’, ‘Short URL’, ‘Full URL’
Click Short URL, copy the URL from the pop up then use that URL to create a link for that event.

To create the link go to the page you want the link on, highlight the word/phrase you are using for the link, (In this case ‘Register Now’) click the link icon (http://take.ms/FnA7B), paste the URL in the URL field and click Add Link. http://d.pr/i/8K4m

You can also embed the full Registration Form/Event within another page using the shortcodes [SINGLEEVENT single_event_id=”your_event_identifier”] (for the full event) or [ESPRESSO_REG_FORM event_id=*event id*] for just the registration form.

Hope that helps.


Dean

  • Support Staff

February 14, 2014 at 3:38 am

Hi Brian,

Add to Cart – [ESPRESSO_CART_LINK event_id=”1″ anchor=”Register for This Event”]

Just change the event id and the anchor text.

Register Now – why not just use a standard link to the events page? eg

<a href="http://www.yoursite.com/event-registration/?ee=3">Register Now</a>


Anji Grainger

February 14, 2014 at 2:00 pm

Thanks guys, that helped.

Per Dean’s advice, I changed my ESPRESSO_CART_LINK to include the event ID. It seems to be “trying” to work better now. However, I get redirected to a page that says “View Cart” when I click the “Add this event to your cart” link. When I go back, the cart widget is updated updates but with no event title.

I need the events to load into the cart widget on the same page: link

Any ideas?

Thanks again!


Dean

  • Support Staff

February 17, 2014 at 1:07 am

Hi,

The View Cart link is built in functionality, you will be hard pressed to remove it.

The refresh issue is a known issue, and we have a ticket raised to look into it. In the meantime Sidney proposed a manual fix for it here – https://staging.eventespresso.com/topic/shopping-cart-widget-please-have-it-show-without-adding-to-cart/

Viewing 4 reply threads

The support post ‘Register Now & Add To Cart Shortcode’ 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 - Staging Server