Support

Home Forums Multiple Event Registration Add-on Get Grand Total Price Amount of Event Cart

Get Grand Total Price Amount of Event Cart

Posted: March 6, 2018 at 6:57 am


George

March 6, 2018 at 6:57 am

Hello,

I have a menu cart icon, and I just want to echo out the current grand total cart amount in the cart. Is there a function similar to EE_Registry::instance()->CART->all_ticket_quantity_count() i can use?

Please can you help with this?

Thanks!


Tony

  • Support Staff

March 6, 2018 at 7:10 am

Hi there,

get_cart_grand_total() should do what you are requesting, so:

EE_Registry::instance()->CART->get_cart_grand_total();


George

March 6, 2018 at 7:12 am

Thanks Tony,

Also, how do i get the registration URL? any function like so?


Tony

  • Support Staff

March 6, 2018 at 7:19 am

Which registration url?

The link to the registration page?

EE_Registry::instance()->CFG->core->reg_page_url();


George

March 6, 2018 at 7:20 am

Yes, this one. thanks


Tony

  • Support Staff

March 6, 2018 at 7:21 am

You’re most welcome.


George

March 6, 2018 at 7:48 am

Hi Tony,

Sorry, i need cart url not registration url.

Thanks


Tony

  • Support Staff

March 6, 2018 at 7:52 am

Then you need something like this:

$cart_url = add_query_arg( array( 'event_cart' => 'view' ), EE_Registry::instance()->CFG->core->reg_page_url() );


George

March 6, 2018 at 7:53 am

Thanks alot!

The support post ‘Get Grand Total Price Amount of 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