Home Forums Plugins CURCY – WooCommerce Multi Currency How to get price in default currency

How to get price in default currency

  • Author
    Posts
  • #262726

    Ben Kitching
    Participant

    Hi,

    I use PHP functions such as $product->get_price() to generate schemas and other bot readable items.

    I also have the settings in CURCY for Bot currency and Fixed Structure currency set to show the Default Currency, however when I view schema in tools such as https://validator.schema.org/ or in Google consoles the currency is often wrong, it seems to default to the currency of wherever the scanning bot is located.

    How can I ensure that only my defauly currency is shown in such places.. Ideally I’d like a PHP function that always returns the price in my default currency, according to your docs get_price() should do that I think but it doesn’t in my setup.

    I am open to other ideas if there is a better way.

    Thanks

You must be logged in to see replies to this topic. Click here to login or register