Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Empty Cart On Logout


carlost

Recommended Posts

Posted

Hello,

 

Would much appreciate knowing how I can have customers carts emptied after they logout?

 

Thanks in advance.

 

Carlos

Posted
Hello,

 

Would much appreciate knowing how I can have customers carts emptied after they logout?

 

Thanks in advance.

 

Carlos

 

Excellent question. I would like to know the same.

Posted

you need to modify the catalog\logoff.php file.

 

find this:

$cart->reset();

 

change it to this

$cart->reset(true);

 

is if it works that way.

Posted

enigma1,

 

Thanks for replying. I had looked at this before, and it doesn't work for me. The cart item(s) remain in the cart after looging off, and logging back in.

 

Carlos

Posted

oops sorry the code is correct the location isnt. Move that code above right after this line

 

  $breadcrumb->add(NAVBAR_TITLE);

Posted

Well enigma1...

 

Works like a charm. Thanks much for taking the time to respond, and re-respond.

 

I had before seen the code with "true" in it in another file, and had previously tried it in logoff.php because it seemed logical. It never occured to me to try and re-place the code elsewhere in logoff.php.

 

Much appreciated... Have a great rest of your day there in your world!

 

Carlos

Posted

With the option type feature when a customer gets to the confirmation page and needs to edit the product, when they do so and then proceed, it puts another product in their cart.

Has anyone had this issue?

 

I can edit the product fine, but then I press add to cart then checkout, it adds another product when all I need is to edit and update.

Any suggestions?

Posted

edkiefer,

 

I am not sure of exactly what procedure you're describing.

 

When at the confirmation page, if clicking on Product "edit" I am taken back to the cart where my only options are to "delete" or increase/decrease the "quantity" of an item - then "checkout" again.

 

If I go from the cart to a products page (to change an attribute option for example), I then have to add the item with the new attribute option to the cart, and delete the item with the first attribute option (which I changed my mind about in the first place) then "checkout" again.

 

This all works as it should, for me. Must be something else you're referring to?

 

Carlos

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...