Support

Home Forums Event Espresso Premium Adding information to Shopping Cart page

Adding information to Shopping Cart page

Posted: October 28, 2013 at 12:51 pm


Angela Haddon

October 28, 2013 at 12:51 pm

Hi, I’d like to add some simple information at the top of the shopping cart page. I’d prefer to do it without altering the shopping_cart.php template; is there a way to do it from WP admin? I’m just struggling to find a way because it looks like the shopping cart actually stems from the Event Registration page. Is there a way to do this? Thanks!


Jonathan Wilson

October 28, 2013 at 2:01 pm

Hi Angela,

There are several templates that are used with the [ESPRESSO_EVENTS] shortcode, so the only want to add information to the shopping cart page would be to add it to the shopping_cart.php template.


Angela Haddon

October 28, 2013 at 2:07 pm

Thanks Jonathan – no worries, I’ll just do that. I seem to be having a bit of an issue overriding the shopping_cart.php template; I just need to place a copy of it within my WP site’s theme folder and edit that one, right? For some reason it’s not picking up on the changes, so I just wanted to confirm that I’m putting it in the right folder.


Jonathan Wilson

October 28, 2013 at 2:08 pm

Hi Angela,

No. You’ll need to move the file over to the wp-content/uploads/espresso/templates folder. ๐Ÿ™‚


Josh

  • Support Staff

October 28, 2013 at 3:36 pm

It turns out there are some ways to add additional information without altering the template. One way is to use CSS. You can add something like this to your theme’s stylesheet:

#event_espresso_shopping_cart:before {
   content:"My additional information for the cart page";
}

There are also some action hooks within the shopping_cart.php template that could be used. Although using those to inject additional content will require some CSS tweaks because the hooks happen after the cart content.


Angela Haddon

October 28, 2013 at 3:46 pm

Aha! That’ll do it…thanks to both of you for the quick responses ๐Ÿ™‚ Much appreciated!

The support post ‘Adding information to Shopping Cart page’ 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