private function submitTwengaActivateTracking() { $activate = false; // Use TwengaObj::siteActivate() method to activate tracking. try { $activate = self::$obj_twenga->siteActivate(); } catch (Exception $e) { $this->_errors[] = $e->getMessage(); } if ($activate) { $this->registerHook('payment'); $this->registerHook('updateOrderStatus'); $this->registerHook('cancelProduct'); } }
private function submitTwengaActivateTracking() { $activate = false; // Use TwengaObj::siteActivate() method to activate tracking. try { $activate = self::$obj_twenga->siteActivate(); } catch (Exception $e) { $this->_errors[] = $e->getMessage(); } if ($activate) { if (Configuration::get('PS_ORDER_PROCESS_TYPE') == 1) { $this->registerHook('displayCarrierList'); } else { $this->registerHook('displayPayment'); $this->registerHook('payment'); } $this->registerHook('updateOrderStatus'); $this->registerHook('cancelProduct'); } }
private function submitTwengaActivateTracking() { $activate = false; // Use TwengaObj::siteActivate() method to activate tracking. try { $activate = self::$obj_twenga->siteActivate(); } catch (Exception $e) { $this->_errors[] = $e->getMessage(); } if ($activate) { $this->_html = ' <div class="conf"> ' . $this->l('Your sales tracking is enabled.') . '</a> </div> '; $this->registerHook('displayHome'); $this->registerHook('displayProductButtons'); $this->registerHook('displayShoppingCart'); $this->registerHook('displayPayment'); $this->registerHook('payment'); $this->registerHook('orderConfirmation'); } }