Magento 2 – How to get Current Cart Items? Posted on August 22, 2020 | by SaphalUse the session to get the current cart quote items PHP public function __construct( ... Magento\Checkout\Model\Session $session ... ) { ... $this->_session = $session; ... } PHPpublic function yourFunctionName(){ $items = $this->_session->getQuote()->getAllVisibleItems(); }NOTE : Magento\Checkout\Model\Cart is deprecated.