aus0ne Posted January 27, 2022 Share Posted January 27, 2022 (edited) Hello to everyone im finally, after 9 years, stuck with a little problem maybe someone can help to find my way With my prestashop (1.6.1.23) i have, since prestashop 1.6, an advance EU compliance module Since this, my payement module need to be hooked on DisplayplaymentEU and my payment module ( payxpert only can be attached to 3 hooks look at the picture How can i bring it to displyPayment to displayPaymentEU ( i think i just need to rename the hook somewhere but i odont know where. If someone could come to my help ( im no IT but i get quite good with prestashop so if someone is kind enough to help me through i would be very grateful I wait for your reply Sincerly Ausone Edited January 30, 2022 by aus0ne solved ! (see edit history) Link to comment Share on other sites More sharing options...
Ress Posted March 6, 2022 Share Posted March 6, 2022 (edited) Hi, If the module name is payxpert, in /modules/payxpert/payxpert.php (rule is /modules/module_name/module_name.php), you will find the method which starts with: public function hookDisplayPayment($params) { ... You can copy the entire function and rename it to public function hookDisplayPaymentEU($params) { ... Once you've done that, you'll need to add it to Hooks, it will become available for hook register. Edited March 6, 2022 by Ress (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