• Resolved Samara

    (@blouishhotmailcom)


    I need to get the currency at checkout. In other plugins I have used the function ->get_currency and was able to return the currency code.

    How would I go about doing it with your plugin?

    For more context:
    I need to be able to see if the customer is using CAD or USD at checkout. Depending on the currency, I need to send the customer to a different payment portal.

    Thanks!

    • This topic was modified 7 years, 7 months ago by Samara. Reason: More context
Viewing 1 replies (of 1 total)
  • Plugin Author Oscar Gare

    (@oscargare)

    Hi Samara,
    at checkout (front-end) after ‘woocommerce_init’ hook, you can get the currency by: get_woocommerce_currency()

    Easy ! ??

Viewing 1 replies (of 1 total)
  • The topic ‘Get Currency’ is closed to new replies.