Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Get SQL Resource & Read Connection
- $resource = Mage::getSingleton('core/resource');
- $readConnection = $resource->getConnection('core_read');
- $sales_order_table = $resource->getTableName('sales/order');
- // Within Foreach Loop
- // Get Order Id from Increment Id (e.g. 100001234)
- $order_id = $readConnection
- ->fetchOne("SELECT `entity_id` FROM `". $sales_order_table ."` WHERE `increment_id` = '100001234'");
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement