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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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.
...Function-call $cart->total($sess) or $cart->num_items($sess) ... or similar.
... Also you have to add ...
;-)