This question already has an answer here:

How to get quote Id from quote table via Customer Id or email.

I have Customer id & email & i want to check if quote id exist or not how to do that via create new module or programming

What i want : I want to pass customer id & excepting quote data

Any Help much be Appreciated

marked as duplicate by Arunendra, 7ochem, Murtuza Zabuawala, Khoa TruongDinh, brentwpeterson Feb 3 '17 at 15:48

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • what do you want exactly ? – BornCoder Feb 3 '17 at 7:19
  • 2
    U want Current Quote id or all quote id which belong to particulate custome? – Bhavik Feb 3 '17 at 7:20
  • @bhavik : i updated my question please check – magento12345 Feb 3 '17 at 7:32
  • @BornCoder i updated my question please check – magento12345 Feb 3 '17 at 7:32

You can fetch quote data from quote table by customer id:

 public function __construct(
        \Magento\Framework\View\Element\Template\Context $context,
       \Magento\Quote\Model\Quote $item, 
        array $data = []
    ) {
        parent::__construct($context, $data);

After than you can get quote data using:


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