I need to retrieve an order from Magento by its id
.
How do I load a specific order by id
?
-
its works fine for static order...but i want to get dynamically..i mean when we enter order id in search box total order details will be displayed..how to get this
1 answer
Hi Vamsi Krishna,
you can use this code : Mage::getModel(
"sales/order"
)->load(
$orderId
);
or Mage::getModel(
'sales/order'
)->loadByIncrementId(
$orderIncrementId
);
I wonder whether you did purchase this theme on our site ubertheme.com or via Themeforest?
Best regards,
Kan