Getting parameters in sales_order_place_before event's observer The Next CEO of Stack OverflowGetting Product Price Null At Observerobserver method sales_order_place_after not executingMagento Observer object not containing anythingChange order status in observersales_order_place_before Observer Event not working in Magento 2Magento2: How to get shipping method in order using observer `sales_order_save_after`?Magento Event HandlingMagento order-data showing null in sales_order_place_before observermagento 2 exit without placing order sales_order_place_before event observerGet total in observer sales_order_place_before

Example of a Mathematician/Physicist whose Other Publications during their PhD eclipsed their PhD Thesis

Text adventure game code

If the heap is initialized for security, then why is the stack uninitialized?

What happens if you roll doubles 3 times then land on "Go to jail?"

Robert Sheckley short story about vacation spots being overwhelmed

WOW air has ceased operation, can I get my tickets refunded?

Need some help with wall behind rangetop

Failed to fetch jessie backports repository

Visit to the USA with ESTA approved before trip to Iran

If you would stand a few of light-years away of a galaxy would you be able to see it full?

Science fiction short story involving a paper written by a schizophrenic

What is the purpose of the Evocation wizard's Potent Cantrip feature?

What is the point of a new vote on May's deal when the indicative votes suggest she will not win?

Implement the Thanos sorting algorithm

Term for the "extreme-extension" version of a straw man fallacy?

How do I construct this japanese bowl?

Does the Brexit deal have to be agreed by both Houses?

How to Reset Passwords on Multiple Websites Easily?

Need a quick math help please!

How to start emacs in "nothing" mode (`fundamental-mode`)

Is there any reason not to eat food that's been dropped on the surface of the moon?

Is a stroke of luck acceptable after a series of unfavorable events?

Was a professor correct to chastise me for writing "Prof. X" rather than "Professor X"?

How can I quit an app using Terminal?



Getting parameters in sales_order_place_before event's observer



The Next CEO of Stack OverflowGetting Product Price Null At Observerobserver method sales_order_place_after not executingMagento Observer object not containing anythingChange order status in observersales_order_place_before Observer Event not working in Magento 2Magento2: How to get shipping method in order using observer `sales_order_save_after`?Magento Event HandlingMagento order-data showing null in sales_order_place_before observermagento 2 exit without placing order sales_order_place_before event observerGet total in observer sales_order_place_before










4















I am using $request = $observer->getRequest();in my observer method but it is not returning anything. i am using sales_order_place_beforeevent.










share|improve this question






















  • $request = $observer->getEvent()->getRequest(); $params = $request->getParams();

    – Bill
    Nov 24 '15 at 7:43
















4















I am using $request = $observer->getRequest();in my observer method but it is not returning anything. i am using sales_order_place_beforeevent.










share|improve this question






















  • $request = $observer->getEvent()->getRequest(); $params = $request->getParams();

    – Bill
    Nov 24 '15 at 7:43














4












4








4


1






I am using $request = $observer->getRequest();in my observer method but it is not returning anything. i am using sales_order_place_beforeevent.










share|improve this question














I am using $request = $observer->getRequest();in my observer method but it is not returning anything. i am using sales_order_place_beforeevent.







magento-1.9 event-observer






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 24 '15 at 6:03









veduvedu

39711033




39711033












  • $request = $observer->getEvent()->getRequest(); $params = $request->getParams();

    – Bill
    Nov 24 '15 at 7:43


















  • $request = $observer->getEvent()->getRequest(); $params = $request->getParams();

    – Bill
    Nov 24 '15 at 7:43

















$request = $observer->getEvent()->getRequest(); $params = $request->getParams();

– Bill
Nov 24 '15 at 7:43






$request = $observer->getEvent()->getRequest(); $params = $request->getParams();

– Bill
Nov 24 '15 at 7:43











6 Answers
6






active

oldest

votes


















5














To get Request parameters in the Observer, use following code



Mage::app()->getRequest()->getParams();


To get post variable



Mage::app()->getRequest()->getPost('your-param');





share|improve this answer























  • Thank you for your answer. In starting, 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('parameter_name'). Can you tell me how to access this parameter by using sales_order_place_before event.

    – vedu
    Nov 24 '15 at 6:39


















1














you can get shipping and billing array with below code



$shipping=Mage::app()->getRequest()->getPost('shipping');
$billing=Mage::app()->getRequest()->getPost('billing');
$yourfieldname=Mage::app()->getRequest()->getPost('yourfieldname');





share|improve this answer

























  • 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.

    – vedu
    Nov 24 '15 at 6:53











  • can you post the input field so i can check that?

    – Qaisar Satti
    Nov 24 '15 at 6:55











  • <select name="delivery_day" id='emq_del_day'> <option value="">--Select Day--</option> <option value="Today">Today</option> <option value="Tomorrow">Tomorrow</option> </select>

    – vedu
    Nov 24 '15 at 6:56











  • 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').

    – vedu
    Nov 24 '15 at 6:58











  • 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'];

    – Qaisar Satti
    Nov 24 '15 at 7:03



















1














Use the following code to resolve your query:



public function yourFunction(Varien_Event_Observer $observer)

$order = $observer->getEvent();
echo $order->getOrder()->getPayment()->getMethod(); // get selected paymante method

$quote = Mage::getSingleton('checkout/session')->getQuote();
echo $quote->getBillingAddress()->getTelephone(); // get billing address phone number







share|improve this answer






























    0














    You may also try with below code to read all the parameters



     $orders = $observer->getData();
    echo '<pre>'; print_r($orders); echo '</pre>';





    share|improve this answer























    • Thank you for your answer. In starting, 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('parameter_name'). Can you tell me how to access this parameter by using sales_order_place_before event.

      – vedu
      Nov 24 '15 at 6:39











    • You may use $data = Mage::app()->getRequest()->getParams(); to get the data

      – Vick
      Nov 24 '15 at 6:47


















    0














    As you can see from Mage_Sales_Model_Order::place(), the only available data for this event is order. To access the request object inside your event observer, you can do something like:



    $request = Mage::app()->getRequest();





    share|improve this answer

























    • Thank you for your answer. In starting, 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('parameter_name'). Can you tell me how to access this parameter by using sales_order_place_before event.

      – vedu
      Nov 24 '15 at 6:39











    • See my answer above: you don't have access to the request from the observer data, but you can still get the request object by calling $request = Mage::app()->getRequest(); in your event observer.

      – fmrng
      Nov 24 '15 at 6:42











    • That code is returing : Mage_Core_Controller_Request_Http Object array but there are different parameters present and parameters those I want are not present.

      – vedu
      Nov 24 '15 at 6:46



















    0














    public function yourFunction(Varien_Event_Observer $observer)

    $order = $observer->getEvent();
    echo $order->getOrder()->getPayment()->getMethod(); // get selected paymante method

    $quote = Mage::getSingleton('checkout/session')->getQuote();
    echo $quote->getBillingAddress()->getTelephone(); // get billing address phone number






    share|improve this answer

























      Your Answer








      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "479"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













      draft saved

      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f91326%2fgetting-parameters-in-sales-order-place-before-events-observer%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      6 Answers
      6






      active

      oldest

      votes








      6 Answers
      6






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      5














      To get Request parameters in the Observer, use following code



      Mage::app()->getRequest()->getParams();


      To get post variable



      Mage::app()->getRequest()->getPost('your-param');





      share|improve this answer























      • Thank you for your answer. In starting, 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('parameter_name'). Can you tell me how to access this parameter by using sales_order_place_before event.

        – vedu
        Nov 24 '15 at 6:39















      5














      To get Request parameters in the Observer, use following code



      Mage::app()->getRequest()->getParams();


      To get post variable



      Mage::app()->getRequest()->getPost('your-param');





      share|improve this answer























      • Thank you for your answer. In starting, 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('parameter_name'). Can you tell me how to access this parameter by using sales_order_place_before event.

        – vedu
        Nov 24 '15 at 6:39













      5












      5








      5







      To get Request parameters in the Observer, use following code



      Mage::app()->getRequest()->getParams();


      To get post variable



      Mage::app()->getRequest()->getPost('your-param');





      share|improve this answer













      To get Request parameters in the Observer, use following code



      Mage::app()->getRequest()->getParams();


      To get post variable



      Mage::app()->getRequest()->getPost('your-param');






      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Nov 24 '15 at 6:20









      MeenakshiSundaram RMeenakshiSundaram R

      8,14442752




      8,14442752












      • Thank you for your answer. In starting, 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('parameter_name'). Can you tell me how to access this parameter by using sales_order_place_before event.

        – vedu
        Nov 24 '15 at 6:39

















      • Thank you for your answer. In starting, 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('parameter_name'). Can you tell me how to access this parameter by using sales_order_place_before event.

        – vedu
        Nov 24 '15 at 6:39
















      Thank you for your answer. In starting, 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('parameter_name'). Can you tell me how to access this parameter by using sales_order_place_before event.

      – vedu
      Nov 24 '15 at 6:39





      Thank you for your answer. In starting, 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('parameter_name'). Can you tell me how to access this parameter by using sales_order_place_before event.

      – vedu
      Nov 24 '15 at 6:39













      1














      you can get shipping and billing array with below code



      $shipping=Mage::app()->getRequest()->getPost('shipping');
      $billing=Mage::app()->getRequest()->getPost('billing');
      $yourfieldname=Mage::app()->getRequest()->getPost('yourfieldname');





      share|improve this answer

























      • 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.

        – vedu
        Nov 24 '15 at 6:53











      • can you post the input field so i can check that?

        – Qaisar Satti
        Nov 24 '15 at 6:55











      • <select name="delivery_day" id='emq_del_day'> <option value="">--Select Day--</option> <option value="Today">Today</option> <option value="Tomorrow">Tomorrow</option> </select>

        – vedu
        Nov 24 '15 at 6:56











      • 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').

        – vedu
        Nov 24 '15 at 6:58











      • 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'];

        – Qaisar Satti
        Nov 24 '15 at 7:03
















      1














      you can get shipping and billing array with below code



      $shipping=Mage::app()->getRequest()->getPost('shipping');
      $billing=Mage::app()->getRequest()->getPost('billing');
      $yourfieldname=Mage::app()->getRequest()->getPost('yourfieldname');





      share|improve this answer

























      • 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.

        – vedu
        Nov 24 '15 at 6:53











      • can you post the input field so i can check that?

        – Qaisar Satti
        Nov 24 '15 at 6:55











      • <select name="delivery_day" id='emq_del_day'> <option value="">--Select Day--</option> <option value="Today">Today</option> <option value="Tomorrow">Tomorrow</option> </select>

        – vedu
        Nov 24 '15 at 6:56











      • 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').

        – vedu
        Nov 24 '15 at 6:58











      • 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'];

        – Qaisar Satti
        Nov 24 '15 at 7:03














      1












      1








      1







      you can get shipping and billing array with below code



      $shipping=Mage::app()->getRequest()->getPost('shipping');
      $billing=Mage::app()->getRequest()->getPost('billing');
      $yourfieldname=Mage::app()->getRequest()->getPost('yourfieldname');





      share|improve this answer















      you can get shipping and billing array with below code



      $shipping=Mage::app()->getRequest()->getPost('shipping');
      $billing=Mage::app()->getRequest()->getPost('billing');
      $yourfieldname=Mage::app()->getRequest()->getPost('yourfieldname');






      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Nov 24 '15 at 6:56

























      answered Nov 24 '15 at 6:50









      Qaisar SattiQaisar Satti

      27k1256109




      27k1256109












      • 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.

        – vedu
        Nov 24 '15 at 6:53











      • can you post the input field so i can check that?

        – Qaisar Satti
        Nov 24 '15 at 6:55











      • <select name="delivery_day" id='emq_del_day'> <option value="">--Select Day--</option> <option value="Today">Today</option> <option value="Tomorrow">Tomorrow</option> </select>

        – vedu
        Nov 24 '15 at 6:56











      • 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').

        – vedu
        Nov 24 '15 at 6:58











      • 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'];

        – Qaisar Satti
        Nov 24 '15 at 7:03


















      • 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.

        – vedu
        Nov 24 '15 at 6:53











      • can you post the input field so i can check that?

        – Qaisar Satti
        Nov 24 '15 at 6:55











      • <select name="delivery_day" id='emq_del_day'> <option value="">--Select Day--</option> <option value="Today">Today</option> <option value="Tomorrow">Tomorrow</option> </select>

        – vedu
        Nov 24 '15 at 6:56











      • 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').

        – vedu
        Nov 24 '15 at 6:58











      • 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'];

        – Qaisar Satti
        Nov 24 '15 at 7:03

















      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.

      – vedu
      Nov 24 '15 at 6:53





      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.

      – vedu
      Nov 24 '15 at 6:53













      can you post the input field so i can check that?

      – Qaisar Satti
      Nov 24 '15 at 6:55





      can you post the input field so i can check that?

      – Qaisar Satti
      Nov 24 '15 at 6:55













      <select name="delivery_day" id='emq_del_day'> <option value="">--Select Day--</option> <option value="Today">Today</option> <option value="Tomorrow">Tomorrow</option> </select>

      – vedu
      Nov 24 '15 at 6:56





      <select name="delivery_day" id='emq_del_day'> <option value="">--Select Day--</option> <option value="Today">Today</option> <option value="Tomorrow">Tomorrow</option> </select>

      – vedu
      Nov 24 '15 at 6:56













      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').

      – vedu
      Nov 24 '15 at 6:58





      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').

      – vedu
      Nov 24 '15 at 6:58













      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'];

      – Qaisar Satti
      Nov 24 '15 at 7:03






      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'];

      – Qaisar Satti
      Nov 24 '15 at 7:03












      1














      Use the following code to resolve your query:



      public function yourFunction(Varien_Event_Observer $observer)

      $order = $observer->getEvent();
      echo $order->getOrder()->getPayment()->getMethod(); // get selected paymante method

      $quote = Mage::getSingleton('checkout/session')->getQuote();
      echo $quote->getBillingAddress()->getTelephone(); // get billing address phone number







      share|improve this answer



























        1














        Use the following code to resolve your query:



        public function yourFunction(Varien_Event_Observer $observer)

        $order = $observer->getEvent();
        echo $order->getOrder()->getPayment()->getMethod(); // get selected paymante method

        $quote = Mage::getSingleton('checkout/session')->getQuote();
        echo $quote->getBillingAddress()->getTelephone(); // get billing address phone number







        share|improve this answer

























          1












          1








          1







          Use the following code to resolve your query:



          public function yourFunction(Varien_Event_Observer $observer)

          $order = $observer->getEvent();
          echo $order->getOrder()->getPayment()->getMethod(); // get selected paymante method

          $quote = Mage::getSingleton('checkout/session')->getQuote();
          echo $quote->getBillingAddress()->getTelephone(); // get billing address phone number







          share|improve this answer













          Use the following code to resolve your query:



          public function yourFunction(Varien_Event_Observer $observer)

          $order = $observer->getEvent();
          echo $order->getOrder()->getPayment()->getMethod(); // get selected paymante method

          $quote = Mage::getSingleton('checkout/session')->getQuote();
          echo $quote->getBillingAddress()->getTelephone(); // get billing address phone number








          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Dec 19 '16 at 10:46









          Abhinav SinghAbhinav Singh

          2,115612




          2,115612





















              0














              You may also try with below code to read all the parameters



               $orders = $observer->getData();
              echo '<pre>'; print_r($orders); echo '</pre>';





              share|improve this answer























              • Thank you for your answer. In starting, 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('parameter_name'). Can you tell me how to access this parameter by using sales_order_place_before event.

                – vedu
                Nov 24 '15 at 6:39











              • You may use $data = Mage::app()->getRequest()->getParams(); to get the data

                – Vick
                Nov 24 '15 at 6:47















              0














              You may also try with below code to read all the parameters



               $orders = $observer->getData();
              echo '<pre>'; print_r($orders); echo '</pre>';





              share|improve this answer























              • Thank you for your answer. In starting, 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('parameter_name'). Can you tell me how to access this parameter by using sales_order_place_before event.

                – vedu
                Nov 24 '15 at 6:39











              • You may use $data = Mage::app()->getRequest()->getParams(); to get the data

                – Vick
                Nov 24 '15 at 6:47













              0












              0








              0







              You may also try with below code to read all the parameters



               $orders = $observer->getData();
              echo '<pre>'; print_r($orders); echo '</pre>';





              share|improve this answer













              You may also try with below code to read all the parameters



               $orders = $observer->getData();
              echo '<pre>'; print_r($orders); echo '</pre>';






              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Nov 24 '15 at 6:23









              VickVick

              96111




              96111












              • Thank you for your answer. In starting, 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('parameter_name'). Can you tell me how to access this parameter by using sales_order_place_before event.

                – vedu
                Nov 24 '15 at 6:39











              • You may use $data = Mage::app()->getRequest()->getParams(); to get the data

                – Vick
                Nov 24 '15 at 6:47

















              • Thank you for your answer. In starting, 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('parameter_name'). Can you tell me how to access this parameter by using sales_order_place_before event.

                – vedu
                Nov 24 '15 at 6:39











              • You may use $data = Mage::app()->getRequest()->getParams(); to get the data

                – Vick
                Nov 24 '15 at 6:47
















              Thank you for your answer. In starting, 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('parameter_name'). Can you tell me how to access this parameter by using sales_order_place_before event.

              – vedu
              Nov 24 '15 at 6:39





              Thank you for your answer. In starting, 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('parameter_name'). Can you tell me how to access this parameter by using sales_order_place_before event.

              – vedu
              Nov 24 '15 at 6:39













              You may use $data = Mage::app()->getRequest()->getParams(); to get the data

              – Vick
              Nov 24 '15 at 6:47





              You may use $data = Mage::app()->getRequest()->getParams(); to get the data

              – Vick
              Nov 24 '15 at 6:47











              0














              As you can see from Mage_Sales_Model_Order::place(), the only available data for this event is order. To access the request object inside your event observer, you can do something like:



              $request = Mage::app()->getRequest();





              share|improve this answer

























              • Thank you for your answer. In starting, 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('parameter_name'). Can you tell me how to access this parameter by using sales_order_place_before event.

                – vedu
                Nov 24 '15 at 6:39











              • See my answer above: you don't have access to the request from the observer data, but you can still get the request object by calling $request = Mage::app()->getRequest(); in your event observer.

                – fmrng
                Nov 24 '15 at 6:42











              • That code is returing : Mage_Core_Controller_Request_Http Object array but there are different parameters present and parameters those I want are not present.

                – vedu
                Nov 24 '15 at 6:46
















              0














              As you can see from Mage_Sales_Model_Order::place(), the only available data for this event is order. To access the request object inside your event observer, you can do something like:



              $request = Mage::app()->getRequest();





              share|improve this answer

























              • Thank you for your answer. In starting, 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('parameter_name'). Can you tell me how to access this parameter by using sales_order_place_before event.

                – vedu
                Nov 24 '15 at 6:39











              • See my answer above: you don't have access to the request from the observer data, but you can still get the request object by calling $request = Mage::app()->getRequest(); in your event observer.

                – fmrng
                Nov 24 '15 at 6:42











              • That code is returing : Mage_Core_Controller_Request_Http Object array but there are different parameters present and parameters those I want are not present.

                – vedu
                Nov 24 '15 at 6:46














              0












              0








              0







              As you can see from Mage_Sales_Model_Order::place(), the only available data for this event is order. To access the request object inside your event observer, you can do something like:



              $request = Mage::app()->getRequest();





              share|improve this answer















              As you can see from Mage_Sales_Model_Order::place(), the only available data for this event is order. To access the request object inside your event observer, you can do something like:



              $request = Mage::app()->getRequest();






              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Nov 24 '15 at 6:43

























              answered Nov 24 '15 at 6:19









              fmrngfmrng

              2,7881317




              2,7881317












              • Thank you for your answer. In starting, 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('parameter_name'). Can you tell me how to access this parameter by using sales_order_place_before event.

                – vedu
                Nov 24 '15 at 6:39











              • See my answer above: you don't have access to the request from the observer data, but you can still get the request object by calling $request = Mage::app()->getRequest(); in your event observer.

                – fmrng
                Nov 24 '15 at 6:42











              • That code is returing : Mage_Core_Controller_Request_Http Object array but there are different parameters present and parameters those I want are not present.

                – vedu
                Nov 24 '15 at 6:46


















              • Thank you for your answer. In starting, 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('parameter_name'). Can you tell me how to access this parameter by using sales_order_place_before event.

                – vedu
                Nov 24 '15 at 6:39











              • See my answer above: you don't have access to the request from the observer data, but you can still get the request object by calling $request = Mage::app()->getRequest(); in your event observer.

                – fmrng
                Nov 24 '15 at 6:42











              • That code is returing : Mage_Core_Controller_Request_Http Object array but there are different parameters present and parameters those I want are not present.

                – vedu
                Nov 24 '15 at 6:46

















              Thank you for your answer. In starting, 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('parameter_name'). Can you tell me how to access this parameter by using sales_order_place_before event.

              – vedu
              Nov 24 '15 at 6:39





              Thank you for your answer. In starting, 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('parameter_name'). Can you tell me how to access this parameter by using sales_order_place_before event.

              – vedu
              Nov 24 '15 at 6:39













              See my answer above: you don't have access to the request from the observer data, but you can still get the request object by calling $request = Mage::app()->getRequest(); in your event observer.

              – fmrng
              Nov 24 '15 at 6:42





              See my answer above: you don't have access to the request from the observer data, but you can still get the request object by calling $request = Mage::app()->getRequest(); in your event observer.

              – fmrng
              Nov 24 '15 at 6:42













              That code is returing : Mage_Core_Controller_Request_Http Object array but there are different parameters present and parameters those I want are not present.

              – vedu
              Nov 24 '15 at 6:46






              That code is returing : Mage_Core_Controller_Request_Http Object array but there are different parameters present and parameters those I want are not present.

              – vedu
              Nov 24 '15 at 6:46












              0














              public function yourFunction(Varien_Event_Observer $observer)

              $order = $observer->getEvent();
              echo $order->getOrder()->getPayment()->getMethod(); // get selected paymante method

              $quote = Mage::getSingleton('checkout/session')->getQuote();
              echo $quote->getBillingAddress()->getTelephone(); // get billing address phone number






              share|improve this answer





























                0














                public function yourFunction(Varien_Event_Observer $observer)

                $order = $observer->getEvent();
                echo $order->getOrder()->getPayment()->getMethod(); // get selected paymante method

                $quote = Mage::getSingleton('checkout/session')->getQuote();
                echo $quote->getBillingAddress()->getTelephone(); // get billing address phone number






                share|improve this answer



























                  0












                  0








                  0







                  public function yourFunction(Varien_Event_Observer $observer)

                  $order = $observer->getEvent();
                  echo $order->getOrder()->getPayment()->getMethod(); // get selected paymante method

                  $quote = Mage::getSingleton('checkout/session')->getQuote();
                  echo $quote->getBillingAddress()->getTelephone(); // get billing address phone number






                  share|improve this answer















                  public function yourFunction(Varien_Event_Observer $observer)

                  $order = $observer->getEvent();
                  echo $order->getOrder()->getPayment()->getMethod(); // get selected paymante method

                  $quote = Mage::getSingleton('checkout/session')->getQuote();
                  echo $quote->getBillingAddress()->getTelephone(); // get billing address phone number







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Mar 19 at 4:27









                  magefms

                  2,0822426




                  2,0822426










                  answered Jan 27 '17 at 13:49









                  AnbuAnbu

                  1




                  1



























                      draft saved

                      draft discarded
















































                      Thanks for contributing an answer to Magento Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid


                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.

                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f91326%2fgetting-parameters-in-sales-order-place-before-events-observer%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Masuk log Menu navigasi

                      Identifying “long and narrow” polygons in with PostGISlength and width of polygonWhy postgis st_overlaps reports Qgis' “avoid intersections” generated polygon as overlapping with others?Adjusting polygons to boundary and filling holesDrawing polygons with fixed area?How to remove spikes in Polygons with PostGISDeleting sliver polygons after difference operation in QGIS?Snapping boundaries in PostGISSplit polygon into parts adding attributes based on underlying polygon in QGISSplitting overlap between polygons and assign to nearest polygon using PostGIS?Expanding polygons and clipping at midpoint?Removing Intersection of Buffers in Same Layers

                      Старые Смолеговицы Содержание История | География | Демография | Достопримечательности | Примечания | НавигацияHGЯOLHGЯOL41 206 832 01641 606 406 141Административно-территориальное деление Ленинградской области«Переписная оброчная книга Водской пятины 1500 года», С. 793«Карта Ингерманландии: Ивангорода, Яма, Копорья, Нотеборга», по материалам 1676 г.«Генеральная карта провинции Ингерманландии» Э. Белинга и А. Андерсина, 1704 г., составлена по материалам 1678 г.«Географический чертёж над Ижорскою землей со своими городами» Адриана Шонбека 1705 г.Новая и достоверная всей Ингерманландии ланткарта. Грав. А. Ростовцев. СПб., 1727 г.Топографическая карта Санкт-Петербургской губернии. 5-и верстка. Шуберт. 1834 г.Описание Санкт-Петербургской губернии по уездам и станамСпецкарта западной части России Ф. Ф. Шуберта. 1844 г.Алфавитный список селений по уездам и станам С.-Петербургской губернииСписки населённых мест Российской Империи, составленные и издаваемые центральным статистическим комитетом министерства внутренних дел. XXXVII. Санкт-Петербургская губерния. По состоянию на 1862 год. СПб. 1864. С. 203Материалы по статистике народного хозяйства в С.-Петербургской губернии. Вып. IX. Частновладельческое хозяйство в Ямбургском уезде. СПб, 1888, С. 146, С. 2, 7, 54Положение о гербе муниципального образования Курское сельское поселениеСправочник истории административно-территориального деления Ленинградской области.Топографическая карта Ленинградской области, квадрат О-35-23-В (Хотыницы), 1930 г.АрхивированоАдминистративно-территориальное деление Ленинградской области. — Л., 1933, С. 27, 198АрхивированоАдминистративно-экономический справочник по Ленинградской области. — Л., 1936, с. 219АрхивированоАдминистративно-территориальное деление Ленинградской области. — Л., 1966, с. 175АрхивированоАдминистративно-территориальное деление Ленинградской области. — Лениздат, 1973, С. 180АрхивированоАдминистративно-территориальное деление Ленинградской области. — Лениздат, 1990, ISBN 5-289-00612-5, С. 38АрхивированоАдминистративно-территориальное деление Ленинградской области. — СПб., 2007, с. 60АрхивированоКоряков Юрий База данных «Этно-языковой состав населённых пунктов России». Ленинградская область.Административно-территориальное деление Ленинградской области. — СПб, 1997, ISBN 5-86153-055-6, С. 41АрхивированоКультовый комплекс Старые Смолеговицы // Электронная энциклопедия ЭрмитажаПроблемы выявления, изучения и сохранения культовых комплексов с каменными крестами: по материалам работ 2016-2017 гг. в Ленинградской области