• How can I set the displayed currency on an AJAX call?

    When calling admin-ajax.php I have tried passing “wmc-currency” as POST/GET however it does not work.-

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter mattiasf

    (@mattiasf)

    The WCMC way:

    WOOMULTI_CURRENCY_Data::get_ins()->set_current_currency($_POST['wmc-currency']);

    I would love if there is a more native approach using woocommerce

    • This reply was modified 5 years, 5 months ago by mattiasf.

    Hi mattiasf.

    You can’t set currency by ajax because Front end will not update currency & value if you don’t reload page.

    • This reply was modified 5 years, 5 months ago by thanhtd.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to set currency on a AJAX call?’ is closed to new replies.