Support

Home Forums Event Espresso Premium Problems with decimal sign after update

Problems with decimal sign after update

Posted: October 19, 2023 at 2:17 am

Viewing 8 reply threads


Manuel

October 19, 2023 at 2:17 am

Yesterday I updated the Event Espresso core to the new version 5.0.11.p

With this new version there seems to be a problem with decimal sign that we didn’t have in all the previous versions.

If we add a payment by default it always uses the full outstanding amount with a . (dot) as decimal sign. And we just needed to click on the confirm button. However the value is then addes without the decimal. For example the amount to be paid is 70.5, but if we add this payment. It is addes as 705.

In Belgium the decimal sign is , (komma). If we manually change the decimal sign to a komma, then the payment is addes correct.

Obviously it’s time consuming to always change the decimal sign.


Rio

  • Support Staff

October 19, 2023 at 3:14 am

I’m trying to understand your concern, but i might misinterpret it.

What payment method is used? Was the problem in creating and adding price on the ticket? or when your client checkout your ticket

Can you show us what you mean? you can use loom to record a video of the problem you experience.
https://www.loom.com/

thanks

thanks


Manuel

October 19, 2023 at 3:48 am

The payment method is bank. So after we received the payment on our bank account, we manually add the payment to the transaction.

Below you can find a video recording of the problem.

So you will see that I add a payment of 108.5 but after submitting the payment. The payment is changed to 1085 . If I manually change the payment to 108,5 (komma and not dot) the payment is added without any problem. We didn’t have this problem in the previous versions, and we could keep it as default. In the changelog I see that you changed something on the decimals in this version. So probably this has something to do with this.


Manuel

October 19, 2023 at 3:48 am

This reply has been marked as private.


Rio

  • Support Staff

October 19, 2023 at 4:55 am

I’m trying to recreate the issue, but all good in my end.
https://monosnap.com/file/opCqBzk1fZmHyYHWa0OjCjvPaEnHCj

Can i get more information’s from you, Can you take screenshot of this.
You can do that by going to EE Dashboard -> General Setting -> Countries
https://monosnap.com/file/GvC57OQvXUYQcWRBjgzqDBiCqce5xg

Then send us also a screenshot of your setting.
https://monosnap.com/file/zkb34fRTDLni4FGh98SC5OwKLGCEjy

thanks


Manuel

October 19, 2023 at 5:10 am

Belgium country setting: https://pevaz.be/wp-content/uploads/2023-10-19_13h09_10.png
Setting: https://pevaz.be/wp-content/uploads/2023-10-19_13h09_44.png


Tony

  • Support Staff

October 19, 2023 at 6:22 am

Hi Manuel,

I can reproduce this and we are currently investigating.


Manuel

October 19, 2023 at 6:56 am

Thank you for the confirmation. Can you keep me posted on the progress on this bug? In the meantime we manually change the decimal to komma.


Tony

  • Support Staff

October 19, 2023 at 7:41 am

If you are comfortable with PHP and FTP/File Manager you work around this with a small change:

\wp-content\plugins\event-espresso-core\admin_pages\transactions\Transactions_Admin_Page.core.php

Line 1852 will be something like:

? EEH_Money::strip_localized_money_formatting($valid_data['amount'])

Change that to be:

? abs($valid_data['amount'])

That should change it back to how it worked previously.

We’ll need a better fix in a future version but that should help you for now.


Manuel

October 19, 2023 at 8:20 am

Hello Tony, I have changed this in the transactions admin page core file and did some testing. Everything works again as before. Thank you for your help.


Rio

  • Support Staff

October 19, 2023 at 7:08 pm

good to hear everything goes well. Yes, we will be putting this fix on the upcoming update.

have a wonderful day.

Viewing 8 reply threads

The support post ‘Problems with decimal sign after update’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso