• Resolved biksak

    (@biksak)


    Hi!

    I have almost all the plugin config working well. Currency is shown correctly based on the selected country.

    But, on the orders page, on WP admin, the currency of the purchase isn’t shown based on the Country of the purchase. It looks like the purchases are showed based on the my location.

    Thanks.

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

    (@oscargare)

    Hi,
    The “Price by country” is not active in the WordPress admin…. What’s the currency? The amount of the order is correct? Could you share some screenshots?

    Thread Starter biksak

    (@biksak)

    My local currency is COP, and is the currency used for orders made from Colombia. The other countries has USD currency.

    The amount of the order, in the admin panel, is correct. But the currency don’t.

    I’m sharing some screenshots. In red color are the orders with COP currency. In green color are the orders with USD currency.
    https://drive.google.com/drive/folders/1eWHHcFfngMCXpU4JLKxLXDr2R6b4EYro?usp=sharing

    Plugin Author Oscar Gare

    (@oscargare)

    Hi,
    How did you change the currency symbol of the COP currency from “$” to “COP”?

    It seems that’s the problem.

    Thread Starter biksak

    (@biksak)

    I was using the following code on functions.php:

    function addPriceSuffix($format, $currency_pos) {
    switch ( $currency_pos ) {
    case ‘left’ :
    $currency = get_woocommerce_currency();
    $format = ‘%1$s%2$s ‘ . $currency;
    break;
    }
    return $format;
    }
    add_action(‘woocommerce_price_format’, ‘addPriceSuffix’, 1, 2);

    I removed it, and it works because there is no currency any more. How can I add currency to the pricing?

    Plugin Author Oscar Gare

    (@oscargare)

    Hi,
    By the currency format option included in the Pro version:
    https://www.pricebasedcountry.com/docs/getting-started/settings-options/

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Wrong currency on WordPress admin’ is closed to new replies.