Anonymous user + cookies activated: Increase nr. of items in the cookies
Logged in: Data is written to the temporary cart items table.
Anonymous user + cookies deactivated: Open login page and store the product "add to cart" in localStorage. As soon as the user is logged in, item is added to the cart in the database for temporary storage. LocalStorage is wiped.
Anonymous user + cookies activated: Increase nr. of items in the cookies
Logged in: Data is written to the temporary cart items table.
Anonymous user + cookies deactivated: Open login page and store the product "add to cart" in localStorage. As soon as the user is logged in, item is added to the cart in the database for temporary storage. LocalStorage is wiped.