Jump to content

Add payments in an custom CMS page


Diachronic

Recommended Posts

Hello

 

 

I want to ask how to add payments(installed payments module) to an custom CMS page,

the same as they displayed in the shopping cart page(just listing them with links).

I've tried to add { $HOOK_PAYMENT} to the CMS page but i got errors in the page

 

Any help please!!!

 

 

Best Regards

Edited by Diachronic (see edit history)
Link to comment
Share on other sites

before use { $HOOK_PAYMENT} in .tpl file you have to define that smarty variable in controller file of that CMS page as follows.

$this->context->smarty->assign(array(
'HOOK_PAYMENT' 	=> 	Hook::exec('displayPayment'),
));

then you will able to display all payment method list in the .tpl file of CMS page.

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...