Support

Home Forums Event Espresso Premium View Event Cart Doesn't Respond on 1st Click

View Event Cart Doesn't Respond on 1st Click

Posted: January 8, 2016 at 1:17 am


ggtinfo

January 8, 2016 at 1:17 am

Hello!

I’m running EE4 with multiple registration plugin with Fudge theme with Stripe. There’s 2 things I need help:

  1. View Event Cart doesn’t respond on the 1st click. However it works on the 2nd click which forces me to edit in the cart once I get to that page
  2. The size of the icon on the receipt is exceptionally large. The specs call for 512px by 512px. If made smaller will it still work?

We’re working in Stripe debug mode, so here’s the url for you to check it out for yourself http://pcts.greatergrace.org/

We’re currently not using any caching plugins.

Also, I have the pdf of my receipt which I can send as well if you like. Thanks in advance for your help – I appreciate it.


Tony

  • Support Staff

January 8, 2016 at 5:43 am

Hi there,

I ran a registration and download the receipt so no need to send one over 🙂

Starting with the Icon size as it’s the simplest to fix, you can set a custom logo for the invoice and receipt within Event Espresso -> Payment Method -> Invoice -> Logo Image.

Set an image with a smaller size there and it will be used within the Invoice/Receipt.

The reason the View Cart button is not directing you to the cart is because you are loading the ticket selector through an iFrame. If you switch out the front page to use the [ESPRESSO_TICKET_SELECTOR event_id=”your_event_id”] they should work as expected.

Is there a reason your embedding the ticket selector currently?


ggtinfo

January 8, 2016 at 4:44 pm

Is there a reason your embedding the ticket selector currently?

Yes. The Fudge theme widget on home page demands this. Also, I don’t know how to get around that since the theme support EE. I’m open to suggestion as long as it does not:

  1. Break the Theme
  2. Make it harder (more clicks) to Register

The reason the View Cart button is not directing you to the cart is because you are loading the ticket selector through an iFrame. If you switch out the front page to use the [ESPRESSO_TICKET_SELECTOR event_id=”your_event_id”] they should work as expected.

As I’m following the Fudge instructions and looking at the backend of their demo, the registration embed code used an iframe. If you know of a way to may this work using different embed code without using an iframe, please advise.

Thanks for your prompt response.


Lorenzo Orlando Caum

  • Support Staff

January 8, 2016 at 6:43 pm

Hello,

The embed option is generally used on another website (external site) since its loading via an iframe.

Have you tried the shortcode option as Tony shared?


Lorenzo


ggtinfo

January 8, 2016 at 8:08 pm

The embed option is generally used on another website (external site) since its loading via an iframe.

Have you tried the shortcode option as Tony shared?

As a matter of fact, yes I did. Thanks! I’ve found that:

  • After inputting mandatory registration of 1 and clicking on Add to Event Cart, following brief notification I click on same button (which changed to View Event Cart) and the proper number of registrations is not correct
  • After repeating the registration and clicking on View Event Cart, the number has increased and still not correct
  • Continuing testing, I input primary registrant info (even with the number incorrect) and cannot get back to homepage (it goes to checkout pages without the option of going back to my original ticket selector (which is now just the shortcode without the iframe)

So, there’s 2 things to get settled: 1) proper calculation of ticket quantity and 2) going to the ticket selector on home page rather than Event page. Hopefully, this makes sense; yet if you need additional access or details, please ask.

Thanks!


ggtinfo

January 12, 2016 at 6:43 am

Please advise status of our support question. Thanks 🙂


Tony

  • Support Staff

January 14, 2016 at 5:07 am

Hi there,

When you select the tickets and add them to the cart you should not be directed to the single event page. A model should show on the screen asking if you would like to return to the event list or proceed to the registration.

Like this – http://take.ms/joSlc

Clicking to proceed should then take you to the checkout page to enter the registrant details, not the single event page displaying the ticket selector again.

I tested this on Fudge and it work as expected (that image is from me selecting ticket on Fudge theme from the homepage), which version number of Fudge are you using?

You can find that within Appearance -> Themes. Click Fudge theme to view the details and you’ll see version number.

Continuing testing, I input primary registrant info (even with the number incorrect) and cannot get back to homepage (it goes to checkout pages without the option of going back to my original ticket selector (which is now just the shortcode without the iframe)

Event Espresso does not direct you back to any page, one of the reasons for this is the ticket selector can be used on any page within your site, so how would we know which page to direct you back to?

You can add manually a link back to the homepage to the checkout page if you prefer?


ggtinfo

January 15, 2016 at 8:41 pm

Thanks for the response. For the sake of clarity:

  • I’m using the latest version of Fudge (v1.34)
  • I’m running EE 4.8.31.p
  • EE MER v2.0.7.p
  • EE Stripe Gateway 1.0.11.p (currently in test mode)
  • I’m using shortcodes for the ticket selector on the home page
  • There are 2 events: conference + luncheon
    1. Conference registration requires a flat fee with single ticket; yet unlimited attendees under a single paid registration
    2. Luncheon tickets are sold individually per paid or unpaid attendee
    3. Both event tickets are set up to be sold as a single transaction for for checkout purposes
  • We’re currently running on a development site

Here’s the use case: I place quantity of 1 in the ticket selector of the conference. I then place quantity of 5 for additional attendees. I click on “Add to Event Cart” button. I’m then taken to the single event page (not the Event Cart) where the number for additional registrants is “0” not “5”. This is what’s broken.

I go on to correct the number of additional registrants from “0” to “5”. Then I click on “Add to Event Cart” button. A pop-up says 6 items were successfully added for this event. Below it there’s a choice to either return to Events List or Proceed to Registration. Beneath that is the statement “There are currently 12 items in the Event Cart.” And below that is a view Event Cart button.

I now click on view Event Cart button. Then I’m taken to the Registration Checkout page where now there’s 2 paid registrations plus 10 free. I can manually either adjust the numbers or completely Empty Event Cart. Beneath that button are 2 buttons: Return to Events List (I need to go back to the home page where the ticket selector is located – this is broken) or Proceed to Registration buttons.

Hopefully, the effort to document what I’m seeing helps you to understand the challenges I’m facing. Also, since this test site is active, I recommend that instead of going to the Fudge demo that you’d go to pcts.greatergrace.org where you can duplicate the issue.

As an I.T. guy, I can figure it out quickly and move on. But the audience we’re serving needs to have the registration process go as smoothly as possible. So I’m sincerely asking that you take a closer look at this issue and resolve it.

Of course, if I’ve improperly configured anything, I will promptly follow your directions to get this resolved. I’ve strongly recommended EE to my client; yet their confidence in EE is shaky at best. Please help me change this perception by working with me to get these challenges resolved 🙂

You can add manually a link back to the homepage to the checkout page if you prefer?

I’d like that, for sure 😀

As always, I thank you in advance for your efforts.


Tony

  • Support Staff

January 18, 2016 at 3:07 am

I do understand the problem your facing, however I currently can’t see a reason for it.

Here’s the use case: I place quantity of 1 in the ticket selector of the conference. I then place quantity of 5 for additional attendees. I click on “Add to Event Cart” button. I’m then taken to the single event page (not the Event Cart) where the number for additional registrants is “0” not “5”. This is what’s broken.

Its not the quantity that is broken there, it’s the fact that you are being directed to that single event page in the first place.

I go on to correct the number of additional registrants from “0” to “5”. Then I click on “Add to Event Cart” button. A pop-up says 6 items were successfully added for this event. Below it there’s a choice to either return to Events List or Proceed to Registration. Beneath that is the statement “There are currently 12 items in the Event Cart.” And below that is a view Event Cart button.

Your not correcting the qty there, your actually adding additional tickets to the cart because you should not be at the page at that point. So whats happening on the single event page is expected, but you should not be at that single event page. The pop-up you see should have been shown on the home page when you previously selected your tickets, which is what happens locally for me.

Hopefully, the effort to document what I’m seeing helps you to understand the challenges I’m facing. Also, since this test site is active, I recommend that instead of going to the Fudge demo that you’d go to pcts.greatergrace.org where you can duplicate the issue.

I’m sorry for the confusion, can I ask why you think I’m using the fudge demo site?

I’m using a local site with Fudge installed to test how EE behaves with that theme. We don’t test on any theme’s demo sites as we do not control that environment so we have no idea whats installed, obviously locally we do.

I have ran multiple tests on both your test site and my local site, then compared what happens on both. The local site is running fine so what I’m trying to do is narrow down the differences between the 2, starting with theme version.

Currently the Multi Event Registration javascript is not being loaded on the home page where the ticket selector is loading (http://take.ms/K8gi3) this is used to listen for the ticket submission and display the popup. So as its not loading that JS, EE is taking over the ticket submission and displaying the single event page, looking on that page the MER .js file is loading – http://take.ms/ps6YZ

So we need to find out why that file is not being enqueued on your site, are you adding the ticket selector shortcodes to a ‘Fudge Registration’ widget within a sidebar? Like this – http://take.ms/Jy3VW

Are you running any custom functions to modify EE at all?

If you temporarily de-activate any non-EE plugins, refresh the home page and re-test does the same happen?

I’d like that, for sure 🙂

So to be clear, I’m referring to a link to the thank-you page, after the user has selected a payment method and finalized the registration (if using an online payment method also paid for the registration)

This page – http://take.ms/nwG9J

Is that where you would like a button? If so, where on that page exactly as the location will depend on which hook to use.


ggtinfo

January 18, 2016 at 4:40 pm

I’m sorry for the confusion, can I ask why you think I’m using the fudge demo site?

I made an inaccurate assumption (which unfortunately, is dangerous at best). My apology. Also, even though I understand that the team has a workload, it took more time than expected to get a response. Unless you tell me the cause of the delay, there’s nothing I can tell my client that moves us closer to resolution – not fun. Again, my apologies.

I have ran multiple tests on both your test site and my local site, then compared what happens on both. The local site is running fine so what I’m trying to do is narrow down the differences between the 2, starting with theme version.

Thank you very much.

So we need to find out why that file is not being enqueued on your site, are you adding the ticket selector shortcodes to a ‘Fudge Registration’ widget within a sidebar?

Yes.

Are you running any custom functions to modify EE at all?

No.

If you temporarily de-activate any non-EE plugins, refresh the home page and re-test does the same happen?

Yes.

So to be clear, I’m referring to a link to the thank-you page, after the user has selected a payment method and finalized the registration (if using an online payment method also paid for the registration)

I’m not so sure about that just yet – I’m focused on solving the challenge at hand. Right now, this challenge is a show-stopper for launch. I’ll revisit this other matter afterward.

Lastly, I can provide whatever access you need (FTP, back-end, etc.) so you can look under the hood if that will get us closer to resolution. Please advise.

Thanks for your help 🙂


Tony

  • Support Staff

January 19, 2016 at 2:14 am

Also, even though I understand that the team has a workload, it took more time than expected to get a response. Unless you tell me the cause of the delay, there’s nothing I can tell my client that moves us closer to resolution – not fun.

I’m sorry for the delay getting back to you, we try to answer threads date sorted by last reply date which means ‘bumping’ a thread will often have the opposite effect intended.

If you temporarily de-activate any non-EE plugins, refresh the home page and re-test does the same happen?
Yes.

So its likely an issue with the theme, or how it is currently setup (although it sounds like a standard setup)

If you can send temporary login details using this form:

https://eventespresso.com/send-login-details/

I’ll take a look and see if anything stands out.

(Note both WP admin login and FTP details will be useful here)


ggtinfo

January 19, 2016 at 4:02 am

I’m sorry for the delay getting back to you, we try to answer threads date sorted by last reply date which means ‘bumping’ a thread will often have the opposite effect intended.

Believe me, I get it.

So its likely an issue with the theme, or how it is currently setup (although it sounds like a standard setup)

The client demanded heavy customization of the Fudge theme despite my repeated warnings.

If you can send temporary login details, I’ll take a look and see if anything stands out.

Form sent with all requested info and credentials. I appreciate your help 🙂


Tony

  • Support Staff

January 19, 2016 at 4:58 pm

Hi there,

I spent a lot of time today trying to figure out why this was happening on your site, but I just can’t see why its happening.

I tested Fudge theme with the same setup as yours (as far as I can tell at least), works fine locally, I downloaded a copy of your fudge theme and activated that, again it works fine.

Right now I’m guessing it’s some specific widget setup + theme option that triggers this on fudge theme but I can not find whatever is causing it.

So whats happening is Event Espresso checks if that page is considered an ‘espresso page’, meaning any of the EE shortcodes, widget etc are activated on the out of the page and it does this through a function is_espresso_page()

That function returns true or false depending on if finds any EE shortcodes, functions etc. Multi Event Registration uses that function to decieded if the MER scripts should be loaded on the page. Using the ESPRESSO_TICKET_SELECTOR on a single page (you can view the page within Dashboard -> Pages) all works fine.

But right now for some reason your homepage returns false, so MER doesn’t load the scripts, I created a very simple Site Specific Plugin that just sets the front page to always be an espresso page.

I’ve installed it on your site and can confirm the MER scripts now load and the ticket selector works as it should. However as the theme is modified and the default themes are working fine locally (and for some reason your theme) I can’t guarantee this will work 100% of the time (it should but its not something we can provide support for)

Can you confirm if this resolves your issue?


ggtinfo

January 19, 2016 at 9:09 pm

I spent a lot of time today trying to figure out why this was happening on your site, but I just can’t see why its happening.

I honestly and sincerely appreciate your efforts. What would it take to get to the bottom (root cause) of this issue?

I created a very simple Site Specific Plugin that just sets the front page to always be an espresso page.

I’ve installed it on your site and can confirm the MER scripts now load and the ticket selector works as it should. However as the theme is modified and the default themes are working fine locally (and for some reason your theme) I can’t guarantee this will work 100% of the time (it should but its not something we can provide support for)

It’s for this reason that I asked what it would take to solve this issue. I am grateful for the effort put forth to develop a Site Specific Plugin. At the same time, the number of modifications to the theme appear to be the culprit. Since I’ll probably be the one to have to support this site, I think it’s wise to figure this one out – sooner rather than later. Please advise.

Can you confirm if this resolves your issue?

I’m unable to confirm until after some testing is done. Also, instead of ‘Return to Events List’, can the page be redirected to the Register section on the homepage? That, I think would be a more palatable solution for now.

Your thoughts?


Tony

  • Support Staff

January 20, 2016 at 4:25 am

It depends on what has been modified. Have you modified the fudge widgets?

If you switch to an unmodified version of the theme and re-test does the same happen? (Don’t forget you’ll need to disable to site specific plugin to check)

We can’t provide support for the theme or customisations so if it is due to custom code you’ll need to go through and find which of your customisations causes it. Load the unmodified theme first, if that works, slow reapply your changes to the theme and re-test between each change to find which change causes it.

Also, instead of ‘Return to Events List’, can the page be redirected to the Register section on the homepage? That, I think would be a more palatable solution for now.

You can use the function shown here:

https://gist.github.com/joshfeck/e51ac13a3d9fd345ad40

Just change ‘http://yoursite.com/calendar’ to the URL you would like to return to.


ggtinfo

January 20, 2016 at 9:28 am

It depends on what has been modified. Have you modified the fudge widgets?

No. What would it take to get to the bottom (root cause) of this issue?

If you switch to an unmodified version of the theme and re-test does the same happen? (Don’t forget you’ll need to disable to site specific plugin to check)

I don’t know how to switch to an unmodified version. I’m figuring that if I try to install another version of Fudge, it’ll simply overwrite the existing changes and I’m back to square one – can’t do that. Please advise.

You can use the function

I took a look at the code, yet unclear as to what file to add the function to *or* which folder the script should be added. Please advise.


Tony

  • Support Staff

January 20, 2016 at 11:11 am

One thing you can try, is remove the Fudge Registration widget from the homepage sidebar and load the front page.

Then de-activate the Site Specific plugin I provided previously and re-add the Registration widget back into the sidebar, then re-test the home page.

That may for EE to recheck the espresso page and update accordingly.

I don’t know how to switch to an unmodified version. I’m figuring that if I try to install another version of Fudge, it’ll simply overwrite the existing changes and I’m back to square one – can’t do that. Please advise.

The easiest way would be to rename the theme directory to something else first like /fudge-temp/ then manually install the original fudge theme, if you do not load the admin in between renaming and uploading the original version the site will automatically load the theme within the /fudge/ directory, which at that point would be the original. However, try the above before attemping this.

I took a look at the code, yet unclear as to what file to add the function to *or* which folder the script should be added. Please advise.

You can place that code within the themes functions.php file, or within a Site Specific Plugin which you could use to store all custom functions related to this site.

When modifying theme template files, it is much better to create a child theme that way you can copy the template to the child theme and do your customisations within that file (it will override the parent file). As it stands now if you update fudge theme and modifications you have made will be lost.

The support post ‘View Event Cart Doesn't Respond on 1st Click’ 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