Home Forums Multiple Event Registration Add-on Add To Cart Option in Table

Add To Cart Option in Table

Posted: July 25, 2012 at 8:47 am


July 25, 2012 at 8:47 am


I want to be able to add the option Add To Cart inside my list of events in the table format using the EVENTS_TABLE shortcode. How can I do this?


Chris Reynolds

  • Support Staff

July 25, 2012 at 10:20 am

You’ll need to edit your table_display.php and add your [ESPRESSO_CART_LINK] shortcode in a do_shortcode tag, e.g.: do_shortcode('[ESPRESSO_CART_LINK]') in the table.


August 22, 2012 at 11:17 am

Hi I am having an issue with this. I have edited the file but all that comes up is “View Cart” not “Add to Cart”.

I want it to resemble what this website has,

So you click “Register” then that turns into “View Cart”.

Many Thanks

Chris Reynolds

  • Support Staff

August 22, 2012 at 11:43 am

When you click ‘View Cart’ is there anything in your cart? Can you post a link to your site?


August 22, 2012 at 1:35 pm

No it comes up with an error code,

Warning: implode() [function.implode]: Invalid arguments passed in /homepages/23/d413956706/htdocs/wp-content/plugins/event-espresso.3.1.21.P/templates/shopping_cart.php on line 20

Chris Reynolds

  • Support Staff

August 22, 2012 at 2:28 pm

Looks like you’re using an old version of Event Espresso. Try upgrading to the latest version and see if you still get the issue.


August 22, 2012 at 2:48 pm

Ok I have just downloaded the latest version from “Account”. Is there anything I need to know before upgrading?

I was going to upload the new event espresso with a FTP client to replace the existing?

Chris Reynolds

  • Support Staff

August 22, 2012 at 3:04 pm

Just 2 things:

  • If you are using any custom templates, rename your /wp-content/uploads/espresso/templates directory to templatesOLD temporarily to make sure everything works. You’ll need to migrate any custom code over to the new templates as there have been changes since that version.

  • For the automatic updates to work, your Event Espresso directory in the plugins folder needs to be named /event-espresso/ with no other event espresso directories in the plugins folder. Then you can copy/paste your license key from your Account page into your General Settings page and get automatic updates when new versions are released.


August 31, 2012 at 6:28 am

What do I do with the old event espresso folder? I am frightened of deleting it!


August 31, 2012 at 7:21 am

Ok, not to worry! everything is sorted with teh update.

I still have the error code thought when ‘Viewing Cart”

Warning: implode() [function.implode]: Invalid arguments passed in /homepages/23/d413956706/htdocs/wp-content/plugins/event-espresso/templates/shopping_cart.php on line 20


August 31, 2012 at 9:53 am

I am also receiving this error message at the ‘Choose a payment option”

WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND attendee_session = 'eb85a919a6f317d1e17405114f5acd9c-5040d6bf2fed72.61794511' at line 5]

SELECT id, fname, lname, email, address, city, state, zip, event_id, registration_id,
(SELECT count( id )
FROM wp_events_attendee WHERE attendee_session = ‘eb85a919a6f317d1e17405114f5acd9c-5040d6bf2fed72.61794511’
) AS quantity
FROM wp_events_attendee WHERE event_id = AND attendee_session = ‘eb85a919a6f317d1e17405114f5acd9c-5040d6bf2fed72.61794511’ LIMIT 1

Chris Reynolds

  • Support Staff

September 4, 2012 at 10:38 am

Do you have files in your /wp-content/uploads/espresso/templates/ directory? If so, you need to rename that folder or delete it (unless you’ve made changes to those templates and uploaded them yourself. In that case, rename the folder to test, then make any necessary changes to the files themselves so they work with the current version of Event Espresso.)

The support post ‘Add To Cart Option in Table’ 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.

Status: closed

Updated by  Chris Reynolds 8 years, 5 months ago ago

Topic Tags


This topic is: not resolved
Do NOT follow this link or you will be banned from the site!