• Resolved orion1212

    (@orion1212)


    Hi, 

    I would like first to thank you for this awesome plugin!

    I just have a small error made by the automatic currency redirect. 

    I have the same issue as this topic.

    People are getting redirected to $AUD even if they live far away. 

    Would you know how to solve the issue?

    Here is the system report:

    ### WordPress Environment ###
    
    WordPress address (URL): XXXXX
    
    Site address (URL): XXXXXXX
    
    WC Version: 7.1.1
    
    REST API Version: ✔ 7.1.1
    
    WC Blocks Version: ✔ 8.7.6
    
    Action Scheduler Version: ✔ 3.4.0
    
    Log Directory Writable: ✔
    
    WP Version: 6.1.1
    
    WP Multisite: –
    
    WP Memory Limit: 512 MB
    
    WP Debug Mode: –
    
    WP Cron: ✔
    
    Language: en_US
    
    External object cache: ✔
    
    ### Server Environment ###
    
    Server Info: Apache/2.4.54 (Debian)
    
    PHP Version: 8.0.20
    
    PHP Post Max Size: 100 MB
    
    PHP Time Limit: 720
    
    PHP Max Input Vars: 10000
    
    cURL Version: 7.64.0
    
    OpenSSL/1.1.1n
    
    SUHOSIN Installed: –
    
    MySQL Version: 10.4.20-MariaDB-1:10.4.20+maria~buster-log
    
    Max Upload Size: 100 MB
    
    Default Timezone is UTC: ✔
    
    fsockopen/cURL: ✔
    
    SoapClient: ✔
    
    DOMDocument: ✔
    
    GZip: ✔
    
    Multibyte String: ✔
    
    Remote Post: ✔
    
    Remote Get: ✔
    
    ### Database ###
    
    WC Database Version: 7.1.1
    
    WC Database Prefix: wp_
    
    Total Database Size: 31.67MB
    
    Database Data Size: 27.67MB
    
    Database Index Size: 4.00MB
    
    wp_woocommerce_sessions: Data: 0.16MB + Index: 0.02MB + Engine InnoDB
    
    wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    
    wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    
    wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    
    wp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    
    wp_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    
    wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    
    wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    
    wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    
    wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    
    wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    
    wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    
    wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    
    wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    
    wp_actionscheduler_actions: Data: 0.17MB + Index: 0.14MB + Engine InnoDB
    
    wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    
    wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    
    wp_actionscheduler_logs: Data: 0.13MB + Index: 0.11MB + Engine InnoDB
    
    wp_bv_fw_requests: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    
    wp_bv_ip_store: Data: 0.17MB + Index: 0.17MB + Engine InnoDB
    
    wp_bv_lp_requests: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    
    wp_bw_pricing_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    
    wp_cli_cookie_scan: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    
    wp_cli_cookie_scan_categories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    
    wp_cli_cookie_scan_cookies: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    
    wp_cli_cookie_scan_url: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    
    wp_cli_scripts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    
    wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    
    wp_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    
    wp_gla_attribute_mapping_rules: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    
    wp_gla_budget_recommendations: Data: 0.22MB + Index: 0.14MB + Engine InnoDB
    
    wp_gla_merchant_issues: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
    
    wp_gla_shipping_rates: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    
    wp_gla_shipping_times: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    
    wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    
    wp_mailpoet_custom_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    
    wp_mailpoet_dynamic_segment_filters: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    
    wp_mailpoet_feature_flags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    
    wp_mailpoet_forms: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    
    wp_mailpoet_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    
    wp_mailpoet_mapping_to_external_entities: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    
    wp_mailpoet_newsletters: Data: 0.03MB + Index: 0.03MB + Engine InnoDB
    
    wp_mailpoet_newsletter_links: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    
    wp_mailpoet_newsletter_option: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    
    wp_mailpoet_newsletter_option_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    
    wp_mailpoet_newsletter_posts: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    
    wp_mailpoet_newsletter_segment: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    
    wp_mailpoet_newsletter_templates: Data: 2.06MB + Index: 0.00MB + Engine InnoDB
    
    wp_mailpoet_scheduled_tasks: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    
    wp_mailpoet_scheduled_task_subscribers: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    
    wp_mailpoet_segments: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    
    wp_mailpoet_sending_queues: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    
    wp_mailpoet_settings: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    
    wp_mailpoet_statistics_bounces: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    
    wp_mailpoet_statistics_clicks: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    
    wp_mailpoet_statistics_forms: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    
    wp_mailpoet_statistics_newsletters: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    
    wp_mailpoet_statistics_opens: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    
    wp_mailpoet_statistics_unsubscribes: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    
    wp_mailpoet_statistics_woocommerce_purchases: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    
    wp_mailpoet_stats_notifications: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    
    wp_mailpoet_subscribers: Data: 0.02MB + Index: 0.13MB + Engine InnoDB
    
    wp_mailpoet_subscriber_custom_field: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    
    wp_mailpoet_subscriber_ips: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    
    wp_mailpoet_subscriber_segment: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    
    wp_mailpoet_user_agents: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    
    wp_mailpoet_user_flags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    
    wp_nextend2_image_storage: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    
    wp_nextend2_section_storage: Data: 0.03MB + Index: 0.06MB + Engine InnoDB
    
    wp_nextend2_smartslider3_generators: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    
    wp_nextend2_smartslider3_sliders: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
    
    wp_nextend2_smartslider3_sliders_xref: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    
    wp_nextend2_smartslider3_slides: Data: 0.05MB + Index: 0.11MB + Engine InnoDB
    
    wp_options: Data: 4.25MB + Index: 0.16MB + Engine InnoDB
    
    wp_postmeta: Data: 3.14MB + Index: 0.52MB + Engine InnoDB
    
    wp_posts: Data: 15.17MB + Index: 0.22MB + Engine InnoDB
    
    wp_smush_dir_images: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    
    wp_snippets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    
    wp_termmeta: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
    
    wp_terms: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
    
    wp_term_relationships: Data: 0.09MB + Index: 0.06MB + Engine InnoDB
    
    wp_term_taxonomy: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
    
    wp_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    
    wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    
    wp_wc_admin_notes: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    
    wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    
    wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    
    wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    
    wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    
    wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    
    wp_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    
    wp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    
    wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    
    wp_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    
    wp_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    
    wp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    
    wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    
    wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    
    wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    
    wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    
    wp_wpmailsmtp_debug_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    
    wp_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    
    ### Post Type Counts ###
    
    attachment: 391
    
    cookielawinfo: 6
    
    custom_css: 2
    
    customize_changeset: 23
    
    mailpoet_page: 1
    
    nav_menu_item: 89
    
    page: 25
    
    polylang_mo: 2
    
    post: 10
    
    product: 69
    
    revision: 192
    
    wp_block: 37
    
    wp_global_styles: 5
    
    wp_navigation: 1
    
    wp_template: 1
    
    wp_template_part: 1
    
    ### Security ###
    
    Secure connection (HTTPS): ✔
    
    Hide errors from visitors: ✔
    
    ### Active Plugins (12) ###
    
    Polylang Pro: by WP SYNTEX – 3.2.8
    
    The SEO Framework: by The SEO Framework Team – 4.2.7.1
    
    Blocks Animation: CSS Animations for Gutenberg Blocks: by ThemeIsle – 2.1.6
    
    Boxtal Connect: by API Boxtal – 1.2.14
    
    Kadence Blocks – Gutenberg Blocks for Page Builder Features: by Kadence WP – 2.4.22
    
    Polylang for WooCommerce: by WP SYNTEX – 1.7
    
    W3 Total Cache: by BoldGrid – 2.2.9
    
    WooCommerce Payments: by Automattic – 5.1.2
    
    WooCommerce Shipping & Tax: by WooCommerce – 2.1.0
    
    WooCommerce: by Automattic – 7.1.1 (update to version 7.2.0 is available)
    
    WP Mail SMTP: by WPForms – 3.6.1
    
    Smush: by WPMU DEV – 3.12.4
    
    ### Inactive Plugins (2) ###
    
    Advanced Database Cleaner: by Younes JFR. – 3.1.1
    
    Google Listings and Ads: by WooCommerce – 2.3.1
    
    ### Dropin Plugins (3) ###
    
    advanced-cache.php: advanced-cache.php
    
    db.php: db.php
    
    object-cache.php: object-cache.php
    
    ### Settings ###
    
    API Enabled: –
    
    Force SSL: –
    
    Currency: EUR (€)
    
    Currency Position: right_space
    
    Thousand Separator: 
    
    Decimal Separator: ,
    
    Number of Decimals: 2
    
    Taxonomies: Product Types: 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: –
    
    Enforce Approved Product Download Directories: –
    
    ### WC Pages ###
    
    Shop base: #14525 - /fr/boutique/
    
    Cart: ❌ Page does not contain the [woocommerce_cart] shortcode or the woocommerce/cart block.
    
    Checkout: #8 - /fr/commande/
    
    My account: #9 - /fr/mon-compte/
    
    Terms and conditions: #1636 - /terms-of-use/
    
    ### Theme ###
    
    Name: Kadence Child
    
    Version: 1.0.0
    
    Author URL: https://www.kadencewp.com/
    
    Child Theme: ✔
    
    Parent Theme Name: Kadence
    
    Parent Theme Version: 1.1.31
    
    Parent Theme Author URL: https://www.kadencewp.com/
    
    WooCommerce Support: ✔
    
    ### Templates ###
    
    Overrides: kadence-child/woocommerce/emails/customer-note.php
    
    kadence-child/woocommerce/emails/customer-processing-order.php
    
    ### WC Pages Translations ###
    
    Shop base: ✔
    
    Cart: ❌ The shortcode is missing for the translation in English
    
    Checkout: ✔
    
    My account: ✔
    
    ### Admin ###
    
    Enabled Features: activity-panels
    
    analytics
    
    coupons
    
    customer-effort-score-tracks
    
    experimental-products-task
    
    experimental-import-products-task
    
    experimental-fashion-sample-products
    
    shipping-smart-defaults
    
    shipping-setting-tour
    
    homescreen
    
    marketing
    
    multichannel-marketing
    
    mobile-app-banner
    
    navigation
    
    onboarding
    
    onboarding-tasks
    
    remote-inbox-notifications
    
    remote-free-extensions
    
    payment-gateway-suggestions
    
    shipping-label-banner
    
    subscriptions
    
    store-alerts
    
    transient-notices
    
    woo-mobile-welcome
    
    wc-pay-promotion
    
    wc-pay-welcome-page
    
    Disabled Features: minified-js
    
    new-product-management-experience
    
    settings
    
    Daily Cron: ✔ Next scheduled: 2022-12-16 14:31:08 +01:00
    
    Options: ✔
    
    Notes: 24
    
    Onboarding: completed
    
    ### WooCommerce Payments ###
    
    Version: 5.1.2
    
    Connected to WPCOM: Yes
    
    Blog ID: XXXXX
    
    Account ID: XXXXXX
    
    ### Action Scheduler ###
    
    Complete: 306
    
    Oldest: 2022-11-15 20:26:39 +0100
    
    Newest: 2022-12-16 11:23:55 +0100
    
    Failed: 101
    
    Oldest: 2022-09-02 10:22:31 +0200
    
    Newest: 2022-11-24 15:19:36 +0100
    
    Pending: 3
    
    Oldest: 2022-12-16 19:11:46 +0100
    
    Newest: 2022-12-22 15:29:07 +0100
    
    ### Status report information ###
    
    Generated at: 2022-12-16 12:14:49 +01:00

    Thanks !

    • This topic was modified 1 year, 4 months ago by orion1212.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Saif

    (@babylon1999)

    Hello @orion1212,

    Can you please elaborate more? Is the problem happening to you also one or two customers?

    If you have enabled the “Automatically switch customers to their local currency if it has been enabled” setting, WooCommerce Payments will attempt to determine which country each customer is in, and then show them the appropriate currency.

    So if the customer has an Australian VPN or their ISP is routed to Australia for some reason, then it’s normal $AUD will be selected.

    That said, you can try disabling the caching plugin W3 Total Cache: by BoldGrid – 2.2.9 and see if that makes a difference.

    Look forward to hearing back from you.



    Thread Starter orion1212

    (@orion1212)

    Hi Saif,

    It’s a problem with my own website.

    The setting ““Automatically switch customers to their local currency ” is enabled. 

    I tested the website using various VPNs from various regions, and the problem remained the same.

    It has to do with caching. Basically, if I choose AU while clearing the cache on my website, it will (I believe) rebuild the cache using this currency and serve $AUD to any new visitors regardless of their location.

    For me, having both a caching plugin and supporting several currencies is crucial.

    I tried so far to:

    • Exclude currency cookies from being cached: It stop the caching support on all the pages where the cookies are = all my pages
    • Ajax localization / geolocate with caching support: It works but it slows the website and it’s not pretty. Users can see an additional query string in the url v=xxxxx it feels scammy and deteriorates performances

    Does the Automatic switch of currency support caching plugins natively? Certains plugins or settings?  

    Thanks for the support! 

    Adam.

    Plugin Support anastas10s (woo-hc)

    (@anastas10s)

    Howdy @orion1212

    It has to do with caching. Basically, if I choose AU while clearing the cache on my website, it will (I believe) rebuild the cache using this currency and serve $AUD to any new visitors regardless of their location.

    There are various caching mechanisms in place, it seems:

    W3 Total Cache: by BoldGrid – 2.2.9

    +

    ### Dropin Plugins (3) ### 

    advanced-cache.php: advanced-cache.php 
    db.php: db.php 
    object-cache.php: object-cache.php

    Could you try with temporarily clearing & disabling all server-side, browser & CDN cache, before trying again? As I see from the store’s System Status Report (SSR), the currency is set to EURO. See if the issue persists after disabling all caches.

    If not, I suggest getting in touch with the store’s host, along with the other caching mechanism providers, for fine-tuning the settings there.

    Let us know how that goes.

    Thread Starter orion1212

    (@orion1212)

    Hi, sorry for the late reply.

    Yes, we do have various caching systems in place, mainly cloudflare, W3TC and Varnish.

    So if I understood well, the currency switcher should work with a cached website right ?

    Thanks

    Saif

    (@babylon1999)

    Hello @orion1212,

    So if I understood well, the currency switcher should work with a cached website right ?

    Yes, the function should work fine but what is meant above is that you have more than one caching system so they might be causing a conflict.

    Have you tried disabling all caching plugins (even ones from your host) and checking if that fixes the problem?

    Also, may I ask if you’re sure that you have more than one currency added as mentioned in the documentation?

    Let us know how it goes!

    Thread Starter orion1212

    (@orion1212)

    Hi Saif,

    Thanks for your patience! 

    I was making sure it was supposed to work, because I can only test it on a production website. Caching issues cannot be efficiently tested on my  staging version.

    I do have more than one currency added in Woocommerce / Settings / Multi-currency. The currency switch is working very well. The only problem is the automatic currency switch that doesn’t like my config for some reasons. 

    I will be testing each  caching plugins this week before getting back to you.

    Thanks!

    Hi @orion1212

    Great to hear this! Let us know how the testing goes!

    Cheers!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Currency switcher automatic redirecting to $AU’ is closed to new replies.