Actually i want to filter the checkout cart collection using custom attributes values
Actually i want to filter the checkout cart collection using custom attributes values using this link
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$quoteId = $objectManager-> create(‘Magento\Checkout\Model\Session’)->getQuoteId();
$cartData = $objectManager->create(‘Magento\Quote\Model\QuoteRepository’)->get($quoteId)->getAllVisibleItems();
$currentItemCount = count($cartData); //Current cart quote count echo $currentItemCount;