一旦新用户注册,购物车就变空了 [英] Cart become empty once a new user registered

查看:85
本文介绍了一旦新用户注册,购物车就变空了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我在注册过程中遇到问题。当新客户成功注册后,他/她添加到购物车中的所有产品都将消失。我们有什么方法可以坚持购物车吗?

I have an issue with the registration process. When the new customer registered successfully, all the products that he/she has added to their cart are disappeared. Is there any way we can persists the cart?

谢谢,

最好的问候,

Ronald Wisnu Hariyanto

Ronald Wisnu Hariyanto

谢谢你,最诚挚的问候,Ronald Wisnu Hariyanto

Thank you, Best Regards, Ronald Wisnu Hariyanto

推荐答案

Hello Ronold,

Hello Ronold,

我不知道您在创建购物车/购物篮后目前使用的是什么程序,但这是创建篮子:

I don't know what procedure you are currently using behind creation of the cart/basket , but this is the scenario for creation of basket:

通常我们有两种类型的用户

Generally we have two type of users

1。匿名(或访客)用户和 

1. anonymous (or guest) users and 

2。注册用户。

所以我们可以假设购物车或购物篮 属于未登录的用户称为
匿名购物车/购物篮。用户可能是 在登录前将产品或商品添加到购物车/购物篮中。

so we can assume that a cart or basket  that belongs to a user who has not signed in is called an anonymous cart/basket. A user could be  add products or items to a cart/basket before login.

因此,如果用户登录 通过现有帐户或通过创建新帐户。在这两种情况下,我们都需要将
匿名购物车/购物篮合并到用户帐户。

So if the user login  either by existing account or by creating a new account. In both cases we need to merge the anonymous cart/basket to user account.

和如果你想要一些代码参考,请看一下这个链接:

and if you want some code reference , please take a view to this link:

http://msdn.microsoft.com/en-us/library/bb219209%28v=cs.70% 29.aspx

http://msdn.microsoft.com/en-us/library/bb219209%28v=cs.70%29.aspx

希望这会对你有帮助....!

Hope this will help you.... !

谢谢,


这篇关于一旦新用户注册,购物车就变空了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆