PDA

View Full Version : Checkout


cgonzalez0909264205
04-21-2009, 03:30 PM
Hi

When the client click in checkout button, when go back to Cart dont erase the products.

Is possible when click checkout button erase the products???

The another probles is when the same client make to orders in the database put the same order_id is posible make a Unique id for transaction?


Thanks

Ray Borduin
04-22-2009, 09:31 AM
If you clear the orderID from the session it will be regenerated. You may want to clear the entire session and that would clear the cart and the orderID all at once.

The syntax depends on your server model, but you can clear the cart and order id session variables at any point in the process you want... usually it is done on the payment success page.

cgonzalez0909264205
04-23-2009, 08:29 PM
Thanks for repleing, how destroy the order_id session?

session_destroy();

This destroy all session variable??'

Thanks