• Resolved alfonsomellone

    (@alfonsomellone)


    Hi,
    I’m currently developing an e-commerce store with WooCommerce and have set up the multi-currency feature. The store is configured with three currencies: Euro (default), USD, and AUD.

    I’ve noticed an issue with currency conversion in the cart. I have two admin accounts, and the behavior differs between them:

    • When I add a product to the cart with the first admin account, the conversion from Euro to USD or AUD works correctly, and the displayed currency is as expected.
    • When I add the same product to the cart with the second admin account, the cart icon at the top right shows the correct amount but with the wrong currency (always in Euro). Additionally, the cart itself displays incorrect amounts in Euro.

    I have already cleared the cache, but the issue persists. Both admin accounts have no billing details set, so I don’t think that’s the cause.

    Here are the details of my setup:

    • WordPress version: 6.7.2
    • WooCommerce version: 9.6.2
    • WooCommerce Multilingual & Multicurrency version: 5.3.9
    • Theme: Woodmart version 8.0.6

    Could you help me understand what might be causing this issue and how to fix it?

    Thanks for your support!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Nicolas V.

    (@nicolasviallet)

    Hi Alfonso,

    Any differences between the two admin accounts? Are you logging in from the same location, device and browser?

    Does the issue also occur for guest users? If so, can you share a link to check?

    It could be caused by a custom AJAX action not being filtered properly. Can you try switching to a default theme like Twenty Twenty or Storefront to test?

    Let me know what you find.

    Thread Starter alfonsomellone

    (@alfonsomellone)

    Hi Nicolas,

    There are no differences between the two admin accounts, and I am logging in from the same device, location, and browser.

    Since the site is still in development, I can’t share a public link, but I can provide backend access privately if needed.

    I tested with the Twenty Twenty-Five theme, and everything works correctly. However, when using the Woodmart theme, the issue occurs. The theme developers claim that the cause is not related to the theme itself but to a plugin with WooCommerce.

    Can you let me know how I should proceed to resolve the issue?

    Thanks and best regards,

    Alfonso

    Plugin Support Nicolas V.

    (@nicolasviallet)

    Hi @alfonsomellone,

    Thanks for testing with a default theme! That helps us narrow down where to focus our efforts. ??

    1. Since the issue only affects one account, it might be related to the WooCommerce session. Could you try adding the following code to your functions.php file?

    // Use Cookie instead of WCSession
    add_filter( 'wcml_user_store_strategy', function ( $strategy, $key ) {
    return 'cookie';
    }, 10, 2 );

    2. As mentioned, the issue could also be linked to an AJAX action. The tricky part is that it only occurs for one account. To help troubleshoot, I’ve set up the following sandbox site: https://exclusive-horn.sandbox.otgs.work/?auto=1beyUcjdua5gb7Q3i9IzIehvm9loSdOB

      Let me know when it’s done and we’ll investigate the issue.

      Thread Starter alfonsomellone

      (@alfonsomellone)

      Hi Nicolas,

      I wanted to update you on the issue I was experiencing. It seems that the problem was caused by the YITH Request a Quote for WooCommerce Premium plugin. After deactivating and then reactivating it, the issue appeared to be resolved, as if the conversion and currencies had undergone a reset and realignment. Everything is now working correctly, but I’m not sure if the problem might occur again in the future. We’re still investigating.

      If you are aware of any incompatibility between WooCommerce Multilingual & Multicurrency with WPML and YITH Request a Quote for WooCommerce Premium, please let me know.

      I truly appreciate your support. Thank you so much!

      Plugin Support Nicolas V.

      (@nicolasviallet)

      Hi Alonso,

      Thanks for your feedback. I couldn’t find any recent tickets regarding the YITH Request a Quote for WooCommerce Premium plugin. The last reported issues were related to strings not being translated, but these have been resolved in recent versions of the plugin.

      If you have clear steps to reproduce the issue, could you please share them? I’ll test it on a sandbox site and escalate it to our developers for further investigation.

      Thread Starter alfonsomellone

      (@alfonsomellone)

      Hi Nicolas,

      I’ve informed the developers of YITH Request a Quote for WooCommerce Premium about the issue, but so far, they haven’t provided any insights into what might have caused the problem. Their plugin was generating two issues in combination with yours: besides incorrect currency changes on the frontend, the quotes were also displaying incorrect currencies.

      After deactivating and reactivating the plugin, everything seems to be working fine again.

      If the issue reoccurs or if the YITH team provides me with further details about what happened, I’ll be happy to share them with you.

      In the meantime, I really appreciate the support you’ve given me so far.

      Plugin Support Nicolas V.

      (@nicolasviallet)

      Hi Alfonso,

      Thanks for the update! Glad to hear it’s working fine now. If the issue comes up again or you get more info from YITH, just let me know.

    Viewing 7 replies - 1 through 7 (of 7 total)
    • You must be logged in to reply to this topic.