Delete credit card icons on CART page
-
I have a problem with the credit card icons on my cart page not on my check out page. Under the “Proceed to Checkout” button there are the icons of visa, amex and mc. But this arent all of my payment options, so i wanted to get rid of them. But it seems impossible. I tried to apply some solutions like this:
′add_filter( ‘wc_stripe_payment_icons’, ‘change_my_icons’ );
function change_my_icons( $icons ) {
$icons[‘visa’] = ”;
return $icons;
}′or this
′function rs_removed_icon( $icons ) {
$icons = str_replace( ‘JCB‘, ”, $icons );
$icons = str_replace( ‘Diners‘, ”, $icons );
return $icons;
}
add_filter( ‘woocommerce_gateway_icon’, ‘rs_removed_icon’);′but i dont get it to work.
I am not a developer, so maybe its beyond my capability.
Any ideas on this topic? I can not imagine that i am the only one with this problem.Many thanks in advance ??
### WordPress Environment ### WordPress address (URL): https://www.bikerino.com Site address (URL): https://www.bikerino.com WC Version: 4.8.0 REST API Version: ? 4.8.0 WC Blocks Version: ? 4.2.0 Action Scheduler Version: ? 3.1.6 WC Admin Version: ? 1.7.3 Log Directory Writable: ? WP Version: 5.6 WP Multisite: – WP Memory Limit: 205 MB WP Debug Mode: – WP Cron: ? Language: de_DE External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.4.14 PHP Post Max Size: 256 MB PHP Time Limit: 300 PHP Max Input Vars: 5000 cURL Version: 7.68.0 OpenSSL/1.1.1f SUHOSIN Installed: – MySQL Version: 5.5.5-10.3.27-MariaDB-1:10.3.27+maria~focal Max Upload Size: 256 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 4.8.0 WC Database Prefix: www_ Datenbank-Gesamtgr??e: 27.39MB Datenbank-Datengr??e: 25.20MB Datenbank-Indexgr??e: 2.19MB www_woocommerce_sessions: Daten: 0.06MB + Index: 0.02MB + Engine InnoDB www_woocommerce_api_keys: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB www_woocommerce_attribute_taxonomies: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB www_woocommerce_downloadable_product_permissions: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB www_woocommerce_order_items: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB www_woocommerce_order_itemmeta: Daten: 0.08MB + Index: 0.06MB + Engine InnoDB www_woocommerce_tax_rates: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB www_woocommerce_tax_rate_locations: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB www_woocommerce_shipping_zones: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB www_woocommerce_shipping_zone_locations: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB www_woocommerce_shipping_zone_methods: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB www_woocommerce_payment_tokens: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB www_woocommerce_payment_tokenmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB www_woocommerce_log: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB www_actionscheduler_actions: Daten: 0.11MB + Index: 0.11MB + Engine InnoDB www_actionscheduler_claims: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB www_actionscheduler_groups: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB www_actionscheduler_logs: Daten: 0.08MB + Index: 0.03MB + Engine InnoDB www_cartflows_ca_cart_abandonment: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB www_cartflows_ca_email_history: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB www_cartflows_ca_email_templates: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB www_cartflows_ca_email_templates_meta: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB www_cli_scripts: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB www_cmplz_cookiebanners: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB www_cmplz_cookies: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB www_cmplz_services: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB www_commentmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB www_comments: Daten: 0.06MB + Index: 0.09MB + Engine InnoDB www_links: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB www_ms_snippets: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB www_options: Daten: 4.05MB + Index: 0.28MB + Engine InnoDB www_pimwick_gift_card: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB www_pimwick_gift_card_activity: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB www_postmeta: Daten: 15.30MB + Index: 0.38MB + Engine InnoDB www_posts: Daten: 4.47MB + Index: 0.13MB + Engine InnoDB www_snippets: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB www_termmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB www_terms: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB www_term_relationships: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB www_term_taxonomy: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB www_usermeta: Daten: 0.05MB + Index: 0.03MB + Engine InnoDB www_users: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB www_wc_admin_notes: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB www_wc_admin_note_actions: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB www_wc_category_lookup: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB www_wc_customer_lookup: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB www_wc_download_log: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB www_wc_order_coupon_lookup: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB www_wc_order_product_lookup: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB www_wc_order_stats: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB www_wc_order_tax_lookup: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB www_wc_product_meta_lookup: Daten: 0.02MB + Index: 0.09MB + Engine InnoDB www_wc_reserved_stock: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB www_wc_tax_rate_classes: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB www_wc_webhooks: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB www_wpforms_tasks_meta: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB ### Post Type Counts ### attachment: 119 custom_css: 5 customize_changeset: 13 elementor_library: 4 elementor-hf: 1 nav_menu_item: 3 page: 12 post: 2 product: 8 product_variation: 21 revision: 303 shop_coupon: 3 shop_order: 30 shop_order_refund: 1 wpforms: 1 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (16) ### Starter Templates: von Brainstorm Force – 2.4.0 Code Snippets: von Code Snippets Pro – 2.14.0 Complianz | GDPR/CCPA Cookie Consent: von Really Simple Plugins – 4.9.1 Easy WP SMTP: von wpecommerce alexanderfoxc – 1.4.5 Elementor: von Elementor.com – 3.0.16 Elementor - Header, Footer & Blocks: von Brainstorm Force Nikhil Chavan – 1.5.4 Insert Headers and Footers: von WPBeginner – 1.5.0 Facebook for WordPress: von Facebook – 3.0.0 Printful Integration for WooCommerce: von Printful – 2.1.18 PW WooCommerce Gift Cards: von Pimwick LLC – 1.169 UpdraftPlus – Sichern/Wiederherstellen: von UpdraftPlus.Com DavidAnderson – 1.16.46 WooCommerce Bl?cke: von Automattic – 4.2.0 WooCommerce Stripe-Gateway: von WooCommerce – 4.7.0 WooCommerce: von Automattic – 4.8.0 WP Reset: von WebFactory Ltd – 1.82 WPForms Lite: von WPForms – 1.6.4.1 ### Inactive Plugins (1) ### WooCommerce Cart Abandonment Recovery: von CartFlows Inc – 1.2.8 ### Settings ### API Enabled: – Force SSL: – Currency: EUR (€) Currency Position: right Thousand Separator: . Decimal Separator: , Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) pw gift card (pw-gift-card) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: – ### WC Pages ### Shop-Basis: #8 - /shop/ Warenkorb: ? Die Seite enth?lt nicht den Shortcode. Kasse: ? Die Seite enth?lt nicht den Shortcode. Mein Konto: #11 - /mein-konto/ Allgemeine Gesch?ftsbedingungen: #1898 - /agb/ ### Theme ### Name: Astra Version: 2.6.2 Author URL: https://wpastra.com/about/ Child Theme: ? – Wenn du WooCommerce mit einem Theme das du nicht selbst entwickelt hast an eigene Bedürfnisse anpasst dann empfehlen wir die Verwendung eines Child-Themes. Siehe Wie du ein Child-Theme erstellst (engl.) WooCommerce Support: ? ### Templates ### Overrides: – ### Action Scheduler ### Abgeschlossen: 227 Oldest: 2020-12-14 10:22:29 +0100 Newest: 2021-01-10 12:45:37 +0100 Ausstehend: 3 Oldest: 2021-01-11 11:30:14 +0100 Newest: 2021-01-11 12:45:37 +0100
The page I need help with: [log in to see the link]
- The topic ‘Delete credit card icons on CART page’ is closed to new replies.