Support » Plugin: ING PSP » Payment gateway images not shown at checkout

  • Resolved vanetreg

    (@vanetreg)


    Hi,

    when checkout, payment gateway images are not displayed properly.
    Pls. note I serve images from a cookieless subdomain available at:
    static.mydomain.com
    It is a best practice for performance improvement reasons to serve javascript, css and images from a different subdomain (than cookie subdomain, which is usually “www”),
    serving wp-content directory’s content from that subdomain “static”.

    I think in some of the plugin’s files the image URLs are hardcoded to eg.:
    www.mydomain.com/plugins/ing-psp/images/ingpsp_ideal.png
    instead of checking the proper wp-content URL, which is:
    static.mydomain.com/plugins/ing-psp/images/ingpsp_ideal.png

    So could you name in which files should I modify these URLs?
    I searched for this URL string in most of them I supposed I should, but I haven’t found it.

    Thank you,
    Best regards,
    V.

    • This topic was modified 1 year, 1 month ago by vanetreg.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author ingpsp

    (@ingpsp)

    Hi,

    Please check the class-wc-ingpsp-helper.php

        public static function getIconSource($method)
        {
            if (in_array($method, self::$PAYMENT_METHODS)) {
                return '<img src="'.WC_HTTPS::force_https_url(plugins_url()."/ing-psp/images/{$method}.png").'" />';
            }
        }
    salvosaccullo

    (@salvosaccullo)

    hi i need chat with Vanetreg for plugin

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Payment gateway images not shown at checkout’ is closed to new replies.