cart total

How to get cart items total in magento 2

i was working on a ecommerce project based on magento 2.In this project i had a requirement where i need cart count in my header.phtml file.So i simply write below code

but after using this i got a php… Continue Reading