guh9090 Posted January 9, 2018 Share Posted January 9, 2018 Hello, How can I add an image to bankwire module? I want bankwire module display an image when customer choose payment method, like paypal module. Thank you!! Link to comment Share on other sites More sharing options...
phpist Posted January 9, 2018 Share Posted January 9, 2018 Hi @guh9090 How about adding the image in the tpl file of the module! Cheers Link to comment Share on other sites More sharing options...
guh9090 Posted January 9, 2018 Author Share Posted January 9, 2018 (edited) hace 3 horas, phpist dijo: Hi @guh9090 How about adding the image in the tpl file of the module! Cheers Hello, thanks I tried to modify \modules\ps_wirepayment\views\templates\hook\ps_wirepayment_intro.tpl file, add this code <img src="/upload/wirepayment.jpg" > see screenshot and I get this and I don't want it: I try to put an imagen next to payment option. Similar to paypal module, see screenshot: Any idea about this? Thank you! Edited January 9, 2018 by guh9090 (see edit history) Link to comment Share on other sites More sharing options...
phpist Posted January 9, 2018 Share Posted January 9, 2018 Hi @guh9090 I see, here's the right solution for this: $newOption->setLogo($this->_path .'views/img/'. $your_logo); Where "$newOption" is the variable of the object PaymentOption. Good luck, Cheers 2 1 Link to comment Share on other sites More sharing options...
guh9090 Posted January 10, 2018 Author Share Posted January 10, 2018 hace 8 horas, phpist dijo: Hi @guh9090 I see, here's the right solution for this: $newOption->setLogo($this->_path .'views/img/'. $your_logo); Where "$newOption" is the variable of the object PaymentOption. Good luck, Cheers Thank you, it worked fine, just as I wanted 1 Link to comment Share on other sites More sharing options...
phpist Posted January 10, 2018 Share Posted January 10, 2018 Great, I'm happy that I could help, can you just mark as solved please? If you have any other issue just post them, if I have time I will try to reply as much as I can Link to comment Share on other sites More sharing options...
BoticaSanus Posted April 7, 2018 Share Posted April 7, 2018 (edited) HelloCan you please explain in more detail the whole process until the final result?I'm using cpanel thanks Edited April 7, 2018 by BoticaSanus (see edit history) Link to comment Share on other sites More sharing options...
phpist Posted April 20, 2018 Share Posted April 20, 2018 Hello @BoticaSanus Which process? everything's clear if you go to the wire bank payment or cheque module then you will get the idea. Cheers Link to comment Share on other sites More sharing options...
BoticaSanus Posted April 21, 2018 Share Posted April 21, 2018 Hello Phpist I did everything like you explained before. I went to my file in /public_html/modules/ps_wirepayment/ps_wirepayment.php – linha 197, and I change it like you said I change the original line: ->setCallToActionText($this->trans('Pay by bank wire', array(), 'Modules.Wirepayment.Shop')) to: ->setCallToActionText($this->trans('Pay by bank wire', array(), 'Modules.Wirepayment.Shop').'<img src="/upload/wirepayment.jpg" >') the problem is that, when I change it, the image don't appear... instead this is what appears: Can you help me thanks Link to comment Share on other sites More sharing options...
Talas Posted May 20, 2022 Share Posted May 20, 2022 On 4/21/2018 at 12:21 PM, BoticaSanus said: Hello Phpist I did everything like you explained before. I went to my file in /public_html/modules/ps_wirepayment/ps_wirepayment.php – linha 197, and I change it like you said I change the original line: ->setCallToActionText($this->trans('Pay by bank wire', array(), 'Modules.Wirepayment.Shop')) to: ->setCallToActionText($this->trans('Pay by bank wire', array(), 'Modules.Wirepayment.Shop').'<img src="/upload/wirepayment.jpg" >') the problem is that, when I change it, the image don't appear... instead this is what appears: Can you help me thanks Hello, i know this post is old but the solution can be useful for someone else using Prestashop 1.7.X.X. To add a logo to the wire payment module you must edit this file: /modules/ps_wirepayment/ps_wirepayment.php by adding this code $newOption->setLogo($this->_path .'../../img/logo.svg'); [you must edit the path to your logo] under this line $newOption = new PaymentOption();. Save the file. Reload your website and the logo will appear. 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