清除 Ubercart 中打开的购物车

发布于 2024-09-06 10:55:55 字数 109 浏览 2 评论 0原文

如何清除 Ubercart 中未完成的购物车(未完成的结账)?除非我找错了地方,否则我看不到执行此操作的功能或管理设置。

例如,我只想清除已四处走动并向购物车添加物品但未完成订单的购物车。

How do you clear out open carts (non completed checkouts) in Ubercart? I don't see a function or admin setting to do this unless I looked in the wrong place.

Example, I just want to clear out carts who have gone around and added things to their cart, but did not complete the order.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

万劫不复 2024-09-13 10:55:55

uc_cart_empty() 将根据购物车 ID 清理购物车。
uc_cart_get_id() 将为您提供当前的购物车 ID。

想要的是检查所有未完成的购物车。
对于注册用户,购物车 ID 始终是用户的 uid。
对于匿名用户,如果我没记错的话,购物车的生命周期很短,因此不需要“手动”进行操作。

希望这会有所帮助,无论如何,这应该是您的起点。
问候,
蜀蜀

uc_cart_empty() will clean the cart according to cart ID.
uc_cart_get_id() will give you the current cart ID.

What you want is to go over all uncompleted carts.
For registered users the cart ID is always the uid of the user.
For anonymous users, if I am not mistaken, the cart has a short lifetime, so no need to do it "manually".

Hope this helps, and in any way, this should be your starting points.
Regards,
Shushu

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文