Support

Home Forums Event Espresso Premium Continuing issue with Errant Programming Code Appearing In Event Cart

Continuing issue with Errant Programming Code Appearing In Event Cart

Posted: August 16, 2019 at 3:02 pm

Viewing 16 reply threads


Nathan Almquist

August 16, 2019 at 3:02 pm

Hello. We’ve deployed some new features on our site involving Multiple Event Registration Add-On. The MER add-on is working fine but in the users cart in the sidebar as they add events a large amount of errant code is displaying. Can you please take a deeper look and see if you can determine the root cause and remove?


Josh

  • Support Staff

August 16, 2019 at 3:10 pm

Hi,

We received your priority support token. While we generally do not do code reviews on code not developed by Event Espresso staff, we can take a look at it and give you some suggestions (within the allowed time).

First, where is the code for these new features?

Also, can you outline the steps to replicate the error? The reason I ask is because I’m not seeing any large amounts of errant code displaying in the sidebar cart widget.


Nathan Almquist

August 16, 2019 at 4:11 pm

This reply has been marked as private.


Nathan Almquist

August 16, 2019 at 4:17 pm

This reply has been marked as private.


Josh

  • Support Staff

August 16, 2019 at 4:48 pm

Hi Nathan,

Screenshots can be uploaded to your site’s media gallery, then you post a link here. Or you can use a service like https://snag.gy/

I’ll take a guess though. Is the “followed by 30 or so lines of code” you’re describing actually the name of the ticket that they’ve added to the cart? The Multi Event Registration add-on does list the name of each ticket added to the cart, that could be removed with some CSS if that’s what you’re going for.


Nathan Almquist

August 16, 2019 at 4:55 pm

This reply has been marked as private.


Nathan Almquist

August 16, 2019 at 4:56 pm

This reply has been marked as private.


Nathan Almquist

August 16, 2019 at 4:56 pm

This reply has been marked as private.


Nathan Almquist

August 16, 2019 at 4:58 pm

This reply has been marked as private.


Josh

  • Support Staff

August 16, 2019 at 5:43 pm

Ok I see now, the code is the content from the events in the cart. I’m not sure how that’s getting injected into the subtotal line, and since the FTP connection times out, I’m not going to be able to add any debug code in order to investigate further.

What I’ve done for now is add some CSS to hide the cart’s subtotal lines, which hides all the event description’s shortcodes getting spit out into the cart widget.


Nathan Almquist

August 16, 2019 at 7:21 pm

This reply has been marked as private.


Nathan Almquist

August 16, 2019 at 10:32 pm

This reply has been marked as private.


Josh

  • Support Staff

August 19, 2019 at 10:31 am

Hi Nathan,

It says Authentication failed when I try to FTP in with the credentials you sent. Please advise.


Nathan Almquist

August 19, 2019 at 10:48 am

This reply has been marked as private.


Josh

  • Support Staff

August 19, 2019 at 1:30 pm

No impact whatsoever. The temporary fix would not cause those elements to disappear. The following CSS was added to hide the extra content being added to the mini cart widget list:

.mini-cart-ul .total-list strong {
    display: none;
}

It’s simply hiding the totals from displaying within the mini cart list.


Josh

  • Support Staff

August 19, 2019 at 3:45 pm

Hi again,

The above CSS has been removed as it’s no longer needed. The latest version of the Multi Event Registration add-on (2.0.17) removes any possibility of the event content getting appended to the mini cart widget’s list. Your site has been updated to have the latest version of Multi Event Registration add-on.


Nathan Almquist

August 19, 2019 at 7:22 pm

Thank you Josh. Appreciate the Support Teams quick attention and resolution to the issue.

Viewing 16 reply threads

The support post ‘Continuing issue with Errant Programming Code Appearing In Event Cart’ 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