Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[+] Add iAdvize conversion tracking code

  • Loading branch information...
commit 7b7acb2283c1223d0f735cc6bb4b10cc80242d39 1 parent 54aeeb0
cmouleyre authored
Showing with 10 additions and 1 deletion.
  1. +10 −1 iadvize/iadvize.php
View
11 iadvize/iadvize.php
@@ -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;
}
@@ -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.
Something went wrong with that request. Please try again.