an
groups-icon

Bug in Buy it now: Solved

Wait a minute... This content is very very old. We no longer sell or support this theme version. New Topics
  • Version 9
    Omer Nesher
    0 points
    Beginner

    There is a bug that causes auctions not to end when a user clicks buy it now.

    After a user has clicked buy it now, a second user can go to that auction and click buy it now and become the winner instead of the original one.

    I have found the problem. In defaults_auction.php you only close the auction if the amount sold is greater than the inventory. It should actually be if the amount sold is equal (or greater) than inventory.

    
    // IF SOLD MORE THAN QTY EXPIRE LISTING
    if($qty_sold > $qty){
      update_post_meta($post->ID,'listing_expiry_date','');
    }
    

    Should be:

    
    // IF SOLD ALL OF QTY EXPIRE LISTING
    if($qty_sold >= $qty){
      update_post_meta($post->ID,'listing_expiry_date','');
    }
    
    June 26, 2016 at 9:24 am
  • Josh njenga
    -10 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    June 27, 2016 at 12:28 pm
  • Omer Nesher
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    June 28, 2016 at 8:58 pm
  • James G.
    1 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    June 30, 2016 at 5:22 pm
  • Liz Liz
    13 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    July 1, 2016 at 4:09 am
  • Josh njenga
    -10 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    July 1, 2016 at 8:15 am
  • Will Miller
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    January 1, 2018 at 3:49 am

318

Views

6

Replies