bagalier Posted July 3, 2015 Share Posted July 3, 2015 (edited) I'm writing a custom module in order to insert TradeDoubler pixel code in order confirmation page withou regarding of payment. This is my module install method: public function install() { if (Shop::isFeatureActive()) Shop::setContext(Shop::CONTEXT_ALL); if (!parent::install() || !$this->registerHook('paymentReturn') || !Configuration::updateValue('TRADEDOUBLER_CONTAINER_TAG_ID', "")) return false; return true; } And the hookPaymentReturn method: public function hookPaymentReturn($params) { $this->context->smarty->assign( array( 'cutomer_id' => Configuration::get('TRADEDOUBLER_CONTAINER_TAG_ID') ) ); return $this->display(__FILE__, 'tradedoublerpixel.tpl'); } Is it correct using PaymentReturn hook in order to include every payment method and insert the code there? Thanks. P.S. Sorry for my English. Edited July 3, 2015 by bagalier (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now