Donation amounts over 1000 are altered by three places, e.g 4,000 becomes 4.00 when sent to the cart.

ubercart 6.x-2.0-beta3 with uc_product patched as per http://drupal.org/node/341819
this in 1.2.4.12 but was absent in 1.2.4.10 of uc_donation.module
diffing the two shows some changes in uc_donation_add_to_cart_form_validate and uc_donation_cart_view_validate ... I changed
$donate_amount = floatval($form_state['values']['donate_amount']); to
$donate_amount = floatval(ereg_replace('[^0-9\.]*', '',$form_state['values']['donate_amount']));
in the former
and
$donate_amount = floatval($item['donate_amount']); to
$donate_amount = floatval(ereg_replace('[^0-9\.]*', '',$item['donate_amount']));
in the latter and its all good now.

Comments

greenskin’s picture

Status: Active » Fixed

Fixed in latest dev release.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.