Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

How do I change the head tags of order confirmation page (success.phtml)? 
 
cgfc
Sr. Member
 
Avatar
Total Posts:  92
Joined:  2008-08-29
Montevideo, Uruguay
 

Hil, any one know how can I cange the header tags of the order confirmation page, beacuse I need to put a javascript code but only on the <head> tags and I really dont know where can I change them.

 
Magento Community Magento Community
Magento Community
Magento Community
 
altansar
Member
 
Total Posts:  51
Joined:  2008-07-08
 

Hi !

Just go into your checkout layout file ( layout/checkout.xml ) and add the following code into the checkout_onepage_success section :

<reference name="head">
     <
action method="addJs"><script>path/toyour/javascript.js</script></action>
</
reference>
 
Magento Community Magento Community
Magento Community
Magento Community
 
cgfc
Sr. Member
 
Avatar
Total Posts:  92
Joined:  2008-08-29
Montevideo, Uruguay
 

Hey, thanx a lot!!!

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top