Sure, the quote_id is saved with the order, so you can just: $order->getQuoteId(). And the method should work too, maybe you couldn't load the order... To get ...
In Magento,on creation on cart a quote object is created and for each item you add there is a quote_item object. You can get the current quote ...
Use event sales_order_place_before to get quote id before save order. And your observer code would be like this: public function ...
supposing order id is 1 $order = Mage::getModel('sales/order')->load(1); $ quoteId = $order->getQuoteId();. if you need to retrieve quote object, ...
Magento get quote from order : You can get quote id from the order
This short article shows how to get quote by id in Magento 2. The example code shows factory and repository method with explanations.
Hi Everybody I am using Magento 1.9.x and I would like to create order via quote and I can do that like this: private function createOrder() {
Magento 2 get Shipment id from Order Id; 5. ID2SSCCOMMBOARDV4P1C ID2 - ID2SSCCOMMBOARDV4P1C - - Orders placed until 12:00 are dispatched the ...
In Magento 2, you can get the current quote ID from a checkout session by using the code inside. Click to see the code example.
Thanks for the answer, so in magento 2 an order with (state, status)