Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 12-14-2015 18:40:38

timberguy
Member
Registered: 01-14-2008
Posts: 142

fraction of a cent.

Is there a way to go to three digits past the decimal and use  fractions of a cent for pricing and not round up to the nearest cent?  One of my clients sells bamboo tree stakes and they are priced at $0.065 per foot. It shows up that way on the admin side, but on the store side it is rounded up and shows 0.70 a foot.  That half cent is huge in their market and can make a difference in getting the sale.

Offline

 

#2 12-15-2015 19:00:45

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: fraction of a cent.

You could adjust the pricing/rounding functions in {private}/core/CORE_App/CORE_App.php to accomplish this.  In there you will see rounding to two places in the price_format() function (I'm pretty sure that's the one).  Change as needed.


Nick Hendler

Offline

 

#3 12-17-2015 01:17:46

timberguy
Member
Registered: 01-14-2008
Posts: 142

Re: fraction of a cent.

Any chance of telling me what I need to change to what to accomplish this?

Offline

 

#4 12-17-2015 09:31:43

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: fraction of a cent.

In the function price_round() change:

Code:

return sprintf("%.2f",round($price,2));

To:

Code:

return sprintf("%.3f",round($price,3));

Nick Hendler

Offline

 

Board footer