Jump to content

How to add Image to bankwire module?


guh9090

Recommended Posts

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

20180109190437.jpg

and I get this and I don't want it:

Sin título3.png

I  try to put an imagen next to payment option. Similar to paypal module, see screenshot:

Sin título2.png

 

Any idea about this?

Thank you!

 

 

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

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 :)

 

Sin título4.png

  • Like 1
Link to comment
Share on other sites

  • 2 months later...
  • 2 weeks later...

 

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:

image.png.590df7a39539b61b84586c87dd95265b.png

 

Can you help me

thanks

Link to comment
Share on other sites

  • 4 years later...
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:

image.png.590df7a39539b61b84586c87dd95265b.png

 

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

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