X hide

Magento Checkout Success Page v1.x Developers Guide and API Reference

From Plumrocket Documentation

You are viewing:  Checkout-success-page-magento-extension-32.png  Checkout Success Page

Adding Tracking Code Manually

In order to add tracking code on page manually, follow the instructions below:

1.Copу the file:

app/design/frontend/base/default/template/checkoutspage/page.phtml 

2. Paste it to the folder with your theme:

app/design/frontend/YOUR_THEME/default/template/checkoutspage/page.phtml 
  • where YOUR_THEME is the name of your theme.

3. At the very end of the copied file please paste the tracking code you have.

Example:
<?php
/**
 * Plumrocket Inc.
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the End-user License Agreement
 * that is available through the world-wide-web at this URL:
 * http://wiki.plumrocket.net/wiki/EULA
 * If you are unable to obtain it through the world-wide-web, please
 * send an email to support@plumrocket.com so we can send you a copy immediately.
 *
 * @package Plumrocket_Checkoutspage
 * @copyright Copyright (c) 2015 Plumrocket Inc. (http://www.plumrocket.com)
 * @license http://wiki.plumrocket.net/wiki/EULA End-user License Agreement
 */
?>
 
<?php
 
$_helper = $this->helper('checkoutspage');
if ($this->getOrderId()) {
$_order = $_helper->getOrder();
}
?>
<script type="text/javascript">
var checkoutspage = new _checkoutspage({
previewMode : '<?php echo ($this->getRequest()->getParam('preview')) ? 'true' : 'false'; ?>'
});
</script>
 
<div id="csp-extension" class="mod-checkoutspage">
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
<div class="csp-cf">
<div class="csp-left-col">
<?php echo $this->getChildHtml('csp_left_block'); ?>
</div>
<div class="csp-right-col">
<?php echo $this->getChildHtml('csp_right_block'); ?>
</div>
</div>
 
<div class="csp-bottom-col csp-cf">
<?php echo $this->getChildHtml('csp_bottom_block'); ?>
</div>
</div>
 
<script type="text/javascript">
pjQuery_1_10_2(document).ready(function(){
checkoutspage.documentRead();
})
</script>
!!-<!-- Google Code for AdWords Transactions Conversion Page -->
<script type="text/javascript">
/ <![CDATA[ /
var google_conversion_id = 85668555;
var google_conversion_language = "en";
var google_conversion_format = "3";
var google_conversion_color = "c71414";
var google_conversion_label = "exbPxfsdfsd2wM";
var google_conversion_value = 50.00;
var google_remarketing_only = false;
/ ]]> /
</script>
<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/xxxxxxx/?value=50.00/>
</div>
</noscript>-!!

Checkout Success Page Extension for Magento Checkout Success Page Extension for Magento

Buy Magento Checkout Success Page on Plumrocket Store
Click below to check key features of this extension, view live demo and screenshots:
Navigation