• Resolved Saskia

    (@arevanished)


    Plugin version 3.7.1

    When entering a credit card number on the payment page, an icon should appear which indicates the card type. This icon is not appearing.

    I tracked this error down to an incorrect URL in the class-wc-gateway-eway.php file.
    Line 746 shows:
    $card_image_url = WC()->plugin_url() . “/dist/images/icons/credit-cards/{$card_image_filename}.png”;

    To fix the problem, I changed it to this:
    $card_image_url = WC()->plugin_url() . “/assets/images/icons/credit-cards/{$card_image_filename}.png”;

    The above URL loads the image from the Woocommerce plugin folder, not the Eway Gateway plugin folder. Since there is no dist folder in Woocommerce, it should be assets.

    • This topic was modified 12 months ago by Saskia. Reason: Added plugin version
    • This topic was modified 12 months ago by Saskia.
Viewing 1 replies (of 1 total)
  • anastas10s

    (@anastas10s)

    Hey there @arevanished,

    Thank you so much for adding your input! Some of our customers might indeed find this guide helpful!

    We appreciate you being an active part of the community ??

    Have a wonderful day!

Viewing 1 replies (of 1 total)
  • The topic ‘Credit card icon missing on card number input field’ is closed to new replies.