Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
PHP
magento 2 get number of cart items
Aakash Nikam
Programming language:
PHP
2021-06-03 22:39:07
0
Q:
magento 2 get number of cart items
A Brooks
Code:
PHP
2021-07-11 18:39:13
$helper = $this->helper(\Magento\Checkout\Helper\Cart::class); echo $helper->getSummaryCount()
0
Tags
number
get
Related
magento 1.9 get all product
magento2 graphql cart
magento2 get product collection
get count mini cart item total
magento 2 get all categories in array
Cart::total return number format value laravel
New to Communities?
Join the community