Closed (fixed)
Project:
Ubercart Auction
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Nov 2010 at 08:48 UTC
Updated:
30 Jun 2011 at 22:31 UTC
Bids are not possible because any bid triggers the "Your Bid must be a multiple of x" error. As a workaround I commented out that test in the script.
I have global settings for min bid of $1 and increments of $1. Tried other values and setting values with same result.
Comments
Comment #1
onyxnz commentedFix:
in uc_auction.js
line 84/85:
// Is the bid value a multiple of the bid increment value? Fixed by multiplying by 100 as modulus would fail with floating point 'bug'; by Onyx.
else if ((100*bidVal) % (Drupal.settings.ucAuction.bidIncrement*100) !== 0) {
Comment #2
HydroZ commentedHi,
i tried to find some glues, that lead to the validation error ("You must place at least a multiple of ...").
I was wondering, why the message is "You must place at least a multiple of EUR 1,00,EUR 1,00, EUR 1,00...". Therefore I made a litte research with FireBug, found the related script:
Obviously, the following variables or what ever they are (I am really poor in JS and Object-Stuff) must no be arrays.
The last If-Clause will become TRUE, because
bidVal % Drupal.settings.ucAuction.bidIncrementwill produce "NaN" and this is not equal to ZERO...
This is definitly the reason why the error occours. The script (above) was not written do compare the values of the above mentioned arrays.
Sadly, I have no glue, where those (Drupal.settings.ucAuction.minBid, Drupal.settings.ucAuction.bidIncremen) come from, but hopefully, I have saved someone more professional like me a little bit of time...
Comment #3
jepster_The buggy function is
ca. at line 1253 in file uc_auction.module
I've changed it to
now it works for me. hope for you, too. send me some feedback!
Comment #4
jepster_Marking this as fixed, because of the 1.0 release.