last day (14 days later) » 

07:33
0
A: How to Set Order Status to “Processing to Pending” after payment success in magento?

BornCoderHave a go with the sales_order_place_after event, this is fired after the call to $this->_placePayment(); in Mage_Sales_Model_Order::place() so it should be after any other status changes have happened. $_order = new Mage_Sales_Model_Order(); $orderId = Mage::getSingleton('checkout/session')->g...

in which folder put this code?
i hope you know how to use event and observer. You can put this code in your observer file and this will update status of your order after place order.
app\code\core\Mage\Sales\Model\Observer.php ?in which line?
don't edit core. create a custom module and write event and observer in custom module. Editing core is not good practise.
okay but which line paste this code?
actually i can't understood how to use this code for update processing to pending payment order?
07:33
Do you know how to write event observer in custom module ?
no i don't know can you pls help me? how to update processing to pending?
Otherwise Magento have admin setting also in sales -> payment method , in that also you can set order status after place order.
then learn event observer first then only i can help you webkul.com/blog/observers-in-magento2
But not working after payment success showing status processing but i want pending
yes
first u write an observer , so after placing order you can update state to pending again
07:47
okay i create Observer.php app\code\local\Order\Update\Model
app\code\local\Order\Update\etc\config.xml
<?xml version="1.0"?>
<config>
<modules>
<Order_Update>
<version>0.0.1</version>
</Order_Update>
</modules>
<global>
<models>
<Order_Update>
<class>Order_Update_Model</class>
</Order_Update>
</models>
</global>
</config>
app\etc\modules\Order_Update.xml
app\code\local\Order\Update\Model\Observer.php
<?php
class Order_Update_Model_Observer {

}
then?
 
1 hour later…
08:57
inside observer get order Id

last day (14 days later) »