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
Adding Add to Cart To Calendar | Event Espresso - Staging Server

Support

Home Forums Event Espresso Premium Adding Add to Cart To Calendar

Adding Add to Cart To Calendar

Posted: January 22, 2014 at 10:34 pm

Viewing 7 reply threads


Sarah Reed

January 22, 2014 at 10:34 pm

Is there a way to add the “add to cart” button the the tooltips rollover on the calendar? Also is there a way to add “add to cart” to the event registration detail page rather than just the register button. Currently the only place I see that I can have add to cart is on the custom templates add on for the list view of the events.


Sidney Harrell

  • Support Staff

January 23, 2014 at 11:02 am

If you add the shortcode [ESPRESSO_CART_LINK] to the event description, it will be in the tooltip on the calendar.


Sarah Reed

January 29, 2014 at 10:42 pm

How do I change the anchor text? It says “Register” rather than “Add To Cart”. I tried anchor=”Add To Cart”, but it didn’t work.


Dean

  • Support Staff

January 30, 2014 at 6:09 am

Hi Sarah,

Please update to the latest. I had the same issue when using your version but the latest version seems to have resolved it.


Sarah Reed

January 30, 2014 at 11:35 pm

Latest version of what? The plug in or just the add on?


Dean

  • Support Staff

January 31, 2014 at 2:37 am

My apologies, update the core Event Espresso plugin, but also check your addons are up to date as well.


Sarah Reed

January 31, 2014 at 2:52 pm

I’ve made some custom edits to the core plug in, I’m afraid that updating it will override my custom work – it was minor, but I don’t remember which files I edited. Is there any other way to create an add to cart link for each event – even if I have to manually add it to each one and not use a short code?

Like how you can use /event-registration/?regevent_action=show_shopping_cart to view the cart without using a short code.

I tired /event-registration/?event_id=19 but it just gives you a list of all of the event rather than adding it to the cart.

Doing [ESPRESSO_CART_LINK anchor=”Add To Cart”] works if you are viewing the event registration page, but it doesn’t work when viewing the tooltips on the calendar


Josh

February 4, 2014 at 9:04 am

Which version of the calendar are you using?

One way to place an add to cart link on the registration page is to use a custom function. Here’s something you can add to your custom file add-on’s custom_functions.php file or in a custom snippet plugin

<?php

add_action('action_hook_espresso_social_display_buttons', 'single_custom_cart_link');

function single_custom_cart_link($event_id) {
    global $wpdb;
    $event_name = $wpdb->get_var("SELECT event_name FROM " . EVENTS_DETAIL_TABLE . " WHERE id='" . $event_id . "'");

    ?><div class="custom-cart-link" style="display:block;"> 

        <?php echo do_shortcode('[ESPRESSO_CART_LINK event_id="'.$event_id.'" event_name="'.$event_name.'" anchor="Add this session to your cart"]'); ?>
    
    </div>
    <?php
}
Viewing 7 reply threads

The support post ‘Adding Add to Cart To Calendar’ 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