Results 1 to 5 of 5

Thread: How to empty cart after logout

  1. #1
    New user
    Join Date
    07-25-11.
    Posts
    20

    Default How to empty cart after logout

    Hi
    Simple question: I would like to empty shopping cart automaticly after logoff, how to do it?

    BR

  2. #2
    Experienced user
    Join Date
    06-10-09.
    Location
    Cape Town, South Africa
    Posts
    1,387

    Default Re: How to empty cart after logout

    there is a logout hook, which you should be able to use to trap this and perform the cart empty.

    http://www.contao.org/hooks.html#postLogout

  3. #3
    New user andypillip's Avatar
    Join Date
    08-26-11.
    Location
    Munich, Germany
    Posts
    7

    Default

    Hei hei guys.

    Did this become default behaviour in Isotope 1.4 somewhen?

    I have an installation here that empties the cart on logout, but I can't find any Logout-Hook in Isotope's source code, neither a setting that says so.

    Thanks.

  4. #4
    Official Contao Team andreas.schempp's Avatar
    Join Date
    06-10-09.
    Posts
    63

    Default

    The cart is bound to the user account. So if you log out, the cart will be empty (because you get a new guest cart). If you log back in, your cart will be "restored".
    terminal42 gmbh
    We are Contao Premium-Partner! For Isotope eCommerce support check out the Isotope Circle.

  5. #5
    New user andypillip's Avatar
    Join Date
    08-26-11.
    Location
    Munich, Germany
    Posts
    7

    Default

    Quote Originally Posted by andreas.schempp View Post
    The cart is bound to the user account.
    well, it gets bound to the user as soon as she logs in – before it's not.

    So it's not necessarily expected to get deleted.

    Thanks for the info – so it is standard behaviour. (:

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •