chorizotpl Posted June 19, 2013 Share Posted June 19, 2013 I'd like to know how to add the logos representing the available payment methods onto the Home Page of my website? I've tried transplanting the Block Payment logo to hook into the Homepage content but it tells me "This module cannot be transplanted to this hook" Any ideas? I'd like it to sit on the left hand column under the Specials module My site is www.sleepersdirect.com.au but is not fully live yet so may not be always visible. Any help very gratefully received. Thanks Link to comment Share on other sites More sharing options...
vekia Posted June 19, 2013 Share Posted June 19, 2013 it's because module doesn't support this hook. You need to modify this module to register hook in installation function + create function with this hook. Link to comment Share on other sites More sharing options...
chorizotpl Posted June 19, 2013 Author Share Posted June 19, 2013 I'm afraid I have no idea what you mean. Is there an easy way to get the payment logos to appear on the home page? I'm after PayPal, Visa & MasterCard. Link to comment Share on other sites More sharing options...
vekia Posted June 19, 2013 Share Posted June 19, 2013 you have to modify module .php file. add $this->registerHook('home) to: public function install() { Configuration::updateValue('PS_PAYMENT_LOGO_CMS_ID', 0); if (!parent::install()) return false; if (!$this->registerHook('leftColumn')) return false; if (!$this->registerHook('header')) return false; return true; } then add additional funciton: public function hookHome($params) { return $this->hookLeftColumn($params); } unfortunately, without module modifications it isn't possible to achieve this. this is the only way. 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