Support

Home Forums Custom Files Add-on (EE3) combining multiple events with the espresso table custom file

combining multiple events with the espresso table custom file

Posted: July 9, 2012 at 1:56 pm


alex cates

July 9, 2012 at 1:56 pm

hi, how do i replace the register fuction with the add to cart link provided by the multiple cart extension on the espresso table? i tried a straight up replacement, but couldnt figure it out (im still new to php and css) i then tried changing the teble to show a description and having the descriptiopn contain the add to cart link short code, but the espresso table could not do anything with the shortcode.

Any help would be greatly appreciated
thank you


Josh

  • Support Staff

July 9, 2012 at 3:11 pm

In order to use a shortcode in a template file, use a do_shortcode like this:

<?php echo do_shortcode('[ESPRESSO_CART_LINK event_id="'.$event->id.'" anchor="Register for This Event"]');?>
  • This reply was modified 11 years, 9 months ago by  Josh. Reason: code formatting


alex cates

July 9, 2012 at 3:25 pm

Thank you, worked like a charm 🙂

The support post ‘combining multiple events with the espresso table custom file’ 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