Flags not displaying in widget
-
The flag icons are not displaying in the widget. For some countries there is an abbreviation where the flag should be (US,EU,JP,GB). For other countries there are just two character squares where the flag should be. The correct country names are displayed and the list of activated countries is correct.
Also, maybe related maybe not, getting a 404 in the browser console that /wp-content/plugins/woocommerce-payments/dist/payment-request.css?ver=2.9.1
-
Hi there @cobra65
I’d be glad to help with this.
Can you confirm if you are using https://www.ads-software.com/plugins/country-flags-for-elementor/ to display these flags?
The 404 error might not be related as these are separate extensions.
I’d also like to better understand your site. Could you please send me a copy of your site’s System Status? You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”. Once you’ve done that, you can paste it here in your response.
Not using Elementor or its flag addon plugin.
Here is the status.
Thanks.
### WordPress Environment ### WC Version: 5.6.0 REST API Version: ? 5.6.0 WC Blocks Version: ? 5.5.1 Action Scheduler Version: ? 3.2.1 WC Admin Version: ? 2.5.1 Log Directory Writable: ? WP Version: 5.8 WP Multisite: – WP Memory Limit: 512 MB WP Debug Mode: – WP Cron: ? Language: en_US External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.4.23 PHP Post Max Size: 8 MB PHP Time Limit: 300 PHP Max Input Vars: 1000 cURL Version: 7.78.0 OpenSSL/1.1.1l SUHOSIN Installed: – MySQL Version: 5.7.35 Max Upload Size: 4 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? Your server does not have the SoapClient class enabled - some gateway plugins which use SOAP may not work as expected. DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 5.6.0 WC Database Prefix: wp_ Total Database Size: 218.11MB Database Data Size: 154.65MB Database Index Size: 63.46MB wp_woocommerce_sessions: Data: 0.03MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_api_keys: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_order_items: Data: 2.49MB + Index: 1.29MB + Engine MyISAM wp_woocommerce_order_itemmeta: Data: 42.20MB + Index: 11.39MB + Engine MyISAM wp_woocommerce_tax_rates: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_actionscheduler_actions: Data: 0.40MB + Index: 0.10MB + Engine MyISAM wp_actionscheduler_claims: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_actionscheduler_groups: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_actionscheduler_logs: Data: 0.18MB + Index: 0.13MB + Engine MyISAM wp_cart_notices: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_commentmeta: Data: 0.44MB + Index: 0.36MB + Engine MyISAM wp_comments: Data: 9.56MB + Index: 3.75MB + Engine MyISAM wp_duplicator_packages: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_faq_termmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_fca_eoi_activity: Data: 3.42MB + Index: 7.80MB + Engine MyISAM wp_fca_eoi_subscribers: Data: 0.72MB + Index: 0.04MB + Engine MyISAM wp_imagify_files: Data: 0.02MB + Index: 0.08MB + Engine InnoDB wp_imagify_folders: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_mailchimp_carts: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_mailchimp_jobs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_options: Data: 3.96MB + Index: 0.19MB + Engine MyISAM wp_postmeta: Data: 44.33MB + Index: 24.28MB + Engine MyISAM wp_posts: Data: 5.77MB + Index: 1.12MB + Engine MyISAM wp_revslider_css: Data: 0.02MB + Index: 0.00MB + Engine MyISAM wp_revslider_layer_animations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_revslider_settings: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_revslider_sliders: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_revslider_slides: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_revslider_static_slides: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_sbi_instagram_feeds_posts: Data: 0.05MB + Index: 0.03MB + Engine MyISAM wp_sbi_instagram_feed_locator: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_sbi_instagram_posts: Data: 1.38MB + Index: 0.01MB + Engine MyISAM wp_smush_dir_images: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_social_users: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_strong_views: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wp_termmeta: Data: 0.01MB + Index: 0.01MB + Engine MyISAM wp_terms: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_term_relationships: Data: 0.03MB + Index: 0.05MB + Engine MyISAM wp_term_taxonomy: Data: 0.01MB + Index: 0.01MB + Engine MyISAM wp_tm_taskmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_tm_tasks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_usermeta: Data: 10.48MB + Index: 5.74MB + Engine MyISAM wp_users: Data: 0.54MB + Index: 0.42MB + Engine MyISAM wp_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine MyISAM wp_wc_admin_note_actions: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wp_wc_category_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_customer_lookup: Data: 0.54MB + Index: 0.40MB + Engine MyISAM wp_wc_download_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_order_bundle_lookup: Data: 0.02MB + Index: 0.08MB + Engine InnoDB wp_wc_order_coupon_lookup: Data: 0.10MB + Index: 0.18MB + Engine MyISAM wp_wc_order_product_lookup: Data: 1.56MB + Index: 1.18MB + Engine MyISAM wp_wc_order_stats: Data: 0.54MB + Index: 0.38MB + Engine MyISAM wp_wc_order_tax_lookup: Data: 0.07MB + Index: 0.08MB + Engine MyISAM wp_wc_product_meta_lookup: Data: 0.01MB + Index: 0.02MB + Engine MyISAM wp_wc_reserved_stock: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_wc_webhooks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_bundled_itemmeta: Data: 0.03MB + Index: 0.03MB + Engine MyISAM wp_woocommerce_bundled_items: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_gc_activity: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_woocommerce_gc_cards: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_woocommerce_pinterest: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_pinterest_boards_mapping: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_pinterest_google_categories_mapping: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_pinterest_google_product_categories: Data: 0.17MB + Index: 0.07MB + Engine MyISAM wp_woocommerce_square_customers: Data: 0.30MB + Index: 0.26MB + Engine MyISAM wp_wpfm_backup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wpmm_subscribers: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_yith_wcaf_affiliates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_yith_wcaf_clicks: Data: 20.97MB + Index: 1.99MB + Engine MyISAM wp_yith_wcaf_commissions: Data: 0.43MB + Index: 0.13MB + Engine MyISAM wp_yith_wcaf_commission_notes: Data: 0.33MB + Index: 0.09MB + Engine MyISAM wp_yith_wcaf_payments: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_yith_wcaf_payment_commission: Data: 0.15MB + Index: 0.09MB + Engine MyISAM wp_yith_wcaf_payment_notes: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_yith_wcwl: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_yoast_indexable: Data: 2.52MB + Index: 0.71MB + Engine MyISAM wp_yoast_indexable_hierarchy: Data: 0.04MB + Index: 0.09MB + Engine MyISAM wp_yoast_migrations: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_yoast_primary_term: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_yoast_seo_links: Data: 0.10MB + Index: 0.03MB + Engine MyISAM wp_yoast_seo_meta: Data: 0.66MB + Index: 0.72MB + Engine MyISAM ### Post Type Counts ### attachment: 875 contactform: 1 custom_css: 2 divi_bars: 1 easy-opt-ins: 2 et_body_layout: 3 et_footer_layout: 1 et_header_layout: 1 et_pb_layout: 45 et_template: 8 et_theme_builder: 1 faq: 5 nav_menu_item: 72 oembed_cache: 14 page: 34 post: 18 product: 90 product_variation: 131 revision: 44 shop_coupon: 760 shop_order: 11806 shop_order_refund: 474 sliders: 1 testimonial: 9 wc_product_tab: 99 wpm-testimonial: 27 wpsl_stores: 8 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (24) ### Cookie Notice & Compliance for GDPR / CCPA: by Hu-manity.co – 2.1.3 Divi Bars: by Divi Life — Tim Strifler – 1.8.6.6 Divi Booster: by Dan Mossop – 3.5.8 Divi Carousel: by DiviGear – 2.0.14 Divi Flipbox Module: by munirkamal – 1.5.0 Google Language Translator: by Translate AI Multilingual Solutions – 6.0.11 Instagram Feed Pro Personal: by Smash Balloon – 5.12 Jetpack: by Automattic – 10.1 User Menus: by Code Atlantic – 1.2.7 WooCommerce Checkout Field Editor: by WooCommerce – 1.6.2 Woocommerce Google Merchant Center Customer Reviews: by WebPerfect.com – 1.1.7 WooCommerce Min and Max Quantities: by BeRocket – 3.0.6.1 WooCommerce Payments: by Automattic – 2.9.1 WooCommerce PayPal Payments: by WooCommerce – 1.5.1 Pinterest for WooCommerce: by premmerce – 2.4.2 WooCommerce Product Bundles: by SomewhereWarm – 6.11.1 (update to version 6.12.0 is available) WooCommerce - ShipStation Integration: by WooCommerce – 4.1.45 WooCommerce Smart Coupons: by StoreApps – 4.18.0 (update to version 4.27.0 is available) WooCommerce Social Login: by SkyVerge – 2.11.0 WooCommerce Square: by WooCommerce – 2.5.3 WooCommerce Tab Manager: by SkyVerge – 1.14.1 WooCommerce: by Automattic – 5.6.0 WP Store Locator: by Tijmen Smit – 2.2.234 YITH WooCommerce Affiliates Premium: by YITH – 1.8.3 ### Inactive Plugins (11) ### Advanced Order Export For WooCommerce: by AlgolPlus – 3.1.9 Better Search Replace: by Delicious Brains – 1.3.4 Divi BodyCommerce: by Divi Engine – 5.3.1 Duplicator: by Snap Creek – 1.4.2 Facebook for WooCommerce: by Facebook – 2.6.4 Imagify: by WP Media – 1.10 Total GDPR Compliance Lite: by AccessPress Themes – 1.0.4 WooCommerce - StampscomEndicia Integration: by Stamps.comEndicia – 2.0.0 WooCommerce Admin: by WooCommerce – 2.5.1 WordPress Users & WooCommerce Customers Import Export(BASIC): by WebToffee – 2.1.9 WP Maintenance Mode: by Designmodo – 2.4.1 ### Dropin Plugins (1) ### advanced-cache.php: advanced-cache.php ### Must Use Plugins (1) ### installatron_hide_status_test.php: by – ### Settings ### API Enabled: ? Force SSL: ? Currency: USD ($) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: bundle (bundle) external (external) grouped (grouped) 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 base: #57872 - /shop/ Cart: #31707 - /cart/ Checkout: #31715 - /checkout/ My account: #31714 - /my-account/ Terms and conditions: #31721 - /terms-of-service/ ### Theme ### Version: 4.2.2.1580251388 Child Theme: ? Parent Theme Name: Divi Parent Theme Version: 4.9.10 Parent Theme Author URL: https://www.elegantthemes.com WooCommerce Support: ? ### Templates ### Overrides: – ### Product Bundles ### Database Version: 6.11.1 Loopback Test: ? Template Overrides: – ### WooCommerce PayPal Payments ### Onboarded: Yes Shop country code: US PayPal card processing available in country: Yes Pay Later messaging available in country: Yes Vault enabled: No ### Square ### Environment: Production Tokenization Enabled: ? Debug Mode: Off ### Social Login ### Facebook: ? Available Twitter: ? Available Google: Disabled Amazon: Disabled Linkedin: Disabled Paypal: Disabled Disqus: Disabled Yahoo: Disabled Vkontakte: Disabled ### Action Scheduler ### Complete: 874 Oldest: 2021-08-07 20:21:03 -0700 Newest: 2021-09-07 19:24:23 -0700 Pending: 3 Oldest: 2021-09-07 20:21:05 -0700 Newest: 2021-09-12 12:30:13 -0700 ### Status report information ### Generated at: 2021-09-07 19:25:28 -07:00
Hello @cobra65,
Thanks for sharing the SSR. Could you please also provide us with a screenshot so that we can see what you are describing?
If you don’t already have a screenshot service installed, here are a few free options:
* https://snipboard.io
* https://skitch.com/
* https://getcloudapp.com/
* https://awesomescreenshot.com/There is also a walkthrough guide here: https://en.support.wordpress.com/make-a-screenshot/
We will be standing by for your response. Also, please don’t hesitate to reach out if you have any further questions, we are here to help.
Here ya go.
Hey @cobra65
Would you be able to share a link to your site, so we can see the issue first-hand?
I turned off all plugins except WC and WC Payments, problem is still present. Attached is URL where you can see the widget in action.
Hi @cobra65 ??
I checked that page out on my end, and the flags load fine for me using Chrome Version 93: https://d.pr/i/zP6PTI
Have you managed to resolve the problem?
If not, could you please test how it loads in a different browser or Incognito Tab?
Let me know how it goes ??
Thanks for the tip, I tried it in Firefox and it works. But strangely…
Firefox v91, each option has nested font tags:
<option value=”USD”><font style=”vertical-align: inherit;”><font style=”vertical-align: inherit;”>???? $ USD</font></font></option>While Chrome v93, no font tags:
<option value=”USD”>???? $ USD</option>Also note, in the line above, directly pasted from Chrome dev tools, the letters US appear in Chrome where the flag is. So even in this form Firefox is correctly displaying the icon.
Where do these icons come from and why are they missing in my Chrome?
Thanks much for all the help.
Hi there,
Checking on my end, I’m seeing them display the flags without issue in both Chrome and Firefox. Also, I’m not seeing those nested
font
tags that you mentioned — they appear the same in both browsers.Firefox:
Link to image: https://d.pr/i/CJ7CNI
Link to image: https://d.pr/i/tqNuOQChrome:
Link to image: https://d.pr/i/lFeVvh
Link to image: https://d.pr/i/4pcqj8The WooCommerce Payments extension has a
display_currency_option
function used by the Currency Switcher Widget, which calls aget_symbol()
function that grabs the flag emojis from this file here:
https://github.com/Automattic/woocommerce-payments/blob/develop/includes/multi-currency/CountryFlags.phpIt’s possible something in the version of your browser, or a setting, or browser extension/plugin might be causing emojis to render differently. I’m currently on Firefox
92.0 (64-bit)
, so you could try updating to see if that makes a difference (you mentioned you are on v91). Aside from that though, it’s hard to say why you might be seeing something different.We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.
I have checked this on three Windows computers (Win7 and Win10) and the flags do not display at all in Chrome. On those same computers Firefox displays the flags.
Is there something inherent that Chrome is missing on Windows?
Hey @cobra65,
Is there something inherent that Chrome is missing on Windows?
It looks like most of or all of us testing so far are not on Windows7 or 10.
I’ll leave this open for other forum members to test and update you.
- The topic ‘Flags not displaying in widget’ is closed to new replies.