View Full Version : How to make a simple Check out process
quykhoa374694
03-21-2009, 10:10 PM
Hi
I've already built my store with ecart but i had some confuse with the check out process. I don't want to use Paypal, 2Checkout...process that include in eCart. I want the check out with my simple way: the customer add the items into their cart, then check out. A email will send to them and the store owner with the list of item and the price. The cart is clear and the customer can make another order, that's all.
Could anybody show me how to do.
Thanks a lot!
Ray Borduin
03-23-2009, 07:35 AM
Run the Checkout wizard. Post specific questions or issues if you run into them during that process.
quykhoa374694
03-23-2009, 10:37 AM
I've already make the check out. But when I return to the store to make another order, there's still the old items in my cart. How to make the new session for the new order.
Ray Borduin
03-23-2009, 03:11 PM
Clear the session on the order confirm page.
<?php
session_destroy();
?>
should do it.
quykhoa374694
03-24-2009, 12:03 AM
When I use these code
<?php
session_destroy();
?>
It clear all the sessions.
For my website, there's still others session. One which I want to keep is the IDUser session that is created when user login ( I built with SecurityAssist)
How can just clear the current cart session and make the new when user make another order?
Thanks
Ray Borduin
03-24-2009, 07:52 AM
$cartName->ClearCart();
Would clear the cart.
You should also use:
unset($_SESSION['OrderID']);
to clear the session variable storing the current order id to reset the checkout process as well as the cart.
jajja
03-25-2009, 01:15 PM
When I use:
<?php $*********_cart->ClearCart();
unset($_SESSION['OrderID']);
?>
at the very end of the order confirmation page, I get:
Warning: Cannot modify header information - headers already sent by (output started at /home/**********/public_html/***********/***************.php:69) in /home/**********/public_html/***********/WA_eCart/*********_cart_PHP.php on line 118
I guess I cant empty the cart before the cart is written to the page, so I have to put this code at the end of the page(?)
vBulletin® v3.8.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.