kkkyyy 1 Posted August 28, 2014 Posted August 28, 2014 I'm trying to add a hook to my payment page and read out the cart content. I did the following in mymodule.php: public function install() { if (parent::install() == false OR !$this->registerHook('leftColumn')) return false; $this->registerHook('displayPaymentReturn'); $this->registerHook('displayPayment'); $this->registerHook('displayPaymentTop'); $this->registerHook('displayBeforePayment'); $this->registerHook('displayOrderConfirmation'); return true; } these were copy-pasted and modified from the tutorial and I defined these hooks public function hookDisplayPaymentReturn( $params ) { return $this->display(__FILE__, 'displayPayment.tpl'); } public function hookDisplayPayment( $params ) { return $this->display(__FILE__, 'displayPayment.tpl'); } public function hookDisplayPaymentTop( $params ) { return $this->display(__FILE__, 'displayPayment.tpl'); } public function hookDisplayBeforePayment( $params ) { return $this->display(__FILE__, 'displayPayment.tpl'); } public function hookOrderConfirmation( $params ) { return $this->display(__FILE__, 'displayPayment.tpl'); } but through the payment process, none of my content showed up. the other hooks work fine (for example on the left column) so where is my error? thanks Yang 1 Share this post Link to post Share on other sites
devzinga 0 Posted June 25, 2015 Posted June 25, 2015 yes same for me, not able to find as to why it is happening, other hoooks works fine except "hookPayment" and "hookPaymentReturn" Share this post Link to post Share on other sites
Recommended Posts