Thread: Bid increments
View Single Post
Old December 5th, 2004, 11:45 AM   #1 (permalink)
Chris2707
Member
Verified Customer
 
Join Date: Feb 2002
Location: West Yorkshire
Posts: 72
Bid increments

Is this working correctly or am I getting it wrong? I thought the bid increments were determined by the code in bids.php (ppc v2) lines 216 onwards:

// Start with their bid and add an incremental amount
if ( $curprice < 10 ) $curprice += .25;
elseif ( $curprice < 50 ) $curprice += 1;
elseif ( $curprice < 100 ) $curprice += 5;
elseif ( $curprice < 500 ) $curprice += 10;
else $curprice += 25;

But whatever I change these values to (and the ones further up in the same file), I can still outbid another person by just 1 penny (uk currency). For instance an item priced at £12.00 and I can bid £12.01 and get high bid and someone can bid £12.02 and get high bid. I thought going by the above code that if the price is less than 50 the bid increment is 1. If that 1 above represents a penny, then it's correct, but if I change that to 50 surely it should only allow bids in £0.50 increments. For instance elseif ( $curprice < 50 $curprice += 50; should be £0.50 increments.
Chris2707 is offline   Reply With Quote