cancel
Showing results for 
Search instead for 
Did you mean: 

Add a VISA logo next to PayPal Pro direct payment

Add a VISA logo next to PayPal Pro direct payment

I just set up PayPal Pro direct payment in my magento. Now the "checkout" has two options:

PayPal and Direct Payment (VISA MC etc) options (also provided by PayPall pro). For the PayPal option it has a PayPal logo.

For the direct payment it has no logos.

I've tried to change the frontend experience settings, but nothing helps.My goal is to insert VISA Master Card logos right next to the VISA MC option.

Also I have tried to customize checkout page at manager.paypal.com but that doesn't hep either.

2 REPLIES 2

Re: Add a VISA logo next to PayPal Pro direct payment

hi @mahsud19

 

 There is no setting for that i think you have to modify
template/checkout/onepage/payment/methods.phtml
and add this code after </label>

if($_code=='')
{ ?>
<img src='<?php $this->getSkinURl('images/image.png');?>' /> 
<?php
}

 

Find helpful ? Consider Giving Kudos to this post.
Problem solved? Click Accept as Solution!"
Qaisar Satti

Re: Add a VISA logo next to PayPal Pro direct payment

To add the VISA and Mastercard logos next to the Direct Payment option in Magento using PayPal Pro, you can modify the payment template file to include the logos. Here are the steps to do that:

  1. Go to the following path in your Magento installation: app/design/frontend/{your_theme}/{your_child_theme}/template/payment/form/paypal.phtml

    Note: If you don't have a child theme, you can make a copy of the paypal.phtml file to your main theme's directory instead.

    1. Make a backup of the paypal.phtml file in case something goes wrong.

    2. Open the paypal.phtml file and find the following line of code:

      <input type="radio" name="payment[method]" value="paypal_express" id="p_method_paypal_express" <?php if ($methodSelected == 'paypal_express'): ?>checked="checked"<?php endif; ?> class="radio" />

       

      To add the VISA and Mastercard logos next to the Direct Payment option in Magento using PayPal Pro, you can modify the payment template file to include the logos. Here are the steps to do that:

      1. Go to the following path in your Magento installation: app/design/frontend/{your_theme}/{your_child_theme}/template/payment/form/paypal.phtml

        Note: If you don't have a child theme, you can make a copy of the paypal.phtml file to your main theme's directory instead.

        1. Make a backup of the paypal.phtml file in case something goes wrong.

        2. Open the paypal.phtml file and find the following line of code:

           

          phpCopy code
          <input type="radio" name="payment[method]" value="paypal_express" id="p_method_paypal_express" <?php if ($methodSelected == 'paypal_express'): ?>checked="checked"<?php endif; ?> class="radio" />
           
          1. Below that line, add the following code:

             

            <label for="p_method_direct"><img src="https://www.example.com/path/to/visa-logo.png" alt="VISA" /></label>
            <input type="radio" name="payment[method]" value="paypal_direct" id="p_method_direct" <?php if ($methodSelected == 'paypal_direct'): ?>checked="checked"<?php endif; ?> class="radio" />
            <label for="p_method_direct"><img src="https://www.example.com/path/to/mastercard-logo.png" alt="Mastercard" /></label>

             

            Note: Replace https://www.example.com/path/to/visa-logo.png and https://www.example.com/path/to/mastercard-logo.png with the actual URLs of your VISA and Mastercard...

            1. Save the paypal.phtml file and clear your Magento cache.

            2. Check your Magento checkout page to see if the VISA and Mastercard logos are now displayed next to the Direct Payment option.

              If you have any trouble following these steps, you can consult the Magento documentation or contact their support team for further assistance. Source migrationunity.com

            3.  

        3.  

    3.