Magento 2 – How to get Current Cart Items? / Learn Magento 2 Adobe Commerce / By Saphal Use 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.