It'd be a pretty major change. First you have to update the database columns, then you have to change the SQL statements to insert the numbers as floats (%f) instead of integers (%d). Then you get into the issue of figuring out just how small a quantity you will allow to be entered. Comparing floats is never exact, especially when one of them is 0.
Re: Quantity as Decimal
Wed, 01/09/2008 - 09:38
#1
Re: Quantity as Decimal
Quantity as Decimal By: cYu (14 replies) Tue, 01/08/2008 - 18:09
- Re: Quantity as Decimal By: mydmitry (05/19/2011 - 07:19)
- Re: Quantity as Decimal By: interactivex (05/17/2011 - 07:46)
- Re: Quantity as Decimal By: mstrelan (01/05/2010 - 01:20)
- Re: Quantity as Decimal By: Lyle (01/09/2008 - 09:38)
- Re: Re: Quantity as Decimal By: cYu (01/09/2008 - 11:39)
- Re: Re: Re: Quantity as Decimal By: cYu (01/09/2008 - 15:04)
- a possible suggestion to Ubercart Core By: robdinardo (11/13/2009 - 17:14)
- Product quantity changes after checkout By: hjelkris (11/05/2010 - 10:20)
- Got it working! By: hjelkris (11/05/2010 - 15:36)
- Same problem By: interactivex (05/17/2011 - 02:53)
- decimal quantities By: mstrelan (11/06/2010 - 02:33)
- Got it working! By: hjelkris (11/05/2010 - 15:36)
- trying this out gives me... By: j.mead (11/15/2009 - 01:33)
- Re: trying this out gives me... By: j.mead (11/15/2009 - 06:44)
- no stock for me By: robdinardo (11/26/2009 - 21:57)
- Re: trying this out gives me... By: j.mead (11/15/2009 - 06:44)
- Product quantity changes after checkout By: hjelkris (11/05/2010 - 10:20)
- a possible suggestion to Ubercart Core By: robdinardo (11/13/2009 - 17:14)
- Re: Re: Re: Quantity as Decimal By: cYu (01/09/2008 - 15:04)
- Re: Re: Quantity as Decimal By: cYu (01/09/2008 - 11:39)

