Tue. Jul 2nd, 2024

11. Magento. How to remove/change the PayPal logo

2 min read

In this tutorial we will show you on how to remove and replace the PayPal logo on Magento home page:

image1

  1. Let’s log into magento admin panel and navigate to the following PayPal configuration section:
    1. System->Configuration:

      image2

    2. Payment Methods:

      image4

    3. Paypal All in one payments solutions-> Paypal Payments Advanced (includes express checkout)-> Basic settings paypal payments advanced-> Frontend Experience settings -> Paypal Product Logo. Set “PayPal Product Logo” to “No logo.” and Save Config in the top right:

      image3

    We are done with this. Just save your configuration and flush your magento cache from the admin or go to var / cache directory and manually remove all the files. Then refresh your home page. You can find paypal logo is removed from magento home page.

  2. Paypal logo has several variants of image which can be found in the same settings of:
    1. System->Configuration.
    2. Payment Methods:

      image31

    3. Paypal All in one payments solutions-> Paypal Payments Advanced (includes express checkout)-> Basic settings paypal payments advanced-> Frontend Experience settings -> Paypal Product Logo. Change “PayPal Product Logo” to the one you need and Save Config in the top right.

    We are done with this. Just save your configuration and flush your magento cache from the admin or go to var / cache directory and manually remove all the files. Then refresh your home page. You can find paypal logo is changed.

  3. If you want to replace the logo image with your own, please, copy logo.html file from the app/design/frontend/base/default/template/paypal/partner directory of Magento installation using FTP or Cpanel to app/design/frontend/default/themeXXX/template/paypal/partner folder.

    Please don’t edit “app/design/frontend/base/default/template/paypal/partner/logo.html” directly, but only after copying it to the current theme folder. Note, you will need to create “paypal” and “partner” folder inside of it in case it’s missing.

    Here you can change the img src code.Here is the part of the coding you need to edit:

    1
    2
    3
    4
    5
    <div class=”paypal-logo”>
    <a href=”#” title=”<?php echo Mage::helper(‘paypal’)->__(‘Additional Options’) ?>” onclick=”javascript:window.open(‘<?php echo $this->getAboutPaypalPageUrl() ?>’,’paypal’,’width=600,height=350,left=0,top=0,location=no,status=yes,scrollbars=yes,resizable=yes’); return false;”>
    <img src=”<?php echo $this->escapeHtml($this->getLogoImageUrl()) ?>” alt=”<?php echo Mage::helper(‘paypal’)->__(‘Additional Options’) ?>” title=”<?php echo Mage::helper(‘paypal’)->__(‘Additional Options’) ?>” />
    </a>
    </div>

    You can change image source here:

    1
    <img src=”<?php echo $this->escapeHtml($this->getLogoImageUrl()) ?>”

    Also, you need to upload your new logo to server, lets call it paypal-logo.jpg, you can upload it to the root folder, and use its source URL like this:

    1
    <img src=”http://your-website.com/paypal-logo.(file format)” />

    Just replace:

    1
    <img src=”<?php echo $this->escapeHtml($this->getLogoImageUrl()) ?>”

    with:

    1
    <img src=”http://your-website.com/paypal-logo.(file format)” />

    It means you need to replace the code in quotations, “escapeHtml($this->getLogoImageUrl()) ?>” with the path of your image.

    Save changes to the file, flush your magento cache from the admin or go to var / cache directory and manually remove all the files. Then refresh your home page. You can find paypal logo is changed from magento home page.

July 2024
M T W T F S S
« Jun    
1234567
891011121314
15161718192021
22232425262728
293031