magento Orders Get order by Increment ID

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Example

$incrementid = 100000000;
$order = Mage::getModel('sales/order')->loadByIncrementId($incrementid);

The above code is roughly analogous to the following SQL query.

select * from sales_flat_order where increment_id=100000000;

The increment_id is the customer facing order identifier, whereas the entity_id is the database level identifier for the order.



Got any magento Question?