Jump to content

How to change Paypal Logo on Index Page


Recommended Posts

Hi,

 

I would like to change the current Paypal logo on my home page for another one.

I have looked on the forum but didn't find an answer, can anyone help with this please?

Can't seem to find the option in home text editor either?

I have attached the logo that I would like to change, it is the one that comes with the standard theme and is positioned in the right column of my page.

 

Thanks for your help as always.

post-341858-0-72804100-1339966905_thumb.jpg

Link to comment
Share on other sites

Hi,

 

I would like to change the current Paypal logo on my home page for another one.

I have looked on the forum but didn't find an answer, can anyone help with this please?

Can't seem to find the option in home text editor either?

I have attached the logo that I would like to change, it is the one that comes with the standard theme and is positioned in the right column of my page.

 

Thanks for your help as always.

 

File path image paypal:

/modules/paypal/img/vertical_US_large.png

 

_ES_ if Spain, _IT_, if Italian ect..

 

 

File path where the image charge *.tpl:

 

/modules/paypal/column.tpl

 

<div class="advertising_block">
<p><a href="{$base_dir_ssl}modules/paypal/about.php" rel="nofollow"><img src="{$logo}" alt="PayPal" title="{l s='Pay with PayPal' mod='paypal'}" /></a></p>
</div>

 

In the class paypal.php reference column.tpl

 

public function hookRightColumn($params)
{
 global $smarty, $cookie;

 $smarty->assign('iso_code', Tools::strtolower(Language::getIsoById($cookie->id_lang ? (int)($cookie->id_lang) : 1)));
 $smarty->assign('logo', $this->getLogo(false, true));
 return $this->display(__FILE__, 'column.tpl');
}
public function hookLeftColumn($params)
{
 return $this->hookRightColumn($params);
}

 

Sorry for my English

  • Like 1
Link to comment
Share on other sites

Thank you for taking the time to reply to my post, I appreciate it.

Is there an easier way of doing this as it looks a little complicated for me ( I am not as experienced as you :-)

Best Wishes and please don't apologise for your English, it is very good and 100% better than my Spanish!

Link to comment
Share on other sites

Thank you for taking the time to reply to my post, I appreciate it.

Is there an easier way of doing this as it looks a little complicated for me ( I am not as experienced as you :-)

Best Wishes and please don't apologise for your English, it is very good and 100% better than my Spanish!

 

 

If you simply want to change the image, you can change from FTP, enter the directory of the image that was discussed above.

 

/modules/paypal/img/

 

 

Or just want to remove the image?

 

 

Sorry for my English

  • Like 1
Link to comment
Share on other sites

No I don't want to remove the image, just replace it with another one that's all.

If my new image was called "newimage.jpg' where would I add this in the .tpl file to replace the existing one as discussed above?

I just thought that there would be somewhere in Prestashop Admin that you could do this without having to change the .tpl files.

Thanks again for your help :-)

Link to comment
Share on other sites

No I don't want to remove the image, just replace it with another one that's all.

If my new image was called "newimage.jpg' where would I add this in the .tpl file to replace the existing one as discussed above?

I just thought that there would be somewhere in Prestashop Admin that you could do this without having to change the .tpl files.

Thanks again for your help :-)

 

Simply if you want to change the image, you can place a hand in the file:

 

/modules/paypal/column.tpl

 

Or go one with the same name as the current image directory.

 

 

/modules/paypal/img/vertical_LANG_large.png (default: vertical_US_large.png)

 

 

This image you can not change from the prestashop panel (You must change the way I mentioned me.)

 

 

Sorry for my English

  • Like 1
Link to comment
Share on other sites

Thanks for your help again guys. Do you mean add/name my new image here? ( See attached.)

All the best and thanks for your patience :-)

Not sure if the attached image works but I am talking about Back Office>Modules>Payments & Gateways> Paypal. then this...

 

 

Logos and personalization

 

Logos and personalizations

 

Banner image URL:

The image should be hosted on a secure (https) server. Max: 750x90px.

Template chosen for PayPal Integral Evolution:

A B C

post-341858-0-63185600-1339975019_thumb.png

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

Hi guys,

I have "Yummy" FTP client on my Mac for this so...

Via FTP I simply replace the file /modules/paypal/img/vertical_US_large.png with my new image /modules/paypal/img/MYNEWIMAGE.PNG ?

 

Think I have got it at last hopefully!

Thanks to both of you, you are stars! :-)

Link to comment
Share on other sites

Hi guys,

I have "Yummy" FTP client on my Mac for this so...

Via FTP I simply replace the file /modules/paypal/img/vertical_US_large.png with my new image /modules/paypal/img/MYNEWIMAGE.PNG ?

 

Think I have got it at last hopefully!

Thanks to both of you, you are stars! :-)

 

 

The name of the image must have the same name, just replace it and will be working.

 

Sorry for my English

Link to comment
Share on other sites

Look to line 617 of paypal.php and change the image name there thats all.

You will see this - 'US_vertical' => _MODULE_DIR_.$this->name.'/img/vertical_US_large.png'

 

Just look in the img folder in the paypal module folder find the image you like and change the image name in the line above.

 

So it may look like this US_pp_integral.gif

 

'US_vertical' => _MODULE_DIR_.$this->name.'/img/US_pp_integral.gif'

 

(note the image must be less then 200px wide or it will be croped to the right.)

  • Like 1
Link to comment
Share on other sites

Look to line 617 of paypal.php and change the image name there thats all.

You will see this - 'US_vertical' => _MODULE_DIR_.$this->name.'/img/vertical_US_large.png'

 

Just look in the img folder in the paypal module folder find the image you like and change the image name in the line above.

 

So it may look like this US_pp_integral.gif

 

'US_vertical' => _MODULE_DIR_.$this->name.'/img/US_pp_integral.gif'

 

(note the image must be less then 200px wide or it will be croped to the right.)

 

 

No need to edit the class paypal.php if you go up the file with the same name.

 

 

Sorry for my English

Link to comment
Share on other sites

Thanks for all your help, I will have a go at this tomorrow and let you know how I get on.

I have had a quick look via FTP and am still a bit unsure so to be safe I will sleep on it and visit again tomorrow.

Thanks all :-)

Link to comment
Share on other sites

Thanks for all your help, I will have a go at this tomorrow and let you know how I get on.

I have had a quick look via FTP and am still a bit unsure so to be safe I will sleep on it and visit again tomorrow.

Thanks all :-)

We'll be here all night and all day for you to ask us any questions or concerns you may have to replace the image.

 

Sorry for my English

  • Like 1
Link to comment
Share on other sites

Thanks tdr170,

Look to line 617 of paypal.php and change the image name there thats all.

You will see this - 'US_vertical' => _MODULE_DIR_.$this->name.'/img/vertical_US_large.png'

"Just look in the img folder in the paypal module folder find the image you like and change the image name in the line above.

tdr170, where is this folder and are you saying I can only choose an image from here and not add my own?

Cheers Bud.

 

 

Nadie,

Thanks for your 24 hour support! Unfortunately, I am getting sleepy now as it is 1.18am in the UK and I have a busy day tomorrow so I need to sleep just for a few hours at least. Hopefully I will speak with you again soon.

 

Bill,

Hopefully It will all register tomorrow, thanks for your help.

 

Thanks again to all :-)

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

Look here ../modules/paypal/img there are more paypal images here.

You could also put any image in this folder and use the original name as nadie suggested. (vertical_US_large.png)

Be sure to rename the original first to something like vertical_US_large_back.png or you will overwright it.

Both will take the same amount of time and effort.

Link to comment
Share on other sites

  • 4 months later...

File path image paypal:

/modules/paypal/img/vertical_US_large.png

 

_ES_ if Spain, _IT_, if Italian ect..

 

 

File path where the image charge *.tpl:

 

/modules/paypal/column.tpl

 

<div class="advertising_block">
<p><a href="{$base_dir_ssl}modules/paypal/about.php" rel="nofollow"><img src="{$logo}" alt="PayPal" title="{l s='Pay with PayPal' mod='paypal'}" /></a></p>
</div>

 

In the class paypal.php reference column.tpl

 

public function hookRightColumn($params)
{
 global $smarty, $cookie;

 $smarty->assign('iso_code', Tools::strtolower(Language::getIsoById($cookie->id_lang ? (int)($cookie->id_lang) : 1)));
 $smarty->assign('logo', $this->getLogo(false, true));
 return $this->display(__FILE__, 'column.tpl');
}
public function hookLeftColumn($params)
{
 return $this->hookRightColumn($params);
}

 

Sorry for my English

 

thank for sharing but i can not find this file on the latest version paypal Versi :3.2.5 i need to be remove it and change the image and url. any suggest?

Link to comment
Share on other sites

  • 1 year later...

Hello everyone,

 

I'm using version 1.5.6.1 Prestashop and version 3.6.6 Paypal.

 

After I upgraded module Paypal my logos have disappeared.

 

I can say I changed the next thing in Paypal , process.php , to be able to make payments because of my country's national currency was not accepted by Paypal.

 

My site ( located in my computer)  is in two languages : RO ( Romanian) and EN ( English)

 

define("PAYPAL_FORCE_CURRENCY",2);

 

Here are the two pictures, in which I highlighted the problems to which I refer:

 

https://www.dropbox.com/s/44r5fnkda56dulv/1p.jpg

 

https://www.dropbox.com/s/5d9q8bw1wruq1bl/2p.jpg

 

Thanks to all 

 

--------------------------

Solved

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

  • 11 months later...
  • 1 month later...
  • 3 months later...

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