• Resolved rebelboyl

    (@rebelboyl)


    Dear WooCommerce Team,

    The WooCommerce multi-currency works well on usual pages, but whenever we need to get price in selected currency amount via AJAX call, we can only get the default currency amount.

    Can you advise how to get selected currency amount via AJAX call?

    Thanks!

    BR,

    Aaron

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there!

    Thank you for reaching out!

    As part of our support scope, we primarily assist with core functionality and default configurations of WooCommerce. Since this issue involves multi-currency functionality, which likely comes from a third-party plugin, I would recommend reviewing the plugin’s documentation or reaching out to the plugin’s support team for specific guidance on handling currency via AJAX calls.

    However, if you’re looking to retrieve the selected currency for general WooCommerce functionality, you can use get_woocommerce_currency() to fetch the active currency. If your multi-currency plugin offers custom functions or hooks, you might need to work with them for AJAX compatibility.

    Alternatively, If you need more in-depth support or want to consider professional assistance for customization, I can recommend?WooExperts?and?Codeable.io?as options for getting professional help. Alternatively, you can also ask your development questions in the??WooCommerce Community Slack?as custom code falls outside our usual?scope of support.

    Thank you.

    Thread Starter rebelboyl

    (@rebelboyl)

    Hi Shahzeen,

    Thank you for advice.

    Actually our question is regarding the in-built multi-currency feature of WooCommerce, which can be seen here: https://woocommerce.com/document/woopayments/currencies/multi-currency-setup/

    It might have come together with WooPayment but it is still WooCommerce’s own feature right?

    Thanks.

    BR,

    Aaron

    Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there!

    I can understand your concern, please note that mutli-currency option is avalabe if you install woopayment plugin on your site. In this public forum we only provide support for core features available with woocommerce plugin without installing any additional plugin.

    However, I would recommend taking a look at?the Compatibility.php file?in the multi-currency path of WooPayments for some guidance.

    If that does not help, I recommend reaching out to WooPayments support here for further assistance, as they would be able to provide more details on handling multi-currency prices in AJAX responses.

    Thank you


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