Results 1 to 5 of 5

Thread: Empty cart when placing a new order?

  1. #1
    Join Date
    Oct 2009
    Posts
    12

    Default Empty cart when placing a new order?

    Hello there,

    I was wondering if anyone knew how to make my template empty the cart on placing a new order?

    I ask because I am trying to make my order form wizard based and if the user clicks back/forward etc, it is adding orders twice?

    Thank you
    John

  2. #2
    Join Date
    Sep 2007
    Location
    Jimboomba, Qld. AU
    Posts
    2,291

    Default

    look at the code at the very bottom of products.tpl in the orderforms/default folder
    the answer is there

  3. #3
    Join Date
    May 2009
    Location
    Deutschland
    Posts
    377

    Default

    there are two possible GET values for a

    cart.php?a=startover
    cart.php?a=empty

  4. #4
    Join Date
    Sep 2007
    Location
    Jimboomba, Qld. AU
    Posts
    2,291

    Default

    I just double checked and the part that I was refering to is no longer there.
    This is what it was anyway
    {php}
    if (isset($_SESSION["cart"])) {
    unset($_SESSION["cart"]);
    }
    {/php}

  5. #5
    Join Date
    Oct 2009
    Posts
    12

    Default

    Quote Originally Posted by sparky View Post
    I just double checked and the part that I was refering to is no longer there.
    This is what it was anyway

    Brilliant! Thank you that worked.

    Thank you so much! That's one ordeal out of the way I was worried that I was going to have to make it somehow do a roundtrip post to the cart...

    Thank you also herzz, I think that solution would work too but I like the PHP way.

    Thanks again!
    John

Similar Threads

  1. Cart Empty Value - give the number of service in the cart.
    By souzadavi in forum Feature Requests
    Replies: 2
    Last Post: 11-28-12, 06:09 PM
  2. Placing order for custom $ value
    By Varka in forum Customisation & Integration Questions
    Replies: 0
    Last Post: 10-13-10, 03:00 PM