Month: January 2011
-
Magento: How to get increment id of an Order by order id in magento
In most cases, an user (A developer) need to write own code to generate an order, generate invoice for an order or generate shipment for an order then he need both order id and its increment id. You can get this increment value by following code: $order = Mage::getModel(‘sales/order’); $order->load(Mage::getSingleton(‘sales/order’)->getLastOrderId()); $orderIncrementId = $order->getIncrementId(); Tweet This…
-
Magento: Fatal error: Call to undefined method Mage_Adminhtml_Block_Abstract::getexceptions()
When I tried to export or import any profile, then I got a fatal error: Fatal error: Call to undefined method Mage_Adminhtml_Block_Abstract::getexceptions() in …….\app\code\core\Mage\Adminhtml\Block\System\Convert\Profile\Run.php on line 167 To remove this problem follow below process: 1. Go to file which showing in fatal error. 2. Comment line 167 and 168, then it will show like: //…
-
Ajax: Upload a file through ajax ( without page refresh)
In most cases we need to upload something on server without refreshing the page. for example we want to upload an image from popup window. But it will refresh the page and we will lost our popup and its content… so for this type of problems we providing an attractive code for upload a files…