Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey Alex,

    We don’t provide customizations to our code but I will try to point you in the right direction. You can use the woocommerce_gateway_icon filter located here: https://github.com/woothemes/woocommerce/blob/2ba902962454fb1bcf5162a06ac39dcbf0769093/includes/abstracts/abstract-wc-payment-gateway.php#L280

    You can programmatically replace it with any image.

    If you aren’t a developer and need help with this I’d reach out to Codeable. They’re great a small modifications like this. I interviewed their CEO about their process and you can read about it here: https://speakinginbytes.com/2014/09/codeable-wordpress-tasks/

    I hope that helps! ??

    In the depreciated paid version of the plugin by Skyverge we could chose a standard icon or one to match the website theme. \

    Adding a check out icon source to the Dashboard Settings UI would be much appreciated by many of us users.

    Thanks

    I have tried to change the icon here

    /**
    * Return the gateway’s icon.
    *
    * @return string
    */
    public function get_icon() {
    $icon = $this->icon ? ‘<img src=”‘ . WC_HTTPS::force_https_url( $this->icon ) . ‘” alt=”‘ . esc_attr( $this->get_title() ) . ‘” />’ : ”;
    return apply_filters( ‘woocommerce_gateway_icon’, $icon, $this->id );
    }

    Instead of

    <img src="' . WC_HTTPS::force_https_url( $this->icon ) . '" alt="' . esc_attr( $this->get_title() ) . '" />

    I have put

    <img src="https://mypath" />

    The image has been published cloase to bank transfer gateway and not close to paypal gateway

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Paypal Payment Options Image’ is closed to new replies.