I am using simpleCart js for my ecommerce project in asp.net mvc. All is going well and items are stored in cart. Basically the cart is storing items in local storage of client browser. I have a anchor tag on which user will clik and go to check out page where i want to show all the cart products which is stored in local storage. I cannot get local storage data in my action. Anybody any idea how it will be done?
Asked
Active
Viewed 105 times
0
-
you don't need to do anything on the back-end, just manipulate it in the onload of your page with js – Elyas Esna Aug 12 '18 at 07:45
-
this will show the cart data in a table. How to customize that table ? – f138179 Sumair Sajid Aug 12 '18 at 07:50
-
I want this table in a c# list on server side – f138179 Sumair Sajid Aug 12 '18 at 07:53
-
and where is the code? – derloopkat Aug 12 '18 at 11:58
-
Back to basics: If you want data _submitted_ to the server, then _submit_ it. Storing it in `localStorage` just does what it says. Server has no concept of it. – EdSF Aug 12 '18 at 19:13