VirtoCommerce / vc-storefront

Virto Commerce Storefront - ASP.NET Core 8.0

Home Page:http://virtocommerce.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How can I save user's information in virto commerce using cookies

28shagun opened this issue · comments

I want to store user's details like address and personal information so that when next time user buy something some fields fill automatically with the help of cookies. Can anyone help me in this how can I achieve this.

  1. You can address in contact profile. A customer entity has a collection of addresses. You can save the address from checkout to contact profile and read it to fill automatically.

  2. You can dynamic properties contact profile. Create a new property and save/read custom values.
    image

  3. Yes, you can use cookies (local-storage) on client and server-side.
    https://www.w3schools.com/js/js_cookies.asp
    https://www.c-sharpcorner.com/article/asp-net-core-working-with-cookie/