Timeline for Getting parameters in sales_order_place_before event's observer
Current License: CC BY-SA 3.0
17 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 24, 2015 at 9:03 | comment | added | Qaisar Satti | then you have to add in shipping['delivery_day'] array. or override the controller. | |
Nov 24, 2015 at 8:54 | comment | added | vedu | It return an array: Array ( [payment] => Array ( [method] => cashondelivery ) [is_subscribed] => 1 [customer_comment] => ) | |
Nov 24, 2015 at 8:02 | comment | added | Qaisar Satti | Mage::app()->getRequest()->getParams('delivery_day'); use this.. | |
Nov 24, 2015 at 7:52 | comment | added | vedu | Actually problem is.. now I can not change that select field name, Bacause I have used that name in many places.. and problem is that checkout_controller_onepage_save_shipping_method this event is firing every time when shipping method is changed. | |
Nov 24, 2015 at 7:46 | comment | added | Qaisar Satti | sales_order_place_before use this event and use my answer and also field set in billing array you will get the result. | |
Nov 24, 2015 at 7:42 | comment | added | vedu | Thank you for that link. But, there is no other event where I can get $request and $quote. | |
Nov 24, 2015 at 7:21 | comment | added | Qaisar Satti | check the event what they return to observer wiki.magento.com/display/m1wiki/Magento+1.x+Events+Reference | |
Nov 24, 2015 at 7:15 | comment | added | vedu | My simple requirement is , I want one event which will get fired when we click on Pace An Order button i.e before saving/placing an order and I can use $request = $observer->getRequest(); $quote = $observer->getQuote(); in that event's observer method. | |
Nov 24, 2015 at 7:14 | comment | added | Qaisar Satti | no it is using after the order place use ``sales_order_place_before` as you mention in question | |
Nov 24, 2015 at 7:10 | comment | added | vedu | I want to check conditions before order getting placed. Can I use this event checkout_type_onepage_save_order_after? | |
Nov 24, 2015 at 7:03 | comment | added | Qaisar Satti |
use this event checkout_type_onepage_save_order_after use in billing array <select name="billing[delivery_day]" id='emq_del_day'> <option value="">--Select Day--</option> <option value="Today">Today</option> <option value="Tomorrow">Tomorrow</option> </select> and get it $billing['delivery_day'];
|
|
Nov 24, 2015 at 6:58 | comment | added | vedu | I was using checkout_controller_onepage_save_shipping_method this event and, I was able to get request object by $request = $observer->getRequest(); and then i was accessing parameter by $request->getParam('delivery_day'). | |
Nov 24, 2015 at 6:56 | comment | added | vedu | <select name="delivery_day" id='emq_del_day'> <option value="">--Select Day--</option> <option value="Today">Today</option> <option value="Tomorrow">Tomorrow</option> </select> | |
Nov 24, 2015 at 6:56 | history | edited | Qaisar Satti | CC BY-SA 3.0 |
added 6 characters in body
|
Nov 24, 2015 at 6:55 | comment | added | Qaisar Satti | can you post the input field so i can check that? | |
Nov 24, 2015 at 6:53 | comment | added | vedu | Thank you for your answer. My field name is delivery_day and I am printing Mage::log(Mage::app()->getRequest()->getPost('delivery_day')); but, it is not printing anything. | |
Nov 24, 2015 at 6:50 | history | answered | Qaisar Satti | CC BY-SA 3.0 |