Skip to main content
edited title
Link
Hitesh Balpande
  • 1.9k
  • 2
  • 27
  • 72

How is it possible to filter checkout cart collection magento 2?

deleted 29 characters in body
Source Link
Siarhey Uchukhlebau
  • 16.2k
  • 11
  • 55
  • 88

Actually i want to filter the checkout cart collection using custom attributes values

Using this link

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;

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;

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;

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;

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;

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;
Source Link
Hitesh Balpande
  • 1.9k
  • 2
  • 27
  • 72
Loading