Support

Home Forums Event Espresso Premium Not found Cart URL in EE Multiple Registration

Not found Cart URL in EE Multiple Registration

Posted: September 4, 2018 at 5:06 am

Viewing 3 reply threads


bizcat

September 4, 2018 at 5:06 am

Hi Support,

I want cart url so I can give option in header menu.

If any user added one event into cart and move back to event and after that he thought that he don’t want to purchase other event just want to checkout added event then where he get cart or checkout url?

Thanks,


Tony

  • Support Staff

September 4, 2018 at 5:27 am

Hi there,

You have a few options for this, we have an Event Cart Widget built in the MER add-on which can be placed in any widget area on the page and will display a mini cart rather than just a link.

If you want a link specifically for the nav menu you can create a custom link that points to: /registration-checkout/?event_cart=view#checkout


bizcat

September 4, 2018 at 5:43 am

Thank you so much for quick response.

I will use /registration-checkout/?event_cart=view#checkout url but how I can check cart is empty or not? display purpose.

I want to show this menu if and only if value is in cart.
like: is_null()

Thanks


Tony

  • Support Staff

September 5, 2018 at 5:42 am

You can use something like this:

$cart = EE_Registry::instance()->SSN->cart();
if( $cart instanceof EE_Cart ) {
	$tickets = $cart->get_tickets();
	if(!empty($tickets)) {
		echo 'Cart has tickets';
	}
}
Viewing 3 reply threads

The support post ‘Not found Cart URL in EE Multiple Registration’ 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