Add Shopping Cart items (Amazon style) to my main navigation menu


I would like to add a shopping cart icon with items and value to my main menu header

I've downloaded "MP Anywhere Cart" and created a widget from

But I can't figure out how to add it to the Main Menu. I've found this support page

Added the code suggest by Ashok into my Avada child functions.php but it's not working.

I've got the widget working and showing what I want but i dont know what else to do. I've also downloaded the floating cart plugin and activated it

Any help much appreciated. Just to clarify I'm using the Avada theme. I guess the code may need a tweak?