• Resolved unicco

    (@unicco)


    I can’t find any proper way to change the logos for Viabill and for MobilePay. As far as I can see, there are no filters implemented for changing these.

    Is the only option, at the moment, to change the logos within assets/images folder?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author PerfectSolution

    (@perfectsolution)

    You may use the filter woocommerce_quickpay_checkout_gateway_icon_url which takes two arguments: $icon_url and $icon. You can use $icon to target the specific payment method which in this case will be ‘viabill’.

    add_filter('woocommerce_quickpay_checkout_gateway_icon_url', function ($icon_url, $icon) {
    	if( 'viabill' === $icon ) {
    	    $icon_url = 'xxx';
    	}
    
    	return $icon_url;
    }, 10, 2);
    Thread Starter unicco

    (@unicco)

    The filter is not fired. I guess it due to the fact, that I can’t find that specific filter anywhere in the plugin, nor in my project.

    I’m using QuickPay version: 4.8.2

    Where should this filter be located? As far as I can see, there are no filters which allows me to change the icon.

    You call “add_filter(‘woocommerce_gateway_icon’, array($this, ‘apply_gateway_icons’), 2, 3);”, is this the callback function you’re referring to?

    https://ibb.co/mhhKwR

    • This reply was modified 7 years, 4 months ago by unicco.
    • This reply was modified 7 years, 4 months ago by unicco.
    Plugin Author PerfectSolution

    (@perfectsolution)

    Ah sorry, my bad. I was checking the source of the upcoming version of the plugin. You are right, 4.8.2 is not providing any option out of the box to modify the icons programmatically. This will be a feature in the next version though. For now, you can change the icon file manually via FTP.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Filters for logos’ is closed to new replies.