Shopping cart with only cookies

467 views Asked by At

I am trying to create a webshop. First of all I can read Products from my Database and can show them in my Views. Now I want to create a Shopping cart where can I store the Products(ProductName,Price,Quantity,...). I have a View called "Details", where I see all Products with price etc.There is a Button called "Into Shopping Cart". With this button im sending the required informations into my ShoppingCartController/CreateShoppingBasket (Method name), where I collect the data from my FormCollection, to create a cookie but this doesnt work......

Quick Question:

How can I realize a Shopping Cart/Basket ONLY with Cookies (no DatabaseConnection but maybe Models but I have no idea). Is there any Cookie Array or can I store my Cookies (with same name for example Cookie["basket"]) into a Array,List ... ? and then read from this Collection all cookies on a view.

Sorry for my english Guys

0

There are 0 answers