Post by thanoshac » Tue Dec 01, 2020 5:39 am

My opencart is version 3.0.3.6
I can not add the correct prices with decimals. Example: for a product my final price is 20 €. Without tax (24% in Greece) is 16.13 €. But site does not accept it and changes automatically to before tax to 16,00 – final price 19.84 €.
Is there anybody who can help me to solve this problem?
Thanks in advance
thanos
Last edited by thanoshac on Wed Dec 30, 2020 7:12 pm, edited 1 time in total.

New member

Posts

Joined
Thu Oct 01, 2020 4:12 pm

Post by OSWorX » Tue Dec 01, 2020 6:02 am

Guess you did not set the currency correct.
Define Euro with 1 (Value) and as standard Currency.

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Guru Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by thanoshac » Wed Dec 02, 2020 12:25 am

The currency is correct. Euro is the only standard currency.
My problem is that the opencart does not accept the correct calculation in decimiles after adding the tax 24%. Just whole number.
For instance if price must be 20,10 €, opencart is changing to 20 €.
I tried with more decimiles, like 20,10000 but is not either workable.

New member

Posts

Joined
Thu Oct 01, 2020 4:12 pm

Post by OSWorX » Wed Dec 02, 2020 12:54 am

Now I am a "bit" confused .
Once you write 16,13 as net value, then yo uset 20.1 > as what?

Just to clarify, I have tested that just for curiosity right now (OC 3.0.3.6).
Tax is 24%
Net product value is 16.13

Now, in the shop it displays 20.00 as GROSS, and 16.13 as NET.
100% correct.

So I really don't know what you are using or how you have the checkout modules defined.
And what I am missing what Template you are using, and maybe additional extensions installed?!

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Guru Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by pprmkr » Wed Dec 02, 2020 2:09 am

Language -> Your_Language folder -> your_language.php:

Code: Select all

$_['decimal_point']                 = '.';
$_['thousand_point']                = ','; 
You are used to use ',' as decimalpoint in valuta, e.g. 16,31 ??

User avatar
Active Member

Posts

Joined
Sat Jan 08, 2011 11:05 pm
Location - Netherlands

Post by thanoshac » Wed Dec 02, 2020 4:26 am

Thank you both for your kind help.
I fixed it, it was my mistake ( I used on prices "," instead of ".")
It was so simple, but it is my first opencart development and I did not manage to find the solution.....
thanks again :)

New member

Posts

Joined
Thu Oct 01, 2020 4:12 pm
Who is online

Users browsing this forum: No registered users and 28 guests