Support

Home Forums Event Espresso Premium PHP Shortcodes not working on shopping cart page

PHP Shortcodes not working on shopping cart page

Posted: December 5, 2012 at 4:17 pm

Viewing 3 reply threads


Bryan Wolfe

December 5, 2012 at 4:17 pm

Hi there,

I am trying to return some extra information on the shopping_cart.php page and it’s not working as it is on other pages.

For example, I am returning the staff’s name in the name of a class we are offering, and using this short code on the event_list_display page and it works perfectly. “with ”

I use that same code on shopping_cart.php and it doesn’t work.

Any advice would be greatly appreciated. Thanks!


Dean

December 6, 2012 at 5:58 am

Hi Bryan,

The two templates actually do two different SQL calls, and the shopping_cart template does not call in the staff information which is why it isn’t showing up there.

If you take a look at the event_list.php (not the the _display one) you will see a full list of the SQL calls there.


Bryan Wolfe

December 6, 2012 at 10:30 am

Thanks Dean. So I will need to make a call for the meta information then? I’m putting the information in the event meta boxes. I can’t quite tell from the event_list.php file which sql call returns the meta information. Any chance you know which one I need to add to the shopping cart file?


Josh

  • Support Staff

December 7, 2012 at 1:57 pm

Hi Bryan,

You could try declaring the $event_meta as a global variable:

Viewing 3 reply threads

The support post ‘PHP Shortcodes not working on 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