Menu

Cart is not empty after sending price request

2002-11-20
2002-11-20
  • Sven Kasemann

    Sven Kasemann - 2002-11-20

    Hello,

    i am running the phPay in request mode. (not as shop)
    When i am on the last page after processing mail the requested articles (cart) are not deleted by system.

    Also there is no counter for the requested items visible on the left side in the navigation bar. Is that a feature ?

    Thanks a lot

    Sven

     
    • Andreas Kansok

      Andreas Kansok - 2002-11-20

      To fix the first problem remove the '#' near end of mailer.inc.php. There is a line like "db_query(delete from cart where session='$sess'") ... ;

      Second problem is easiest to fix with a layer and JavaScript, because you can update content of this layer without reload navi-frame. Otherwise you have to reload after every 'add to cart' navi-frame with JS or PHP.
      PHP-solution is most complicated, because <form action> has to become login.php (now it is main.php) and rebuild complete frameset. Function-call $cart->() has to go into login.php and lot's more. Also you to add some parts from show_cart.inc.php into nav.php to get number of items.

       
    • Andreas Kansok

      Andreas Kansok - 2002-11-20

      ...Function-call $cart->total($sess) or $cart->num_items($sess) ... or similar.

      ...  Also you have to add ...

      ;-)

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.