Bid Increments

Bid Increments

April 28, 2016
Pamela Pamela
  • Pamela
    Pamela
    Newbie 1 points

    Is there any way to change default bid increments?

    I have a site where users are going to be posting very low cost items and need a default bid increment of .25

    of course users would be able to go higher but many will be bidding in 25 cent increments.

    Thank you.

    April 28, 2016 at 1:29 pm
  • Josh
    Josh
    Super Guru 13,887 points

    Hello Pamela,
    There is no option to do this currently.Customization will be required

    April 28, 2016 at 3:05 pm
  • Pamela
    Pamela
    Newbie 1 points

    I assume there is somewhere in the core settings that this is set. Any idea where I would find the setting?

    April 28, 2016 at 3:47 pm
  • Josh
    Josh
    Super Guru 13,887 points

    This would be the Theme core files.
    Note:Editing core theme files is not recommended

    April 28, 2016 at 3:52 pm
  • Rodrigo
    Rodrigo
    Newbie 6 points

    I’m also very interested in the subject. Fixed price for bidding.

    October 23, 2016 at 3:25 am

  • Lindsay
    Newbie 26 points

    FIND INCREMENTAL BIDS
    wp-content/themes/AT/framework/class/defaults_auction.php

    If you open file you can scroll down to // BIDDING SYSTEM

    & see change to incremental “BID” i.e. in my case changed to “50” add whatever value you want.

    GET ANY CURRENT BIDDING DATA
    $current_bidding_data = get_post_meta($post->ID,’current_bid_data’,true);
    if(!is_array($current_bidding_data)){ $current_bidding_data = array(); }

    //2. ORDER IT BY KEY (WHICH HOLDS THE BID AMOUNT)
    krsort($current_bidding_data);

    // 3. SWITCH THE BID TYPE TO PERFORM ACTIONS
    switch($_POST[‘bidtype’]){

    // BIDDING SYSTEM
    case “bid”: {

    // GET THE CURRENT PRICE
    $current_price = get_post_meta($post->ID,’price_current’,true);
    if($current_price == “”){ $current_price = 0; }

    // CHECK IF THE BID AMOUNT IS GREATER THAN THE EXISTINT CURRENT PRICE
    if( $_POST[‘bidamount’] > $current_price ){

    // LETS CHECK IF WE HAVE A BIGGER AMOUNT THAN THE BIDDERS TOTAL
    $checkme = current($current_bidding_data);

    // OLD BIDDER IS STILL WINNER
    if(is_numeric($current_price) && $current_price > 0 && isset($checkme[‘max_amount’]) && ( $checkme[‘max_amount’] >= $_POST[‘bidamount’]) ){

    $is_new_bid = false;

    if($_POST[‘bidamount’] == $checkme[‘max_amount’] ){

    $current_price = $checkme[‘max_amount’];

    }elseif( $_POST[‘bidamount’] + 0.1 >= $checkme[‘max_amount’] ){

    $current_price = $checkme[‘max_amount’];

    // BID +50
    }elseif( $_POST[‘bidamount’] + 50 <= $checkme[‘max_amount’] ){

    $current_price = $_POST[‘bidamount’];

    }else{

    $current_price = $_POST[‘bidamount’]+0.1;
    }

    $GLOBALS[‘error_message’] = $CORE->_e(array(‘auction’,’30’));

    // NEW BIDDER IS WINNER
    }else{

    $is_new_bid = true;

    //echo “new bid”;

    // EMAIL THE OLD BIDDER AND LET THEM KNOW THEY HAVE BEEN OUTBID
    if(isset($checkme[‘userid’]) && $checkme[‘userid’] != $userdata->data->ID){

    $_POST[‘username’] = $checkme[‘username’];
    $_POST[‘title’] = $post->post_title;
    $_POST[‘link’] = get_permalink($post->ID);
    $CORE->SENDEMAIL($checkme[‘userid’],’auction_outbid’);

    }

    // NOW SET NEW PRICE
    if($current_price == “” || $current_price == “0”){

    $current_price = 1;

    // SAME USER UPDATING THEIR MAX BID
    }elseif(isset($checkme[‘userid’]) && $checkme[‘userid’] == $userdata->data->ID){

    $current_price = get_post_meta($post->ID,’price_current’,true);

    // BID IT HIGHER THAN OLD MAX BID
    }elseif(isset($checkme[‘max_amount’]) && $_POST[‘bidamount’] > $checkme[‘max_amount’] ){

    $current_price = $checkme[‘max_amount’];

    $newprice1 = $checkme[‘max_amount’]+50;
    if($newprice1 <= $_POST[‘bidamount’]){
    $current_price = $newprice1;
    }

    // BID +50
    }elseif( ($current_price + 50) <= $_POST[‘bidamount’] ){

    $current_price = $current_price + 50;

    // NEW BID + 0.1
    }else{

    $current_price = $current_price + 0.1;

    }

    //echo “now:”.$current_price.” bid:”.$_POST[‘bidamount’].” max:”.$checkme[‘max_amount’];

    $GLOBALS[‘error_message’] = $CORE->_e(array(‘auction’,’31’));

    }
    }else{

    // LEAVE MSG
    $GLOBALS[‘error_message’] = str_replace(“%a”, $_POST[‘bidamount’] ,$CORE->_e(array(‘auction’,’29’)));

    }

    // UPDATE THE LISTING WITH THE NEW CURRENT PRICE
    update_post_meta($post->ID,’price_current’, $current_price);

    October 24, 2016 at 10:39 pm

  • Lindsay
    Newbie 26 points

    FIND INCREMENTAL BIDS CHANGED MINE TO $50
    wp-content/themes/AT/framework/class/defaults_auction.php

    If you open file you can scroll down to // BIDDING SYSTEM

    & see change to incremental “BID” i.e. in my case changed to “50” add whatever value you want.

    GET ANY CURRENT BIDDING DATA
    $current_bidding_data = get_post_meta($post->ID,’current_bid_data’,true);
    if(!is_array($current_bidding_data)){ $current_bidding_data = array(); }

    //2. ORDER IT BY KEY (WHICH HOLDS THE BID AMOUNT)
    krsort($current_bidding_data);

    // 3. SWITCH THE BID TYPE TO PERFORM ACTIONS
    switch($_POST[‘bidtype’]){

    // BIDDING SYSTEM
    case “bid”: {

    // GET THE CURRENT PRICE
    $current_price = get_post_meta($post->ID,’price_current’,true);
    if($current_price == “”){ $current_price = 0; }

    // CHECK IF THE BID AMOUNT IS GREATER THAN THE EXISTINT CURRENT PRICE
    if( $_POST[‘bidamount’] > $current_price ){

    // LETS CHECK IF WE HAVE A BIGGER AMOUNT THAN THE BIDDERS TOTAL
    $checkme = current($current_bidding_data);

    // OLD BIDDER IS STILL WINNER
    if(is_numeric($current_price) && $current_price > 0 && isset($checkme[‘max_amount’]) && ( $checkme[‘max_amount’] >= $_POST[‘bidamount’]) ){

    $is_new_bid = false;

    if($_POST[‘bidamount’] == $checkme[‘max_amount’] ){

    $current_price = $checkme[‘max_amount’];

    }elseif( $_POST[‘bidamount’] + 0.1 >= $checkme[‘max_amount’] ){

    $current_price = $checkme[‘max_amount’];

    // BID +50
    }elseif( $_POST[‘bidamount’] + 50 <= $checkme[‘max_amount’] ){

    $current_price = $_POST[‘bidamount’];

    }else{

    $current_price = $_POST[‘bidamount’]+0.1;
    }

    $GLOBALS[‘error_message’] = $CORE->_e(array(‘auction’,’30’));

    // NEW BIDDER IS WINNER
    }else{

    $is_new_bid = true;

    //echo “new bid”;

    // EMAIL THE OLD BIDDER AND LET THEM KNOW THEY HAVE BEEN OUTBID
    if(isset($checkme[‘userid’]) && $checkme[‘userid’] != $userdata->data->ID){

    $_POST[‘username’] = $checkme[‘username’];
    $_POST[‘title’] = $post->post_title;
    $_POST[‘link’] = get_permalink($post->ID);
    $CORE->SENDEMAIL($checkme[‘userid’],’auction_outbid’);

    }

    // NOW SET NEW PRICE
    if($current_price == “” || $current_price == “0”){

    $current_price = 1;

    // SAME USER UPDATING THEIR MAX BID
    }elseif(isset($checkme[‘userid’]) && $checkme[‘userid’] == $userdata->data->ID){

    $current_price = get_post_meta($post->ID,’price_current’,true);

    // BID IT HIGHER THAN OLD MAX BID
    }elseif(isset($checkme[‘max_amount’]) && $_POST[‘bidamount’] > $checkme[‘max_amount’] ){

    $current_price = $checkme[‘max_amount’];

    $newprice1 = $checkme[‘max_amount’]+50;
    if($newprice1 <= $_POST[‘bidamount’]){
    $current_price = $newprice1;
    }

    // BID +50
    }elseif( ($current_price + 50) <= $_POST[‘bidamount’] ){

    $current_price = $current_price + 50;

    // NEW BID + 0.1
    }else{

    $current_price = $current_price + 0.1;

    }

    //echo “now:”.$current_price.” bid:”.$_POST[‘bidamount’].” max:”.$checkme[‘max_amount’];

    $GLOBALS[‘error_message’] = $CORE->_e(array(‘auction’,’31’));

    }
    }else{

    // LEAVE MSG
    $GLOBALS[‘error_message’] = str_replace(“%a”, $_POST[‘bidamount’] ,$CORE->_e(array(‘auction’,’29’)));

    }

    // UPDATE THE LISTING WITH THE NEW CURRENT PRICE
    update_post_meta($post->ID,’price_current’, $current_price);

    October 24, 2016 at 10:44 pm
  • Rodrigo
    Rodrigo
    Newbie 6 points

    Lindsay, Thanks for sharing helps in the bid increment.
    I made all the changes indicated but did not succeed.
    Now the issue does not end the bid.
    Your work out? There is another point to change with increase in value?
    Excuse my English, I speak of Brazil.
    I can share complete file?
    Thank you

    Rodrigo F

    October 25, 2016 at 2:31 pm
  • Rodrigo
    Rodrigo
    Newbie 6 points

    successfully added increment. Thank you.
    Another important point that I need is to exclude the maximum value.
    I want the bid go directly to the item. And that all other users can view the bid offered.
    I await any news.

    Rodrigo F

    October 26, 2016 at 2:21 pm

  • Rick
    Newbie 1 points

    Hello everyone,
    I’m just new and wanted to know if the ‘BID INCREMENT issue was resolved with the latest version 8.9.7? Or I still have to do this process as explained on this post?
    I just wanted to change the bid increment value from the default value of 1 to $25, is this proven to work without any glitch?

    Will appreciate your kind reply, thank you.

    November 11, 2017 at 3:30 am
  • Josh
    Josh
    Super Guru 13,887 points

    Hello Rick,
    You will need to edit theme core files to change this

    November 13, 2017 at 1:36 pm
Viewing 11 posts - 1 through 11 (of 11 total)

Didn't find what you were after?

Chat with us now

or contact our support team