I am using Magento community ver-1.5.1.0.
I want to get the shipping date of a order, How it is possible in magento?
The Magento 2 store admin can check the order status in the order view by navigating to Stores > Settings > Order Status grid.
Orders in Magento doesn't have a shipping date. They have shipments, and each one of them have a creation date.
You can access an order shipments using
$order->getShipmentsCollection();
Then on a shipment you can call getCreatedAt() to retreive creation date.
Thus, the full code will be
/** @var $order Mage_Sales_Model_Order */
foreach($order->getShipmentsCollection() as $shipment){
/** @var $shipment Mage_Sales_Model_Order_Shipment */
echo $shipment->getCreatedAt();
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With