Active
Project:
Ubercart Userpoints
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
6 Jan 2011 at 15:34 UTC
Updated:
6 Apr 2011 at 09:48 UTC
Hey guys, I'm considering using userpoints_ubercart +uc_store_credit as user credit balance, so user can buy ubsercart goods using his userpoints.
But userpoints 6.x doesn't support float values! it's just integers.
does that mean that everyone is just trying to apply http://drupal.org/node/417830 patches? or may be other solutions are available? (I don't like hacking modules)
Thanks in advance!
Comments
Comment #1
bmagistro commentedIt's been awhile since I've interacted with the code but I going through stuff again. If I remember right I handled it by rounding to the nearest whole number. The php function should be ceil, can be found here http://php.net/manual/en/function.ceil.php if you are interested in how that works.
Comment #2
bmagistro commentedClosing, considering issue resolved as there has not been any activity.
Comment #3
vantuykom commentedI need float too on ubercart userpoints