<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Add Adwords tracking code to order confirmation page in Magento</title>
	<atom:link href="http://asia-connect.com.vn/2009/10/add-adwords-tracking-code-to-order-confirmation-page-in-magento/feed/" rel="self" type="application/rss+xml" />
	<link>http://asia-connect.com.vn/2009/10/add-adwords-tracking-code-to-order-confirmation-page-in-magento/</link>
	<description>The place for connecting you to the success</description>
	<lastBuildDate>Sat, 15 Oct 2011 11:00:40 +0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Juan Siesquen</title>
		<link>http://asia-connect.com.vn/2009/10/add-adwords-tracking-code-to-order-confirmation-page-in-magento/comment-page-1/#comment-2539</link>
		<dc:creator>Juan Siesquen</dc:creator>
		<pubDate>Tue, 15 Dec 2009 16:39:20 +0000</pubDate>
		<guid isPermaLink="false">http://asia-connect.com.vn/?p=988#comment-2539</guid>
		<description>Hi Branko, 

Good article. 

I have a question: I have created a Payment Method what Consume a Web Service of Gateway called SafetyPay, i need to include and display \&quot;HTML Code\&quot; on the confirmation page (which shows the Order Number) without changing the template manually.

Location of template: 
/app/design/frontend/default/default/template/checkout/


Currently this is the Confirmation Message Content in success.phtml:
&lt;code&gt;
====================================================================
Your order has been received

Thank you for your purchase!

Your order # is: 100000026.
You will receive an order confirmation email with details of your order and a link to track its progress.
Click here to print a copy of your order confirmation. 
====================================================================
&lt;/code&gt;




I need change the template adding information from payment method:
&lt;code&gt;
====================================================================
Your order has been received

Thank you for your purchase!

Your order # is: 100000026.
You will receive an order confirmation email with details of your order and a link to track its progress.
Click here to print a copy of your order confirmation. 

To complete payment of this transaction, please go to your Online Banking, and use the following information:
Your Transaction ID is: 11611
Your Purchase Amount is: 41.27 Euro (EUR)

You can [Click here] to go directly to SAFETYPAY Default Bank.

IMPORTANT: This Transaction will expire in 2 hours.
====================================================================
&lt;/code&gt;


Is it possible to do this using layouts?


I have my XML File Layout in:
&lt;code&gt;
&lt;?xml version=\&quot;1.0\&quot;?&gt;
&lt;layout version=\&quot;0.1.0\&quot;&gt;
    &lt;default&gt;
    &lt;/default&gt;
    
    &lt;checkout_onepage_success&gt;
        &lt;reference name=\&quot;root\&quot;&gt;
            &lt;action method=\&quot;setTemplate\&quot;&gt;&lt;template&gt;page/2columns-right.phtml&lt;/template&gt;&lt;/action&gt;
        &lt;/reference&gt;
        &lt;reference name=\&quot;before_body_end\&quot;&gt;
            &lt;block name=\&quot;checkout.success.safetypay\&quot; template=\&quot;safetypay/confirmation.phtml\&quot; type=\&quot;safetypay/confirmation\&quot; /&gt;
        &lt;/reference&gt;

        &lt;reference name=\&quot;content\&quot;&gt;
            &lt;block name=\&quot;checkout.success\&quot; template=\&quot;checkout/success.phtml\&quot; type=\&quot;checkout/onepage_success\&quot; /&gt;
            &lt;block name=\&quot;checkout.success.safetypay\&quot; template=\&quot;safetypay/confirmation.phtml\&quot; type=\&quot;safetypay/confirmation\&quot; /&gt;
        &lt;/reference&gt;
    &lt;/checkout_onepage_success&gt;
&lt;/layout&gt;
&lt;code&gt;


The content of file: confirmation.phtml
&lt;code&gt;
&lt;?php
/**
 * Magento Confirm Message
?&gt;
To complete payment of this transaction, please go to your Online Banking, and use the following information:
Your Transaction ID is: &lt;?php echo $this-&gt;getTransactionID; ?&gt;
Your Purchase Amount is: &lt;?php echo $this-&gt;getPurchaseAmount; ?&gt;

You can [Click here] to go directly to &lt;?php echo $this-&gt;getBankName; ?&gt;.

IMPORTANT: This Transaction will expire in &lt;?php echo $this-&gt;getTimeExpire; ?&gt;.
&lt;/code&gt;


I have read that this also can be performed by Code... I hope your support....</description>
		<content:encoded><![CDATA[<p>Hi Branko, </p>
<p>Good article. </p>
<p>I have a question: I have created a Payment Method what Consume a Web Service of Gateway called SafetyPay, i need to include and display \&quot;HTML Code\&quot; on the confirmation page (which shows the Order Number) without changing the template manually.</p>
<p>Location of template:<br />
/app/design/frontend/default/default/template/checkout/</p>
<p>Currently this is the Confirmation Message Content in success.phtml:<br />
&lt;code&gt;<br />
====================================================================<br />
Your order has been received</p>
<p>Thank you for your purchase!</p>
<p>Your order # is: 100000026.<br />
You will receive an order confirmation email with details of your order and a link to track its progress.<br />
Click here to print a copy of your order confirmation.<br />
====================================================================<br />
&lt;/code&gt;</p>
<p>I need change the template adding information from payment method:<br />
&lt;code&gt;<br />
====================================================================<br />
Your order has been received</p>
<p>Thank you for your purchase!</p>
<p>Your order # is: 100000026.<br />
You will receive an order confirmation email with details of your order and a link to track its progress.<br />
Click here to print a copy of your order confirmation. </p>
<p>To complete payment of this transaction, please go to your Online Banking, and use the following information:<br />
Your Transaction ID is: 11611<br />
Your Purchase Amount is: 41.27 Euro (EUR)</p>
<p>You can [Click here] to go directly to SAFETYPAY Default Bank.</p>
<p>IMPORTANT: This Transaction will expire in 2 hours.<br />
====================================================================<br />
&lt;/code&gt;</p>
<p>Is it possible to do this using layouts?</p>
<p>I have my XML File Layout in:<br />
&lt;code&gt;<br />
&lt;?xml version=\&quot;1.0\&quot;?&gt;<br />
&lt;layout version=\&quot;0.1.0\&quot;&gt;<br />
    &lt;default&gt;<br />
    &lt;/default&gt;</p>
<p>    &lt;checkout_onepage_success&gt;<br />
        &lt;reference name=\&quot;root\&quot;&gt;<br />
            &lt;action method=\&quot;setTemplate\&quot;&gt;&lt;template&gt;page/2columns-right.phtml&lt;/template&gt;&lt;/action&gt;<br />
        &lt;/reference&gt;<br />
        &lt;reference name=\&quot;before_body_end\&quot;&gt;<br />
            &lt;block name=\&quot;checkout.success.safetypay\&quot; template=\&quot;safetypay/confirmation.phtml\&quot; type=\&quot;safetypay/confirmation\&quot; /&gt;<br />
        &lt;/reference&gt;</p>
<p>        &lt;reference name=\&quot;content\&quot;&gt;<br />
            &lt;block name=\&quot;checkout.success\&quot; template=\&quot;checkout/success.phtml\&quot; type=\&quot;checkout/onepage_success\&quot; /&gt;<br />
            &lt;block name=\&quot;checkout.success.safetypay\&quot; template=\&quot;safetypay/confirmation.phtml\&quot; type=\&quot;safetypay/confirmation\&quot; /&gt;<br />
        &lt;/reference&gt;<br />
    &lt;/checkout_onepage_success&gt;<br />
&lt;/layout&gt;<br />
&lt;code&gt;</p>
<p>The content of file: confirmation.phtml<br />
&lt;code&gt;<br />
&lt;?php<br />
/**<br />
 * Magento Confirm Message<br />
?&gt;<br />
To complete payment of this transaction, please go to your Online Banking, and use the following information:<br />
Your Transaction ID is: &lt;?php echo $this-&gt;getTransactionID; ?&gt;<br />
Your Purchase Amount is: &lt;?php echo $this-&gt;getPurchaseAmount; ?&gt;</p>
<p>You can [Click here] to go directly to &lt;?php echo $this-&gt;getBankName; ?&gt;.</p>
<p>IMPORTANT: This Transaction will expire in &lt;?php echo $this-&gt;getTimeExpire; ?&gt;.<br />
&lt;/code&gt;</p>
<p>I have read that this also can be performed by Code&#8230; I hope your support&#8230;.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

