Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter 561websitedesign

    (@561websitedesign)

    I would like the credit card option field to say on check out page: Credit Card [LOGO IMAGES HERE]

    Looking forward to your reply

    Plugin Support mbrsolution

    (@mbrsolution)

    Hi, thank you for contacting us. I have submitted a message to the developers to investigate further your request.

    Kind regards

    Thread Starter 561websitedesign

    (@561websitedesign)

    Thanks so much! So it will have text then an image next to it.

    Credit Card Payment (Logo image of cards)

    Plugin Author wp.insider

    (@wpinsider-1)

    I have just released an updated version where it will show a credit card logo next to the radio selection button.

    You can also use a custom version of the logo/image by using the following filter:

    wcpprog_checkout_icon

    Example snippet of code below (this code hasn’t been tested, it is only to demonstrate how the filter can be used):

    
    function change_the_checkout_logo_image($image_url){
        $image_url = 'https://example.com/my-logo.jpg;
        return $image_url;
    }
    add_filter('wcpprog_checkout_icon', 'change_the_checkout_logo_image');
    
    • This reply was modified 4 years, 11 months ago by wp.insider.
    Thread Starter 561websitedesign

    (@561websitedesign)

    Hi and thank you so much! I am getting an error…

    Your PHP code changes were rolled back due to an error on line 46 of file wp-content/themes/salient-child/functions.php. Please fix and try saving again.

    syntax error, unexpected ‘wcpprog_checkout_icon’ (T_STRING)

    ————-

    function change_the_checkout_logo_image($image_url){
    $image_url = ‘/wp-content/uploads/2019/12/credit-card-logos-png-1.png;
    return $image_url;
    }
    add_filter(‘wcpprog_checkout_icon’, ‘change_the_checkout_logo_image’);

    ?>

    Thread Starter 561websitedesign

    (@561websitedesign)

    Do I need to use the new plugin?

    Plugin Author wp.insider

    (@wpinsider-1)

    Yes, that filter is only available in the new version. So please upgrade it.

    Your image URL looks wrong. A URL value must contain the “https” keyword in there. So for example the following would be a valid URL:

    https://example.com/wp-content/uploads/2019/12/credit-card-logos-png-1.png

    Also, the code has a little mistake. It is missing a quote at the end. Below is a corrected code sample:

    
    function change_the_checkout_logo_image($image_url){
    $image_url = 'https://example.com/wp-content/uploads/2019/12/credit-card-logos-png-1.png';
    return $image_url;
    }
    add_filter('wcpprog_checkout_icon', 'change_the_checkout_logo_image');
    
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Credit Card Payment “Credit Card Logos Images”’ is closed to new replies.