Jump to content

how to copy paypal module to new hook


aaront1

Recommended Posts

Hi,

 

By default, the paypal module only shown on the productFooter and shoppingCartExtra hook.
I want to show it on my custom hook, but it doesn't seems to work. below are the steps I did.

 

1. on paypalusa.php

I added && $this->registerHook('displayProductPaypal') for the parent::install line.

 

I also duplicated the

"public function hookProductFooter($params)" function and rename it to

"public function hookDisplayProductPaypal($params)"

 

2. reset the module in backoffice

 

3. check the module->position and the paypal module is in the displayProductPaypal hook.

 

4. in my TPL file, I added {hook h="DisplayProductPaypal" }

but it is not display the paypal section when I refresh the page.

 

is there something I missed?

 

 

Thanks,

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...