Jump to content
kkkyyy

how to hook into payment?

Recommended Posts

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

 

  • Like 1

Share this post


Link to post
Share on other sites

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
Guest
This topic is now closed to further replies.

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More