Jump to content

Round price only in one currency


Recommended Posts

Prestashop 1.6, I have two currencies - USD and BYR (1 USD = ~9 800 BYR)

 

When I do this:

 

classes/Tools.php

 

public static function ps_round($value, $precision = 0)

{

//some code

return round($value, -2);

}

It round BYR price from (for example) 420 873 BYR to 420 900 and its good!

But it round and USD too ((( ... and its bad!

 

I need round only BYR! Not USD!

 

Can you help me? (And sorry for my English ))

Link to comment
Share on other sites

  • 2 years later...

Anything new with this issue? I am also interested, because finally, we use an accounting system, which rounds differently for different currencies and I would like to reflect this in Prestashop.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...