Skip to content

Commit

Permalink
[+] Add iAdvize conversion tracking code
Browse files Browse the repository at this point in the history
  • Loading branch information
cmouleyre authored and cmouleyre committed Dec 10, 2012
1 parent 54aeeb0 commit 7b7acb2
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion iadvize/iadvize.php
Expand Up @@ -45,7 +45,7 @@ function __construct()

function install()
{
if (!parent::install() OR !$this->registerHook('footer') OR !$this->registerHook('leftColumn') OR !$this->registerHook('rightColumn'))
if (!parent::install() OR !$this->registerHook('footer') OR !$this->registerHook('leftColumn') OR !$this->registerHook('rightColumn') OR !$this->registerHook('orderConfirmation'))
return false;
return true;
}
Expand Down Expand Up @@ -157,4 +157,13 @@ public function hookFooter($params)
</script>
<!-- /End - iAdvize - Live chat -->'."\n";
}

public function hookOrderConfirmation($params) {
return '<!-- START IADVIZE CONVERSION TRACKING CODE -->
<script type="text/javascript">
var idzTrans = {"cartAmount":{'.$params['total_to_pay'].'},"tID":"{'.$params['objOrder']->id.'}"};
</script>
<!-- END IADVIZE CONVERSION TRACKING CODE -->';
}

}

0 comments on commit 7b7acb2

Please sign in to comment.