Edit price range from 1 to 2 decimal places...  

  RSS

Phil
 Phil
(@holmey)
Member Customer
Joined: 3 years ago
Posts: 3
04/09/2016 6:24 pm  

 Hi,

Is there any way I can edit it so that the price range is to 2 decimal figures, (2.95 instead of £2.9 as in the image on the link below).

Price Range

I've searched the woocs-fuctions.php file, and can't find anywhere to edit this.

Any help really appreciated, my client is doing their nut in over this, saying that it spoils the site and says if this can't be fixed, she wants the slider removing, something I don't want to do as I think it is effective.

Regards,

Phil

 


Quote
rampatter
(@rampatter)
New Member
Joined: 3 years ago
Posts: 1
27/12/2016 9:40 am  

Double d = 100.123456;
Double dc = Math.Round((Double)d, 2);

More about.....formatting

Patter


ReplyQuote
Share: