Support

Home Forums Event Espresso Premium Registration cart link automatically Adding a "/" in link and cannot force other

Registration cart link automatically Adding a "/" in link and cannot force other

Posted: March 15, 2017 at 10:22 pm

Viewing 3 reply threads


website@secpta.net

March 15, 2017 at 10:22 pm

https://eventespresso.com/topic/view-cart-link-in-menu/

Per the above thread, I modeled exactly what was suggested. I added a menu button to my website with the link ‘/registration-checkout/?event_cart=view#__checkout/’. While that link appears to stick with the menu button, when I click on the link in the live website, it changes the link to ‘/registration-checkout/?event_cart=view/#__checkout/’ (as in it puts a “/” after view.

Any idea why this might be happening, and how I can prevent it?

Thank you!


Tony

  • Support Staff

March 16, 2017 at 5:24 am

Hi there,

If you take a look at this reply:

https://eventespresso.com/topic/view-cart-link-in-menu/#post-232920

The link you need to use is actually:

/registration-checkout/?event_cart=view#checkout

Remove the double underscore (__) and the trailing slash from the link

Are you using relative links and adding them as custom links to the menu?


website@secpta.net

March 20, 2017 at 7:16 pm

Hi Tony,

Thank you for the reply. I changed my menu link to what you provided above, and the same thing happened – it added the “/” between the “view” and the “#”.

I believe I am using the relative link as a custom link. I take it that this won’t work? Is there a way around this? I would love to have a menu link to “my shopping cart”.

Thanks!


Tony

  • Support Staff

March 21, 2017 at 4:49 am

It should work fine but it sounds like something is filtering the links added to the menu.

So to conform, when you save it within the menu it shows the correct URL, but on the front end is has the added forward slash?

Try using an absolute URL in the menu:

http://domain.com/registration-checkout/?event_cart=view#checkout

Although I doubt it will work if the above didn’t.

You using the latest version of Event Espresso?

It could be either your theme or another plugin filtering the links:

1) A theme conflict. You can rule this out by temporarily switching to the default WordPress theme, then testing saving/using the link again. The theme test drive plugin allows for testing another theme without actually changing your site’s theme.

2) A plugin conflict. You can rule this out by temporarily deactivating any other installed WordPress plugins and save/testing the link again. Then you reactivate them one by one, testing saving the link error condition between each reactivation until it happens again to find the plugin that causes it.

Personally I would start with the theme.

Viewing 3 reply threads

The support post ‘Registration cart link automatically Adding a "/" in link and cannot force other’ 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