-- HikaShop version -- : latest (Starter)
-- Joomla version -- : 3.2.1
-- PHP version -- : 5.3.28
Hi there,
I need help again. I need to put a tracking-code on the last checkout-page, after a sale is complete.
This thread
didn't work.
What I have done already:
- I have put my code in the checkout/end.php --> no success
- I've put it in /administrator/components/com_hikashop/extensions/plg_hikashoppayment_banktransferbanktransfer_end.php --> no success
This is the code in the end.php, which I've modified:
<?php
/**
* @package HikaShop for Joomla!
* @version 2.2.3
* @author hikashop.com
* @copyright (C) 2010-2013 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
defined('_JEXEC') or die('Restricted access');
?><?php
if(empty($this->html)){
echo JText::_('THANK_YOU_FOR_PURCHASE');
}else{
echo $this->html;
}
<?php
$ad_ordernumber = $this->order_number;
$ad_net_amount_step = $this->amount;
$ad_net_amount = round($ad_net_amount/1.19);
echo 'Hello Test-World. Say something!!</br>';
echo $ad_net_amount;
?>
<!-- Trackingcode -->
<script type="text/javascript" src="//www.xxxxxxx.com/js/jsadlib.js"></script>
<script type="text/javascript">
Aff.user.track({
'eventid' : 12345,
'referenz' : '<?php echo $ad_ordernumber; ?>',
'betrag' : <?php echo $ad_net_amount; ?>,
'pid' : 12345
});
</script>
<noscript>
<img src="//www.xxxxxxx.com/event.php?pid=12345&eventid=4454&referenz=<?php echo $ad_ordernumber; ?>&betrag=<?php echo $ad_net_amount; ?>" border="0" width="1" height="1">
</noscript>
$this->nextButton = false;
Tracking-code doesn't work. Even "Hello World..." isn't printed...
Any suggestions what's wrong here or which file I have to modifiy??
Thanks a lot in advance!!