Posted: 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. |
|
If you add the shortcode [ESPRESSO_CART_LINK] to the event description, it will be in the tooltip on the calendar. |
|
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. |
|
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. |
|
Latest version of what? The plug in or just the add on? |
|
My apologies, update the core Event Espresso plugin, but also check your addons are up to date as well. |
|
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 |
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 } |
|
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.