Support

Home Forums Event Espresso Premium "View Shopping Cart" not Showing AND Looking for a "Continue Shopping" option

"View Shopping Cart" not Showing AND Looking for a "Continue Shopping" option

Posted: January 31, 2014 at 1:51 am

Viewing 17 reply threads


Kelsey Borlan

January 31, 2014 at 1:51 am

Hi There,

I feel like a champ because I (FINALLY!:) figured out how to add in my custom registration buttons to my page & they even work properly. HOWEVER, I am not liking the experience that happens between when I click my “add to cart” button and the cart its self.

WHAT HAPPENS:
I click “register” and I get a new version of the same page (thebrandgal.com/workshops) that only says “view cart” on it and nothing else.
OR
If I keep the “direct_to_cart=1” part of the short code in there, it automatically redirects me to the shopping cart. Which, would be fine except there is not “back” button or “continue shopping” button to tell me where I am and how to get back to where I was.
It just has a really clunky feel to it.

WHAT I WANT TO HAPPEN:
Ideally I would like to have a simple confirmation appear within the page when I click my register button (NOT be directed to the awkward “view cart” no man’s land page).
OR
I don’t mind being directed to the cart when I click “add to cart” as long as there is an easy way to get back to my purchase/event page (thebrandgal.com/workshops) without having to click my browsers back button (because that’s usually a no-no with registering and such so it doesn’t feel right)

Along these same lines, I would like to add a confirmation note into the cart somewhere assuring my customers that their (volume) discount will be automatically taken off when they register for all 4 classes.

Finally, is there a way to have a “cart” link somewhere on my event page? (thebrandgal.com/workshops) So that even if their cart is empty, they can easily navigate between the cart and the event page. I guess I just feel like I am getting lost trying to get back and forth and I know what is supposed to be happening. So if I’m feeling that way, I know it won’t be a good experience for my clients.

Sorry for the loooooong post! I will really appreciate any help! Thanks in advance!


Tony

  • Support Staff

January 31, 2014 at 3:40 am

Hi Kelsey,

How did you add your custom registration buttons to the page?

Can you post a link to your registration page so we can view what is happening please?

Along these same lines, I would like to add a confirmation note into the cart somewhere assuring my customers that their (volume) discount will be automatically taken off when they register for all 4 classes.

You would need to modify the cart code to do this, which we generally advise against although the function is ‘pluggable‘ so you could make the change update safe, but then any modifications we make to the cart with updates could be broken due to it using an old version of that function (which would be the custom one).

However… it is possible to ‘translate’ the phrase ‘You can register a maximum of %d attendees for this event.’ to whatever you would like to say (in this example you would be advising of the volume discount) which would then be more update friendly, but that depends on if you need the above phrase as is or not.

Finally, is there a way to have a “cart” link somewhere on my event page? (thebrandgal.com/workshops) So that even if their cart is empty, they can easily navigate between the cart and the event page.

Usually when you click ‘Add To Cart’ (without the direct_to_cart parameter) the link should change to ‘View Cart’ without the ‘awkward “view cart” no man’s land page’, we’ve seen this happen before and there are often many possible reasons for it (often some part of what the theme is doing, but not always) so you could have a Cart link, but I’m not sure how much use it would be avoid this problem currently.

We have the Espresso Cart Widget (Dashboard -> Appearance -> Widgets) http://d.pr/i/sjXq which provides easy access to the cart page if that is any better?


Kelsey Borlan

January 31, 2014 at 10:56 am

My event page is thebrandgal.com/workshops

This is the short code I am using to create my buttons:
[ESPRESSO_CART_LINK event_id=”week-1-understanding-your-camera-getting-off-of-%e2%80%9cauto%e2%80%9d-mode” ESPRESSO_CART_LINK anchor=” moving_to_cart=”Redirecting to cart…”]

I don’t know if this will help at all, but my theme is a ProPhoto theme. You have a point that if the whole page is changing to the “view cart” link then it really doesn’t do much good to put a widget or anything on there.

Hopefully we can simply resolve the link issue.

Thanks so much for all your help thus far.


Kelsey Borlan

January 31, 2014 at 12:09 pm

Also, I tried adding the shopping cart widget to my sliding drawer and its not showing up. Here are my visibility settings:
Show
if
the page
is
THE Workshops (thebrandgal.com/workshops)

I’m working on hiding the sliding drawer on every page except the Workshops page.


Josh

  • Support Staff

January 31, 2014 at 1:16 pm

Hi Kelsey,

It turns out that you can make that shortcode even shorter by plugging in the event ID. For example the “Week 1: Understanding your camera” event’s shortcode could be:

[ESPRESSO_CART_LINK event_id=1]

even better

you can wrap the cart link in div tags. This will contain those add to cart links so the rest of the page should still display when someone adds the event to their cart. Like this:

<div>[ESPRESSO_CART_LINK event_id=1]</div>

Another feature that I recommend checking out: If you go into Event Espresso>Template Settings, there’s a setting that reads: “Display event descriptions in the multiple event registration pages?”. If you set that to yes, then you can display some information for each of the events *after* they’ve finalized their selection in the cart.


Kelsey Borlan

January 31, 2014 at 1:40 pm

Thanks so much Josh! I’m adding in the div codes now. I’m also going to do the event description thing you mentioned.

Can you please clarify what shortening the short code accomplishes? Does it fix my problem?


Kelsey Borlan

January 31, 2014 at 2:05 pm

UPDATE:
Okay so I added the <div/> code to all of the buttons and its getting better, but its still not there yet. Now what happens is I get a little processing circle and then “View Cart” pops up where my button was. This is great. HOWEVER, when the “View Cart” link pops up, the rest of the page below that link disappears (not the whole page, ONLY what is below that particular button). Now, if I follow the view cart link to the cart I can use my browsers back button and the page loads properly.

This leads me back to needing an option within my cart to get back to the registration page. If its not recommended to modify the cart code, then can you please help explain this to me (I have no idea what it means):

it is possible to ‘translate’ the phrase ‘You can register a maximum of %d attendees for this event.’ to whatever you would like to say (in this example you would be advising of the volume discount) which would then be more update friendly, but that depends on if you need the above phrase as is or not.

Also, when I add a class, (we will say Week 1) to my cart > view my cart (because this is the only way to get the rest of the page to load by going back) > then add another class (say week 2) > click view my cart > once I’m in my cart only week 1 shows, I don’t see week 2.

Finally, any insight as to why my cart widget isn’t showing in my sliding drawer?

Thanks so so much guys! Getting close!


Kelsey Borlan

January 31, 2014 at 5:11 pm

To the problem above with the second event not showing up… it looks like the events being added to the cart are 1 behind. So event 1 adds properly, then event 2 does not. BUT when I add event 3, & click view cart, events 1 & 2 are not visible in the cart but not event. So theoretically it’s impossible for clients to ever purchase all 4 courses.

Hope this info helps!


Kelsey Borlan

January 31, 2014 at 11:25 pm

Okay, what I REALLY need help figuring out is 2 things.

FIRST, why when I click my add to cart button is the rest of the page disappearing below it.

SECOND, why are my items not all being added to my cart?

If we can just resolve these two things, then my site is at least functional.

If possible, I would still like to add some sort of “continue shopping” or “add more classes” button or link inside my cart.

My coding skills are nonexistent. BUT my direction following and problem solving skills aren’t bad.

I really want to get this up and running to open registration by Sunday.

Thanks so much for all your help guys!

<3K


Kelsey Borlan

February 1, 2014 at 1:19 am

One last thing I would really like help with:

I want my shopping widget that I have in a sliding drawer to be visible even when its empty.

Additionally some of my event items aren’t showing up in the widget. The bullet point is there but its blank

I’m running the newest EE and WP I also deactivated all but the EE plugins and I’m still having all these problems.


Tony

  • Support Staff

February 3, 2014 at 3:59 am

Hi Kelsey,

Would it be possible for you to link us to the site so we can view what is happening please?


Kelsey Borlan

February 3, 2014 at 9:05 am

Its the same url I’ve been linking to: http://thebrandgal.com/workshops

Thanks so much! I’m looking forward to getting this resolved 🙂


Tony

  • Support Staff

February 3, 2014 at 9:46 am

Ah sorry, I completely missed the links when I re-read the thread!

Ok, lets start with the Cart links. Currently the only link that is working correctly is Week 1 (as it is using the ID and not the Identifier)

Sometimes the Cart links can find the Event ID but without going into details, that can’t happen from the current page.

So you need to change all the ESPRESSO_CART shortcodes to use the ID number rather than the Identifier. That is why when you click multiples the only one that is visible is Week 1.

Whilst doing that, it doesn’t look like the Cart links have the closing div tag around them. Which is still causing half the page to be removed.

<div>[ESPRESSO_CART_LINK event_id=1]</div>

The end tag

</div>

Looks like its missing. You’ll need to make sure that has been added after each ESPESSO_CART shortcode.


Kelsey Borlan

February 3, 2014 at 9:49 am

Fantastic! Thanks so much! Can you please tell me (total novice over here:) how to change the link to the ID instead of the identifier?


Kelsey Borlan

February 3, 2014 at 10:00 am

YAY! I added the PROPER </div> code and at least the first one works! Hooray!

Also, while I’ve got you, I have a sliding drawer on this page only (http://thebrandgal.com/workhops) containing the shopping cart widget. Is there a way for it to keep up with people adding items to the cart? Right now its just blank even after adding week one.

Finally, I’d still really like to have some sort of “Continue Shopping” or “Add More Classes” link within the shopping cart so that clients don’t have to use their browsers back button to get back to the workshop page.

Once I can put the proper IDs into the links enabling them to add their workshops properly, and we can get the back button working, we should be solid! If all that works, I’m not even concerned so much about the widget!


Tony

  • Support Staff

February 3, 2014 at 10:18 am

Lets get all your Cart links working before we move any to the others 🙂

To find the Event ID go to Event Espresso -> Event Overview. Find the Event you want to create the Cart link for in the list. http://d.pr/i/1N40

So in the above example lets say we want to create a link for Performance 2. We can see the ID column and the Performance 2 event has an ID of 330. So our shortcode would look like this:

<div>[ESPRESSO_CART_LINK event_id=330]</div>

Obviously your event ID’s will be different, but you’ll need to do that for each of the cart links you have on that page.

So it looks like Week 1 has an ID of 1 is that correct in your Event Overview list?


Kelsey Borlan

February 3, 2014 at 10:42 am

Okay! All links are working properly! Yessssss!

Now, for a “Add More Classes” or “Back to Shopping” link in the shopping cart.

You have been so SO helpful! Thank you so so much!


Sidney Harrell

February 3, 2014 at 2:20 pm

Try adding this:

<p id="continue_shopping">
				<a href="<?php echo $_SERVER['HTTP_REFERER'] ?>"><?php _e('Continue Shopping', 'event_espresso'); ?></a>
			</p>

to templates/shopping_cart.php at line 155.
You might want to copy that file from plugins/event-espresso/templates to uploads/espresso/templates before you start playing with it, and to preserve your changes from an EE update, and to have a backup in plugins/event-espresso/templates should something go wrong.

Viewing 17 reply threads

The support post ‘"View Shopping Cart" not Showing AND Looking for a "Continue Shopping" option’ 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