Credit card icon missing on card number input field
-
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.
- The topic ‘Credit card icon missing on card number input field’ is closed to new replies.