Skip to main content

Mass Action Round Prices

More
7 years 8 months ago #302298 by a2zcs
-- url of the page with the problem -- : aquacorals.com
-- HikaShop version -- : 4.0.1
-- Joomla version -- : 3.9.1
-- PHP version -- : 7.2
-- Browser(s) name and version -- : Firefox 63.0.3

What would be the correct equation to round all prices to the nearest even dollar amount?

in Mass Actions I've got price_value=operation=round(price.price_value*1,2) to change a price like 57.33 to 57.00 or a price like 45.67 to 46.00
Is that correct?

Please Log in or Create an account to join the conversation.

More
7 years 8 months ago #302342 by nicolas
Replied by nicolas on topic Mass Action Round Prices
Hi,

I think you want to use round(price.price_value*1, 0) so that you can round at the dollar level, not the cent level.
The following user(s) said Thank You: a2zcs

Please Log in or Create an account to join the conversation.

More
7 years 8 months ago #302376 by a2zcs
Replied by a2zcs on topic Mass Action Round Prices
Perfect. Thanks!

Please Log in or Create an account to join the conversation.

Time to create page: 0.166 seconds
Powered by Kunena Forum