checkout success page events magentoUpdate gift message after order success in magento 1.9Modifying the checkout success page in magentoSuccess confirmation page not showing after checkoutCustomize magento checkout success pageChecking for previous orders on success pageMagento success pagedefault magento onepage checkout success page gives 404 errorSimple Observer not firing on eventmagento checkout success page not showing after order placingList Magento Events Being Called During CheckoutHow to customize checkout success page

Is there a problem with hiding "forgot password" until it's needed?

Coordinate position not precise

The baby cries all morning

Hostile work environment after whistle-blowing on coworker and our boss. What do I do?

Using parameter substitution on a Bash array

What is the opposite of 'gravitas'?

Why are on-board computers allowed to change controls without notifying the pilots?

Can somebody explain Brexit in a few child-proof sentences?

How do I define a right arrow with bar in LaTeX?

How can I get through very long and very dry, but also very useful technical documents when learning a new tool?

Transcription Beats per minute

How does a character multiclassing into warlock get a focus?

How do I keep an essay about "feeling flat" from feeling flat?

How does it work when somebody invests in my business?

How was Earth single-handedly capable of creating 3 of the 4 gods of chaos?

Time travel short story where a man arrives in the late 19th century in a time machine and then sends the machine back into the past

Increase performance creating Mandelbrot set in python

What's a natural way to say that someone works somewhere (for a job)?

Ways to speed up user implemented RK4

Can I use my Chinese passport to enter China after I acquired another citizenship?

Will it be accepted, if there is no ''Main Character" stereotype?

Why does John Bercow say “unlock” after reading out the results of a vote?

What are the ramifications of creating a homebrew world without an Astral Plane?

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



checkout success page events magento


Update gift message after order success in magento 1.9Modifying the checkout success page in magentoSuccess confirmation page not showing after checkoutCustomize magento checkout success pageChecking for previous orders on success pageMagento success pagedefault magento onepage checkout success page gives 404 errorSimple Observer not firing on eventmagento checkout success page not showing after order placingList Magento Events Being Called During CheckoutHow to customize checkout success page













0















I have just created one module after checkout success event in Magento.




etc/config.xml




<?xml version="1.0"?>
<config>
<modules>
<Tech_Paymentinfo>
<version>0.1.0</version>
</Tech_Paymentinfo>
</modules>
<global>
<helpers>
<paymentinfo>
<class>Tech_Paymentinfo_Helper</class>
</paymentinfo>
</helpers>
<models>
<paymentinfo>
<class>Tech_Paymentinfo_Model</class>
<resourceModel>paymentinfo_mysql4</resourceModel>
</paymentinfo>
</models>
<events>
<sales_order_place_after> <!-- identifier of the event we want to catch -->
<observers>
<sales_order_place_after_handler> <!-- identifier of the event handler -->
<type>singleton</type> <!-- class method call type; valid are model, object and singleton -->
<class>paymentinfo/observer</class> <!-- observers class alias -->
<method>savePayment</method> <!-- observer's method to be called -->
<args></args> <!-- additional arguments passed to observer -->
</sales_order_place_after_handler>
</observers>
</sales_order_place_after>
</events>
</global>
</config>


And here is my Observer.php file



class Tech_Paymentinfo_Model_Observer

public function savePayment(Varien_Event_Observer $observer)

//Mage::dispatchEvent('admin_session_user_login_success', array('user'=>$user));
//$user = $observer->getEvent()->getUser();
//$user->doSomething();




Now I want my custom payment method data after order success.



Can any one help me to sort it out issue.










share|improve this question
























  • so what is the goal of your custom module ? I'm not sure if i understood fully you issue here

    – Attila Naghi
    yesterday











  • i want payment method name into gift message field in sales order in admin section.

    – Nikul
    yesterday











  • Rakesh Thank you as per above code also working fine for me. Now i want my payment method name update into Gift message field in sales order in admin. Means if i have checkmo payment method so i have update this into Gift message field into admin.

    – Anil
    yesterday











  • If you have a new question, please ask it by clicking the Ask Question button. Include a link to this question if it helps provide context. - From Review

    – Jai
    yesterday











  • Please don't add "thank you" as an answer. Once you have sufficient reputation, you will be able to vote up questions and answers that you found helpful. - From Review

    – Sukumar Gorai
    yesterday















0















I have just created one module after checkout success event in Magento.




etc/config.xml




<?xml version="1.0"?>
<config>
<modules>
<Tech_Paymentinfo>
<version>0.1.0</version>
</Tech_Paymentinfo>
</modules>
<global>
<helpers>
<paymentinfo>
<class>Tech_Paymentinfo_Helper</class>
</paymentinfo>
</helpers>
<models>
<paymentinfo>
<class>Tech_Paymentinfo_Model</class>
<resourceModel>paymentinfo_mysql4</resourceModel>
</paymentinfo>
</models>
<events>
<sales_order_place_after> <!-- identifier of the event we want to catch -->
<observers>
<sales_order_place_after_handler> <!-- identifier of the event handler -->
<type>singleton</type> <!-- class method call type; valid are model, object and singleton -->
<class>paymentinfo/observer</class> <!-- observers class alias -->
<method>savePayment</method> <!-- observer's method to be called -->
<args></args> <!-- additional arguments passed to observer -->
</sales_order_place_after_handler>
</observers>
</sales_order_place_after>
</events>
</global>
</config>


And here is my Observer.php file



class Tech_Paymentinfo_Model_Observer

public function savePayment(Varien_Event_Observer $observer)

//Mage::dispatchEvent('admin_session_user_login_success', array('user'=>$user));
//$user = $observer->getEvent()->getUser();
//$user->doSomething();




Now I want my custom payment method data after order success.



Can any one help me to sort it out issue.










share|improve this question
























  • so what is the goal of your custom module ? I'm not sure if i understood fully you issue here

    – Attila Naghi
    yesterday











  • i want payment method name into gift message field in sales order in admin section.

    – Nikul
    yesterday











  • Rakesh Thank you as per above code also working fine for me. Now i want my payment method name update into Gift message field in sales order in admin. Means if i have checkmo payment method so i have update this into Gift message field into admin.

    – Anil
    yesterday











  • If you have a new question, please ask it by clicking the Ask Question button. Include a link to this question if it helps provide context. - From Review

    – Jai
    yesterday











  • Please don't add "thank you" as an answer. Once you have sufficient reputation, you will be able to vote up questions and answers that you found helpful. - From Review

    – Sukumar Gorai
    yesterday













0












0








0








I have just created one module after checkout success event in Magento.




etc/config.xml




<?xml version="1.0"?>
<config>
<modules>
<Tech_Paymentinfo>
<version>0.1.0</version>
</Tech_Paymentinfo>
</modules>
<global>
<helpers>
<paymentinfo>
<class>Tech_Paymentinfo_Helper</class>
</paymentinfo>
</helpers>
<models>
<paymentinfo>
<class>Tech_Paymentinfo_Model</class>
<resourceModel>paymentinfo_mysql4</resourceModel>
</paymentinfo>
</models>
<events>
<sales_order_place_after> <!-- identifier of the event we want to catch -->
<observers>
<sales_order_place_after_handler> <!-- identifier of the event handler -->
<type>singleton</type> <!-- class method call type; valid are model, object and singleton -->
<class>paymentinfo/observer</class> <!-- observers class alias -->
<method>savePayment</method> <!-- observer's method to be called -->
<args></args> <!-- additional arguments passed to observer -->
</sales_order_place_after_handler>
</observers>
</sales_order_place_after>
</events>
</global>
</config>


And here is my Observer.php file



class Tech_Paymentinfo_Model_Observer

public function savePayment(Varien_Event_Observer $observer)

//Mage::dispatchEvent('admin_session_user_login_success', array('user'=>$user));
//$user = $observer->getEvent()->getUser();
//$user->doSomething();




Now I want my custom payment method data after order success.



Can any one help me to sort it out issue.










share|improve this question
















I have just created one module after checkout success event in Magento.




etc/config.xml




<?xml version="1.0"?>
<config>
<modules>
<Tech_Paymentinfo>
<version>0.1.0</version>
</Tech_Paymentinfo>
</modules>
<global>
<helpers>
<paymentinfo>
<class>Tech_Paymentinfo_Helper</class>
</paymentinfo>
</helpers>
<models>
<paymentinfo>
<class>Tech_Paymentinfo_Model</class>
<resourceModel>paymentinfo_mysql4</resourceModel>
</paymentinfo>
</models>
<events>
<sales_order_place_after> <!-- identifier of the event we want to catch -->
<observers>
<sales_order_place_after_handler> <!-- identifier of the event handler -->
<type>singleton</type> <!-- class method call type; valid are model, object and singleton -->
<class>paymentinfo/observer</class> <!-- observers class alias -->
<method>savePayment</method> <!-- observer's method to be called -->
<args></args> <!-- additional arguments passed to observer -->
</sales_order_place_after_handler>
</observers>
</sales_order_place_after>
</events>
</global>
</config>


And here is my Observer.php file



class Tech_Paymentinfo_Model_Observer

public function savePayment(Varien_Event_Observer $observer)

//Mage::dispatchEvent('admin_session_user_login_success', array('user'=>$user));
//$user = $observer->getEvent()->getUser();
//$user->doSomething();




Now I want my custom payment method data after order success.



Can any one help me to sort it out issue.







magento-1.9 sales-order






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited yesterday









Magento_Bhurio

1378




1378










asked yesterday









NikulNikul

691918




691918












  • so what is the goal of your custom module ? I'm not sure if i understood fully you issue here

    – Attila Naghi
    yesterday











  • i want payment method name into gift message field in sales order in admin section.

    – Nikul
    yesterday











  • Rakesh Thank you as per above code also working fine for me. Now i want my payment method name update into Gift message field in sales order in admin. Means if i have checkmo payment method so i have update this into Gift message field into admin.

    – Anil
    yesterday











  • If you have a new question, please ask it by clicking the Ask Question button. Include a link to this question if it helps provide context. - From Review

    – Jai
    yesterday











  • Please don't add "thank you" as an answer. Once you have sufficient reputation, you will be able to vote up questions and answers that you found helpful. - From Review

    – Sukumar Gorai
    yesterday

















  • so what is the goal of your custom module ? I'm not sure if i understood fully you issue here

    – Attila Naghi
    yesterday











  • i want payment method name into gift message field in sales order in admin section.

    – Nikul
    yesterday











  • Rakesh Thank you as per above code also working fine for me. Now i want my payment method name update into Gift message field in sales order in admin. Means if i have checkmo payment method so i have update this into Gift message field into admin.

    – Anil
    yesterday











  • If you have a new question, please ask it by clicking the Ask Question button. Include a link to this question if it helps provide context. - From Review

    – Jai
    yesterday











  • Please don't add "thank you" as an answer. Once you have sufficient reputation, you will be able to vote up questions and answers that you found helpful. - From Review

    – Sukumar Gorai
    yesterday
















so what is the goal of your custom module ? I'm not sure if i understood fully you issue here

– Attila Naghi
yesterday





so what is the goal of your custom module ? I'm not sure if i understood fully you issue here

– Attila Naghi
yesterday













i want payment method name into gift message field in sales order in admin section.

– Nikul
yesterday





i want payment method name into gift message field in sales order in admin section.

– Nikul
yesterday













Rakesh Thank you as per above code also working fine for me. Now i want my payment method name update into Gift message field in sales order in admin. Means if i have checkmo payment method so i have update this into Gift message field into admin.

– Anil
yesterday





Rakesh Thank you as per above code also working fine for me. Now i want my payment method name update into Gift message field in sales order in admin. Means if i have checkmo payment method so i have update this into Gift message field into admin.

– Anil
yesterday













If you have a new question, please ask it by clicking the Ask Question button. Include a link to this question if it helps provide context. - From Review

– Jai
yesterday





If you have a new question, please ask it by clicking the Ask Question button. Include a link to this question if it helps provide context. - From Review

– Jai
yesterday













Please don't add "thank you" as an answer. Once you have sufficient reputation, you will be able to vote up questions and answers that you found helpful. - From Review

– Sukumar Gorai
yesterday





Please don't add "thank you" as an answer. Once you have sufficient reputation, you will be able to vote up questions and answers that you found helpful. - From Review

– Sukumar Gorai
yesterday










1 Answer
1






active

oldest

votes


















2














try this way...



using create event this way..



<checkout_onepage_controller_success_action> <!-- identifier of the event we want to catch -->
<observers>
<sales_order_place_after_handler> <!-- identifier of the event handler -->
<type>singleton</type> <!-- class method call type; valid are model, object and singleton -->
<class>paymentinfo/observer</class> <!-- observers class alias -->
<method>savePayment</method> <!-- observer's method to be called -->
<args></args> <!-- additional arguments passed to observer -->
</sales_order_place_after_handler>
</observers>
</checkout_onepage_controller_success_action>


and using observer get specific payment method like
i have get check method



public function savePayment(Varien_Event_Observer $observer)

$order = new Mage_Sales_Model_Order();
$incrementId = Mage::getSingleton('checkout/session')->getLastRealOrderId();

$order->loadByIncrementId($incrementId);

$payment_method_code = $order->getPayment()->getMethodInstance()->getCode(); //Fetch the payment method code from order

if($payment_method_code == "checkmo")
// your logic







share|improve this answer

























  • Thanks it's working fine... :)

    – Nikul
    yesterday










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%2f267266%2fcheckout-success-page-events-magento%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









2














try this way...



using create event this way..



<checkout_onepage_controller_success_action> <!-- identifier of the event we want to catch -->
<observers>
<sales_order_place_after_handler> <!-- identifier of the event handler -->
<type>singleton</type> <!-- class method call type; valid are model, object and singleton -->
<class>paymentinfo/observer</class> <!-- observers class alias -->
<method>savePayment</method> <!-- observer's method to be called -->
<args></args> <!-- additional arguments passed to observer -->
</sales_order_place_after_handler>
</observers>
</checkout_onepage_controller_success_action>


and using observer get specific payment method like
i have get check method



public function savePayment(Varien_Event_Observer $observer)

$order = new Mage_Sales_Model_Order();
$incrementId = Mage::getSingleton('checkout/session')->getLastRealOrderId();

$order->loadByIncrementId($incrementId);

$payment_method_code = $order->getPayment()->getMethodInstance()->getCode(); //Fetch the payment method code from order

if($payment_method_code == "checkmo")
// your logic







share|improve this answer

























  • Thanks it's working fine... :)

    – Nikul
    yesterday















2














try this way...



using create event this way..



<checkout_onepage_controller_success_action> <!-- identifier of the event we want to catch -->
<observers>
<sales_order_place_after_handler> <!-- identifier of the event handler -->
<type>singleton</type> <!-- class method call type; valid are model, object and singleton -->
<class>paymentinfo/observer</class> <!-- observers class alias -->
<method>savePayment</method> <!-- observer's method to be called -->
<args></args> <!-- additional arguments passed to observer -->
</sales_order_place_after_handler>
</observers>
</checkout_onepage_controller_success_action>


and using observer get specific payment method like
i have get check method



public function savePayment(Varien_Event_Observer $observer)

$order = new Mage_Sales_Model_Order();
$incrementId = Mage::getSingleton('checkout/session')->getLastRealOrderId();

$order->loadByIncrementId($incrementId);

$payment_method_code = $order->getPayment()->getMethodInstance()->getCode(); //Fetch the payment method code from order

if($payment_method_code == "checkmo")
// your logic







share|improve this answer

























  • Thanks it's working fine... :)

    – Nikul
    yesterday













2












2








2







try this way...



using create event this way..



<checkout_onepage_controller_success_action> <!-- identifier of the event we want to catch -->
<observers>
<sales_order_place_after_handler> <!-- identifier of the event handler -->
<type>singleton</type> <!-- class method call type; valid are model, object and singleton -->
<class>paymentinfo/observer</class> <!-- observers class alias -->
<method>savePayment</method> <!-- observer's method to be called -->
<args></args> <!-- additional arguments passed to observer -->
</sales_order_place_after_handler>
</observers>
</checkout_onepage_controller_success_action>


and using observer get specific payment method like
i have get check method



public function savePayment(Varien_Event_Observer $observer)

$order = new Mage_Sales_Model_Order();
$incrementId = Mage::getSingleton('checkout/session')->getLastRealOrderId();

$order->loadByIncrementId($incrementId);

$payment_method_code = $order->getPayment()->getMethodInstance()->getCode(); //Fetch the payment method code from order

if($payment_method_code == "checkmo")
// your logic







share|improve this answer















try this way...



using create event this way..



<checkout_onepage_controller_success_action> <!-- identifier of the event we want to catch -->
<observers>
<sales_order_place_after_handler> <!-- identifier of the event handler -->
<type>singleton</type> <!-- class method call type; valid are model, object and singleton -->
<class>paymentinfo/observer</class> <!-- observers class alias -->
<method>savePayment</method> <!-- observer's method to be called -->
<args></args> <!-- additional arguments passed to observer -->
</sales_order_place_after_handler>
</observers>
</checkout_onepage_controller_success_action>


and using observer get specific payment method like
i have get check method



public function savePayment(Varien_Event_Observer $observer)

$order = new Mage_Sales_Model_Order();
$incrementId = Mage::getSingleton('checkout/session')->getLastRealOrderId();

$order->loadByIncrementId($incrementId);

$payment_method_code = $order->getPayment()->getMethodInstance()->getCode(); //Fetch the payment method code from order

if($payment_method_code == "checkmo")
// your logic








share|improve this answer














share|improve this answer



share|improve this answer








edited 19 hours ago

























answered yesterday









Rakesh DongaRakesh Donga

2,080316




2,080316












  • Thanks it's working fine... :)

    – Nikul
    yesterday

















  • Thanks it's working fine... :)

    – Nikul
    yesterday
















Thanks it's working fine... :)

– Nikul
yesterday





Thanks it's working fine... :)

– Nikul
yesterday

















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%2f267266%2fcheckout-success-page-events-magento%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

Sum ergo cogito? 1 nng

三茅街道4182Guuntc Dn precexpngmageondP