开发者

Purge open carts in 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.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜