I am trying to get quote data By
reserved_order_id
I tried this code
protected $_quoteFactory;
public function __construct(
\Magento\Quote\Model\ResourceModel\Quote\CollectionFactory $quoteFactory
) {
$this->_quoteFactory = $quoteFactory;
}
public function execute(Observer $observer)
{
$quote = $this->_quoteFactory->create()->addFieldToFilter('reserved_order_id', $orderId);
$quote = $this->_quoteFactory->create()->addFieldToFilter('entity_id', 12);
$quote = $this->_quoteFactory->create()->addFieldToFilter('base_subtotal_with_discount', 20.0000);
}
the first filter is returning null while entity_id
and base_subtotal_with_discount
is returning me the correct result
I tried all of them separately