1

I am trying to fetch all the items of a Quote.

First i am load the quote using \Magento\Quote\Api\CartRepositoryInterface

with get() method i am getting Magento\Quote\Api\Data\CartInterface

using getItems() method of CartInterface i am getting null even when items are in a quote.

If i change the quote status to Active inside quote table then it is showing.

How i can fetch quote item even if it is inactive?

1

Try this it should work

$cart->getQuote()->getItemsCollection();

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.