Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Cart contents change after login


dunpealslyr

Recommended Posts

Posted

ok so here is the deal

someone creates an account and does not purchase anything

next week they put 4 items in their cart, then log in

the cart is now empty after logging in

 

 

i know what the problem is, but i would like to see if someone else already solved it.

 

the problem is:

when someone creates an account and logs in a cart 'session' is started for them

when they log in next time, their current cart session is overwritten with their previous cart session. (in the example above, an empty cart)

 

help please?

Posted

your are incorrect there, the customers cart is stored in the customers_basket table, the session is nothing to do with the database in that respect.

The sessions does hold this info but that part is saved before its destroyed (customer logs out)

There has been a problem that shows up on the forum of owners with the oposite problem, the cart that is stored is at a certain price, the store owner has to put prices up but this is not reflected in the cart item saved in the database its the same with Quantity, an item that is in stock when added might be out of stock when the customer logs back in to purchase it.

As for whay yours is clearing is a mystery, could be an add on (there are some written for the above mentioned problem) or maybe the table was truncated by someone with out your knowledge?

Nic

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Archived

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

×
×
  • Create New...