• Resolved jordanwebdev

    (@jordanwebdev)


    If my site is offered in CAD and USD currencies, and the user chooses USD, for example, is there a way to tell that my user is on the USD version of my site? I would like to display different content in my template files depending on which country has been selected.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Oscar Gare

    (@oscargare)

    Hi,
    you can use the function wcpbc_get_woocommerce_country

    if ( wcpbc_get_woocommerce_country() = 'US' ) {
        #code
    }
    • This reply was modified 6 years ago by Oscar Gare.
    Thread Starter jordanwebdev

    (@jordanwebdev)

    Excellent! Thanks. Is there a documentation with all available functions? I see widgets and shortcodes, but not functions.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to tell, in PHP, which country is displayed’ is closed to new replies.