Buy now only with multiple items progress

Discussion in 'General Support' started by pani100, Sep 18, 2014.

  1. pani100

    pani100 Well-Known Member

    Joined:
    May 9, 2011
    Messages:
    2,327
    Likes Received:
    449
    This is weird.
    we have around line 91
    PHP:
    if ($Auction['closed'] == 1)
    {
        
    header('location: item.php?id=' $_REQUEST['id']);
        exit;
    }
    And as me mark it as ends = '" . $NOW . " passing it through the cron should close the auction and that should do the job of not being able to go back to buy_now.php.
    Check the alterations done, to make sure there is nothing forgotten, in buy now.php
     
  2. athera

    athera Active Member

    Joined:
    Jul 10, 2014
    Messages:
    282
    Likes Received:
    40
    Hi shebov can you post your buy_now.php so we can take a look
     
  3. shebov

    shebov New Member

    Joined:
    Jun 18, 2014
    Messages:
    30
    Likes Received:
    2
    Last edited: Oct 17, 2014
  4. athera

    athera Active Member

    Joined:
    Jul 10, 2014
    Messages:
    282
    Likes Received:
    40
    yes ok

    near line 154 find

    PHP:
        if (isset($qty) && $qty $Auction['quantity'])
        {
            
    $ERR $ERR_608;
        }
        
    replace with
    PHP:
        if (isset($qty) && $qty $Auction['quantity'])
        {
            
    $ERR $ERR_608;
        }
        else if (!isset(
    $qty) || $qty 1)
        {
            
    $ERR $ERR_601
        }
     
  5. athera

    athera Active Member

    Joined:
    Jul 10, 2014
    Messages:
    282
    Likes Received:
    40
    Is this a buy now only auction?? Or a regular auction with BuyNow??
     
  6. shebov

    shebov New Member

    Joined:
    Jun 18, 2014
    Messages:
    30
    Likes Received:
    2
    it is buy now only
     
  7. pani100

    pani100 Well-Known Member

    Joined:
    May 9, 2011
    Messages:
    2,327
    Likes Received:
    449
    @ shebov
    You are missing quite a few important lines.
    try this one.

    View attachment buy_now.php
    updated as forgot one change value


    @ Athera, have a look at this as the buyer_fee is not fixed value.
     
    Last edited: Oct 17, 2014
  8. shebov

    shebov New Member

    Joined:
    Jun 18, 2014
    Messages:
    30
    Likes Received:
    2
    works fine.. I am happy ))

    One note.... after logging in next message appears "You have been outbid"
     
  9. pani100

    pani100 Well-Known Member

    Joined:
    May 9, 2011
    Messages:
    2,327
    Likes Received:
    449
    Join the club:D
     
  10. athera

    athera Active Member

    Joined:
    Jul 10, 2014
    Messages:
    282
    Likes Received:
    40
    I am not sure what you guys are doing in that club

    But there is a quick fix to the problem above


    Near line 282


    PHP:
            if (in_array($user->user_data['id'], $hbidder_data))
            {
                
    $yourbidmsg $MSG['25_0088'];
                
    $yourbidclass 'yourbidwin';
                if (
    $difference <= && $auction_data['reserve_price'] > && $auction_data['current_bid'] < $auction_data['reserve_price'])
                {
                    
    $yourbidmsg $MSG['514'];
                    
    $yourbidclass 'yourbidloss';
                }
                elseif (
    $difference <= || $auction_data['bn_only'] == 'y')
                {
                    
    $yourbidmsg $MSG['25_0089'];
                }
            }
            else
    replase it with

    PHP:
            if (in_array($user->user_data['id'], $hbidder_data))
            {
                
    $yourbidmsg $MSG['25_0088'];
                
    $yourbidclass 'yourbidwin';
                if (
    $difference <= && $auction_data['reserve_price'] > && $auction_data['current_bid'] < $auction_data['reserve_price'])
                {
                    
    $yourbidmsg $MSG['514'];
                    
    $yourbidclass 'yourbidloss';
                }
            }
            elseif (
    $auction_data['bn_only'] == 'y')
            {
                
    $yourbidmsg $MSG['25_0089'];
                
    $yourbidclass 'yourbidwin';
            }
            else
     
  11. pani100

    pani100 Well-Known Member

    Joined:
    May 9, 2011
    Messages:
    2,327
    Likes Received:
    449
    Hi Athera, the club is to create a better user message system on the item page (and possibly on others too) now we have buy now only working. Like:
    10 of these items have been purchased by you, Buy more?
    you have agreed to buy 10 of these items, would you like to pay now?
    etc...
     
  12. Jan Krohn

    Jan Krohn Member

    Joined:
    Aug 31, 2015
    Messages:
    73
    Likes Received:
    11
    Guys, I think fixing multiple items was never added to Github, so it was not fixed with version 1.1.2... :confused:o_O

    A few of these fixed are not even possible any longer because the code is different in the master branch :(
     
  13. renlok

    renlok Administrator Staff Member

    Joined:
    Oct 20, 2008
    Messages:
    2,858
    Likes Received:
    330
    I am in the process of adding it to github now so it will finally be included in a release :p
     
  14. Jan Krohn

    Jan Krohn Member

    Joined:
    Aug 31, 2015
    Messages:
    73
    Likes Received:
    11
    :D Looking forward to it. Thanks!
     
  15. renlok

    renlok Administrator Staff Member

    Joined:
    Oct 20, 2008
    Messages:
    2,858
    Likes Received:
    330
  16. pani100

    pani100 Well-Known Member

    Joined:
    May 9, 2011
    Messages:
    2,327
    Likes Received:
    449
  17. super_st

    super_st Well-Known Member

    Joined:
    Dec 2, 2012
    Messages:
    634
    Likes Received:
    141
    Yeah may add a fresh install over the weekend, looks like I got a few told files to update for the bootstrap as well
     
  18. Jan Krohn

    Jan Krohn Member

    Joined:
    Aug 31, 2015
    Messages:
    73
    Likes Received:
    11
    I just got feedback from a seller. There are still issues in buy now only with multiple items. The seller doesn't see the sold items and winne rinformation in his overview.

    It looks like this has been fixed before, but maybe it's still not integrated in the current code...

    Anyway, I've opened another bug report for this:

    http://bugs.webidsupport.com/view.php?id=638
     

Share This Page