Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Is any way in UI or by request to clear old purchese orders with status basket? I see them a lot in my db and perfomance is slow.
You can do it pretty easy through uCommerce API (Unless you have a uCommerce version older than 220.127.116.11).
The following code is untested:
var baskets = PurchaseOrder.Find(x => x.IsBasket && x.OrderStatus.Name == "Basket");
foreach (var basket in baskets)
I would also only delete baskets older than a specific date otherwise you risk deleting a basket where a customer is about to go through checkout (That would be unfortunately).
Best regards Martin
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted