PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Classifieds How do I...? (http://www.photopost.com/forum/classifieds-how-do-i/)
-   -   Bidding Increments (http://www.photopost.com/forum/classifieds-how-do-i/129692-bidding-increments.html)

nuguru January 3rd, 2007 05:40 PM

Bidding Increments
 
Hello and Happy New Year to All!

There seems to be a problem or something mis-configured. When an item as been placed for sale in the photopost classifieds (I'm running 2.5), that has been listed to allow bidding, the bids are only allowed to increase when someone puts in an increase of atleast 5 dollars.

Meaning, someone lists something for sale and allows bidding. ie a clock for $20.00. the system will only accept the bid if the bid is 25.00. then the next person has to bid atleast 30. I am finding 5.00 bid increments way to high and I would like to change this way down around $.01.

Is something that can be done? How easy is it? Why is this happening. Anyone should be able to bid anything over the asking price.



Thank You,

Nuguru :)
WebbinZine.com

Chuck S January 3rd, 2007 07:35 PM

Right in bids.php is this code so I dont really see how your bid is 5 dollar increments it should be 1

Code:

Content visible to verified customers only.

nuguru January 3rd, 2007 08:24 PM

Tested it again, no luck
 
Hello,

Thanks for the quick reply. I checked your code with my code (shown below) and they pretty much are the same. Then I put in a test bid for product - http://www.webbinzine.com/classified...php?product=54 and still $5.00 minimum increment is only allowed.

Can you log in and test it yourself on this test product? I would like to first find the fix and then be able to allow users to bid at $.01 increments apposed to $1.00 increments. Is that possible?

Thank You,

Nuguru :)

______________________ my code below

// If the bid is higher than the maxbid, then its easy...
if ( $mybid > $maxbid )
{
// The person bid higher than the current high bidder's highest bid
if ( $maxbid != 0 ) $curprice = $maxbid;

if ( $curprice < 10 ) $curprice += .25;
elseif ( $curprice < 50 ) $curprice += 1;
elseif ( $curprice < 100 ) $curprice += 5;
elseif ( $curprice < 500 ) $curprice += 10;
else $curprice += 25;

if ( $mybid < $curprice )
{
$toolow = str_replace( "curprice", "{$Globals['currency']}$curprice", $Globals['pp_lang']['toolow'] );
diewell( $toolow );
}

Chuck S January 3rd, 2007 09:39 PM

Your bidding is performing as requested. Your price for that ad is 85.00 thus your bids will be in 5 dollar increments. If you want to change the increments the code block I posted put in your own increments based on price. Looking above you can see I am correct. Since your price is more than 50 and less than 100 the bid price is 5 dollars

Code:

Content visible to verified customers only.

nuguru January 3rd, 2007 09:56 PM

Okay, so if I wanted all bids to be $.01 increments regardless of the sale price, is this change correct?

if ( $curprice < 10 ) $curprice += .01;
elseif ( $curprice < 50 ) $curprice += .01;
elseif ( $curprice < 100 ) $curprice += .01;
elseif ( $curprice < 500 ) $curprice += .01;
else $curprice += .01;


Thank You,

Nuguru :)
WebbinZine.com

Chuck S January 4th, 2007 06:41 AM

Yes that would be correct although I think your going to highly confuse people by that kind of structure

nuguru January 5th, 2007 11:23 AM

Quote:

Originally Posted by Chuck S (Post 1185445)
Yes that would be correct although I think your going to highly confuse people by that kind of structure

Hello,

My thought is that by allowing a more consistent bidding increment being either $.01 or even $1.00 on all sales amounts, that it would be less confusing than instead of having different bidding increments for different sales amounts.

I don't understand why this structure would be more confusing? Can you explain?

Thank You,

Nuguru :)
WebbinZine.com

Chuck S January 5th, 2007 05:22 PM

People bidding by pennys I think is confusing as most classifieds systems implement bidding structures like ours where the bid increments are based on the dollar amount of the item. Bigger ticket items do bigger dollar increments

nuguru January 5th, 2007 06:55 PM

$1.00 increments across the board
 
Okay, I understand what you are saying and it makes perfect sense. However, I would prefer just to keep things simple and allow $1.00 increments regardless of the posting sale price.

Can you please provide the code on how I can do this without the change causing any problems?


Thanks Again Chuck,

Nuguru :)
WebbinZine.com

Chuck S January 6th, 2007 07:21 AM

You posted the code yourself above ;) Nothing more for me to comment on here just make sure that code block has a penny like your example above.

nuguru January 6th, 2007 03:58 PM

Hello Chuck,

Okay, so I believe that this is correct in making the bid increment to $1.00 across the board regardless of the selling price?

if ( $curprice < 10 ) $curprice += 1.00;
elseif ( $curprice < 50 ) $curprice += 1.00;
elseif ( $curprice < 100 ) $curprice += 1.00;
elseif ( $curprice < 500 ) $curprice += 1.00;
else $curprice += 1.00;

I am just not sure about the last line of code (bolded). Is that correct too?

Also are there any other changes that I will need to make?


Thank You,

Nuguru :)
WebbinZine.com

nuguru January 6th, 2007 05:31 PM

Increments changes made *****
 
Hello,

Okay, this is the increment changes I have made and it seems to work.

if ( $curprice < 10 ) $curprice += 1;
elseif ( $curprice < 50 ) $curprice += 1;
elseif ( $curprice < 100 ) $curprice += 1;
elseif ( $curprice < 500 ) $curprice += 1;
else $curprice += 1;

However, after watching the bidding to. I noticed a few problems.

Problem 1. If say the current bid is at 27.00 and person A big 28.02, the bid history only shows 28.00 as being bidded. So when person B bids at 29.00, the bid history then shows at 29.02. The problem here is that person A's bid of 28.02 is not showing up as 28.02 but rather at 28.00 and that when person be bids (unware that the actual bid is at 28.02) their bid of 29.00 then shows higher at 29.02.

Problem 2. No email is sent out to either the seller or winner of the bid indicating the outcome of the sale. Only emails are being sent saying that you have been outbid on each bid. How can I make it send out a email for both situations?

Problem 3. I have my "Number of days to show sold/closed ads" set to 10, however I still have ads that are far past that still showing up in the categories. Should they not be purged and disappear? Does that data also get purged?


Thank You,

Nuguru :)

Chuck S January 6th, 2007 10:17 PM

1. Your edit should be .01 as in your example higher in the thread not 1 as that means a dollar not 1 cent

2. You need to setup your cron task stickied in the install or how do I forum (sendnotice.php)

3. Redownload the build and upload showcat.php


All times are GMT -5. The time now is 01:09 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97