• Resolved aclancy

    (@aclancy)


    Hi –

    After installing the plugin, “USD” is displayed after many totals. It’s in the admin area, on every order, on customer receipts, thank you/order confirmation page, my account area, etc.

    We don’t display dollar amounts with “USD” after them in the United States. It’s a cultural thing. We don’t do it. It’s very awkward to see it.

    Yes: $4.50
    Big No: $4.50 USD

    I need to remove this but it appears to be impossible do do this with css because “USD” is inserted after elements.

    Can you tell me how to remove it?

    Thank you.

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Support Nagesh Pai

    (@nagpai)

    hi @aclancy

    It will be great if you could share your current System Status Report. You can get it by navigating to the WooCommerce / Status section of your site. Once there, click on the Get system report button and then copy it by clicking on the Copy for support button. Then paste it here in a comment.

    Please also share a screenshot of what you see within
    **WP Admin → WooCommerce → Settings → General**
    under Currency options

    Thanks

    Thread Starter aclancy

    (@aclancy)

    Hi – thanks for the reply.

    So the issue is not that the currency is incorrect. Rather, that it’s being printed at all after totals.

    – In the US, we do this: $12.49
    – We never, ever do this: $12.49 USD
    – Woocommerce Payments prints on my customer’s receipts: $12.49 USD

    This is a deal breaker for me.

    As an aside, I looked through the Woocommerce Payments code, and they’ve done an INSANE amount of work on currencies and payments and such. It’s very impressive what goes on behind the scenes.

    It seems like there should be an easy fix here to stop outputting the ‘USD’ into my admin backend and customer receipts, but I’m afraid of breaking something.

    • This reply was modified 2 years, 11 months ago by aclancy.

    Hi there!

    I understand that you would like to remove the “USD” from the pricing on WooCommerce.

    That’s currently not an option, so I would recommend you add it as a suggestion to our ideas board.

    We are always looking for ways of improving our plugins and I can see your pain, so I hope that we can have a solution for that as soon as possible.

    We also have a guide with a code example as a reference for changing/removing the currency symbol. That might work for you in case you are able to edit the code with your needs.

    You can check our development docs further from here: https://developer.woocommerce.com/

    Apart from that, an option is also to check our customizations page with some partners that can help you doing such services for you and provide additional assistance: https://woocommerce.com/customizations/`

    Thread Starter aclancy

    (@aclancy)

    Wonderful, and will do. Thank you.

    Plugin Support Adam Heckler

    (@adamkheckler)

    One thing to note here is that this may be a result of having multi-currency turned on in the WooCommerce Payments settings.

    If you go to WooCommerce > Settings > Payments > WooCommerce Payments, scroll down to the bottom, and open the Advanced Settings, do you have this checked?

    https://cln.sh/31Az5XnqCylY2AM7LWsI

    If so, unchecking it should remove USD from the amounts shown everywhere.

    Before: https://cln.sh/v4iv1xjRnqdMbMJzP6vR

    After: https://cln.sh/rAfGtz9F9TrjnZkhJYmL

    If you need multi-currency enabled, however, then the display of USD after any amounts that’s in USD would be correct, of course. ??

    Thread Starter aclancy

    (@aclancy)

    Hi – your explanation makes great sense but “enable multi-currency” is unchecked. The only thing checked in advanced settings is error logging.

    Some plugins I’m using that seem to interact with Woocommerce Payments are:

    Woocommerce Subscriptions
    PayPal Express
    PayPal for Woocommerce

    …on the off chance this is helpful to know.

    • This reply was modified 2 years, 11 months ago by aclancy.
    Plugin Support Sarah G. a11n

    (@sg9928)

    Hi again,

    Thanks for the additional information about the plugins installed on the site that might be interacting with WooCommerce Payments. I don’t think that those would be causing the issue, especially since you noticed this happening **after** installing WooCommerce Payments on your site.

    Since you mentioned multi-currency not being enabled on the site, the best route would be to check out those developer documents that @felipea8c mentioned earlier as well as adding this as an idea to our ideas board.

    jessepearson

    (@jessepearson)

    Automattic Happiness Engineer

    @aclancy I am part of the team that works on Multi-Currency within WooCommerce Payments, and this issue has us curious. We set it up so explicit formatting (meaning with the currency code like USD) should show in the admin all the time, but this shouldn’t happen on the front end of the site if Multi-Currency is disabled, or if there’s only one currency enabled in Multi-Currency. I just double checked, and that is the result I had.

    The code that decides if explicit formatting should be used is here:
    https://github.com/Automattic/woocommerce-payments/blob/3.4.0/includes/class-wc-payments-explicit-price-formatter.php#L53-L94

    If you’re still having this issue, we’d like to dig into it further to see what the issue may be. Also, if needed, we can add a couple filters that would allow disabling explicit formatting within WooCommerce Payments entirely.

    Thread Starter aclancy

    (@aclancy)

    Sure. I’ll see if I can help. And I’m interested in a filter that would (most importantly) remove explicit currency formatting from anything the customer sees, which I believe is their order receipt, and (second priority) on the backend in admin areas. I sell only in the US where there is only one currency, so there’s no need for any delineation.

    As an aside, I found the code you referenced and identified that page as the one controlling the explicit formatting output.

    Thread Starter aclancy

    (@aclancy)

    I did a test order to refresh my memory and see where currency format stands on the frontend. Formatting on the thank you page looks good, contrary to my recollection but I’m glad to see it.

    Customer order confirmation email has USD in order total.

    https://d1vjei9rgwsxdz.cloudfront.net/images/orderconfemail.png

    Thread Starter aclancy

    (@aclancy)

    USD also appears on the receipt page that I print and send to the customer with each order.

    https://d1vjei9rgwsxdz.cloudfront.net/images/custreceipt-printversion.png

    jessepearson

    (@jessepearson)

    Automattic Happiness Engineer

    For the customer email, I was only able to replicate this by manually resending the emails from the admin. I’ve created a bug report for the team to look into:
    https://github.com/Automattic/woocommerce-payments/issues/3513

    I’ve also created an enhancement request to add filters to disable explicit formatting entirely:
    https://github.com/Automattic/woocommerce-payments/issues/3514

    As for the print out, this will have explicit formatting due to it’s being done from the admin. Once the filters are added, you will be able to use them and disable this.

    Thanks for taking the time to report the issue and do further testing ??

    Thread Starter aclancy

    (@aclancy)

    For the customer email, I was only able to replicate this by manually resending the emails from the admin. I’ve created a bug report for the team to look into:
    https://github.com/Automattic/woocommerce-payments/issues/3513

    I am getting explicit currency formatting in both customer emails – order confirmation and shipping confirmation. I wish I could offer some explanation for why I’m seeing it and you’re not. I’m happy to answer any questions that might help lead to an answer.

    I’ve also created an enhancement request to add filters to disable explicit formatting entirely:
    https://github.com/Automattic/woocommerce-payments/issues/3514

    As for the print out, this will have explicit formatting due to it’s being done from the admin. Once the filters are added, you will be able to use them and disable this.

    Sounds great, thank you.

    Plugin Support Aashik P – a11n

    (@aashik)

    I am getting explicit currency formatting in both customer emails – order confirmation and shipping confirmation. I wish I could offer some explanation for why I’m seeing it and you’re not.

    That is not expected behavior. Could you please share a copy of your site’s System Status? You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”.? Once you’ve done that, paste it here in your response.

    Thank you for working with us on this.

    Thread Starter aclancy

    (@aclancy)

    Well-intentioned I’m sure, but that feels a bit like posting my Social Security Number online. Perhaps there’s a less intrusive way to get some of that info to you.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘“USD” appears everywhere now’ is closed to new replies.