• Resolved nikolab

    (@nikolab)


    Hi,

    I have a problem with the currency in the backend. On the frontend part everything works fine, currency is changed based on geolocation, and the currency conversion also works. But on the backend in the orders, it is shown as a default currency.

    Tnx

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

    (@oscargare)

    Hi,
    check if another plugin is changing the order currency.
    PBC save the order in the customer currency, so something is changing the currency of the order in the backend or before the order is saved.

    Thread Starter nikolab

    (@nikolab)

    Hi Oscar,

    thank you for your reply.
    I don’t use other plugins like Change currency or some other that could make changes before the order is saved.
    The problem is with currency code. I have CAD and USD, and it shows well on the frontend, and even in the order emails, but in the backend always shows CAD(which is a default currency), even though the purchase is in USD dollars.

    thanks once again

    Plugin Author Oscar Gare

    (@oscargare)

    Is the order amount correct? Is it only the currency symbol wrong?
    How have you added the currency code to the price in the frontend?

    Thread Starter nikolab

    (@nikolab)

    The amount is good, and yes it shows right currency code on the frontend.
    $amount USD – if from USA
    $amount CAD – if from Canada and rest of the world

    But in admin orders only shows $amount CAD

    Plugin Author Oscar Gare

    (@oscargare)

    Hi, the Basic version does not include a way to add the currency code to the price.
    The problem is located in how you are adding the currency code to the prices.
    How are you adding the currency code to the price?

    • This reply was modified 6 years, 9 months ago by Oscar Gare.
    • This reply was modified 6 years, 9 months ago by Oscar Gare.
    Thread Starter nikolab

    (@nikolab)

    This way
    /* add currency code to price */
    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);

    Plugin Author Oscar Gare

    (@oscargare)

    Hi,
    I’m sorry but I don’t give support for custom develop in this forum.
    Add the currency code to price is an option available in the Pro version:
    https://www.pricebasedcountry.com/docs/getting-started/settings-options/

    Regards,
    Oscar.

    Thread Starter nikolab

    (@nikolab)

    Hi Oscar,

    It’s from the previous developer, I didn’t add anything, and I didn’t notice until you pointed me out.
    Anyway, thank you very much for your time.

    Regards

    • This reply was modified 6 years, 9 months ago by nikolab.
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Currency changed and shown on the Front end, but on the backend is shown deafult’ is closed to new replies.