Re: Auction Product Type
I'd like to announce some modifications I've made to davewest's great script.
I've added a "maximum bid allowed" feature to keep people from placing crazy bids like a billion dollars.
You can make this any amount you choose inside the admin panel.

Originally Posted by
davewest
It's already included in the last update....
@davewest, I'm not sure what you did to the last update. The last version that is avaliable in the downloads area of zen-cart says "Last updated Dec 20 2010" and is version 1.2a.
I saw no provision for limiting maximum bids allowed. However, I did see in an earlier post where you suggested...

Originally Posted by
davewest
That's a new one... never thought about a max amount, but with the two key words free-fun would get it going.... this is basically the opposite of the to low bid, but without an easy admin setting.
in includes\modules\pages\product_auction_info\header_php.php add the lines in red in between the black code sections about line 125.
Code:
if ($auction_bid > 0 ) {
if ($auction_bid < ($auction_bid_minimum_increase + $auction_current_bid)) {
$error = true;
$messageStack->add('place_bid', ENTRY_BID_TOO_LOW, 'error');
}
if ($auction_bid >= ($auction_bid_minimum_increase + $auction_current_bid) + 200) {
$error = true;
$messageStack->add('place_bid', 'To High - Try Again!', 'error');
}
if ($error == false) {
This works by checking if the bid is 200 over the current bid plus the minimum increase.. change the 200 to something higher or lower for what you want....
The edited page if you wish to just replace it...
header_php.zip
I'll have to add this to the next update...
I've made modifications to the script and added a Maximum bid allowed feature to the admin based on your "minimum bid allowed" feature. I think you'll find my changes helpful and worthy of a submission to the free software add ons section of zen-cart.
Thanks again for the great script. I can't attach it to this forum because its too big I'll have to submit it for approval.
Last edited by beasleybub; 7 Mar 2011 at 09:57 AM.
How can there be nothing? Nothing is something!
Bookmarks