Support

Home Forums Multiple Event Registration Add-on Shopping Cart Link in Header Navigation

Shopping Cart Link in Header Navigation

Posted: February 13, 2014 at 2:32 pm


wso

February 13, 2014 at 2:32 pm

Hello,
I want the MER shopping cart to diplay “Events Cart” in the site navigation ONLY when there are items added to the cart. How can this be done?

Thanks,
Brian


Tony

  • Support Staff

February 13, 2014 at 5:11 pm

Hi Brian,

Unfortunately Event Espresso does not have that functionality currently.

We have the Espresso Cart Widget which which will only load within the widget area once an event has been added to the cart.

This is available within Appearance -> Widgets.


wso

February 13, 2014 at 8:50 pm

Thanks, Tony. I added the Cart to the sidebar. But when I click the “Add this event to your cart” link the Cart doesn’t show with the event.

I am using the shortcode [ESPRESSO_CART_LINK event_id=”spring-2014-w-52fc50b3ea45c” anchor=”Register for This Event”]

Any suggestions?


wso

February 13, 2014 at 8:51 pm

You can see what I mean here.


Tony

  • Support Staff

February 14, 2014 at 1:47 am

Hi Brian,

Thank you for the link, it helps too see the issue more clearly.

There’s a couple of issues here. The ESPRESSSO_CART_LINK uses the event id (interger) and not the event identifier (string)

Currently you are using the Identifier for the event_id parameter, this needs to be the id itself. You can find this within the event overview (Event Espresso -> Event Overview) find your event and you’ll see the id number within the ID column use that in the shortcode you provided above.

Secondly there is some JavaScrip loading within the page that is not using jQuery noConflict() which is causes errors. http://d.pr/i/y5Cn

The code loads within the header http://d.pr/i/47hl (likely the header.php template files) but also the footer http://d.pr/i/yuwv (likely footer.php)

One once instance of the script should load and should be correctly loaded to avoid conflicts, a little more info is av available HERE

Basically you need to change

$(function(){

to be

jQuery(document).ready(function($){

If this is not your own code I would recommend contacting the theme developer with this information to have them fix this.

Hope that helps 🙂

The support post ‘Shopping Cart Link in Header Navigation’ 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