Support

Home Forums Event Espresso Premium ESPRESS CART LINK SHORTCODE

ESPRESS CART LINK SHORTCODE

Posted: August 22, 2013 at 5:08 pm


Jerry Gilden

August 22, 2013 at 5:08 pm

Hello EE, Josh or Dean or Garth sent us this link as an option to format our cart with this shortcode–would you please send us an example of how this looks when applied? A link to a page that is set up with this code. thank you!!

from EE:
I’d add that instead of using the default event list to show all the options, you could create a page that lists out all the options and use the [ESPRESSO_CART_LINK] shortcode to allow each option to be added to the cart:

https://eventespresso.com/wiki/shortcodes-template-variables/


Josh

  • Support Staff

August 23, 2013 at 8:48 am

Here’s a direct link to the documentation that shows usage examples:

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

While the cart link’s appearance will vary depending on the WordPress theme installed, here’s a link to a page on a website where a cart link is set up:

http://eetesting.info/3.1.josh/mer-test/

It’s marked up as a simple HTML table in the page editor like this:

<style>td{width:50%;}</style>

<table>
<tr>
<td>
Option #1
</td>
<td>
[ESPRESSO_CART_LINK event_id="2737" anchor="Add this option to your cart"]
</td>
</tr>
<tr>
<td>
Option #2
</td>
<td>
[ESPRESSO_CART_LINK event_id="2777" anchor="Add this option to your cart"]
</td>
</tr>
</table>


Jerry Gilden

August 23, 2013 at 9:10 am

Hi josh so could we purchase a support token and have EE set us up this way ? We want to do this but feel its best to have your team do it to get it done right. Please let me know how to proceed with this. Thx Michelle


Jerry Gilden

August 23, 2013 at 9:22 am

Hi josh also, can we set the default selection to “1” for quantity in all events ?


Josh

  • Support Staff

August 23, 2013 at 11:26 am

Hi there,

Depending on the number of events, these can be set up on a page by support staff for one support token (which covers 30 minutes of working time).

The default is set to zero in the cart for events to allow for multiple price types. If you are doing one price per event the default can be changed with some custom development (by using jQuery).

Here is some example code:

<script>jQuery(document).ready(function(){
    jQuery(".price_id").val(1);
    jQuery('#event_espresso_refresh_total').trigger('click');
});
</script>

The support post ‘ESPRESS CART LINK 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