Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am having an issue where if a user adds various products to a cart and does not purchase commerce is issuing an order number, if that person then then comes back a few weeks later and empties the cart and buys a different product then commerce is giving the complete order a new order number but leaving the old cart in 'shopping carts'.
How do I fix this?
Comments
Comment #2
czigor CreditAttribution: czigor at Centarro commentedHi noovocreative,
You can configure a cron job to remove old cart orders.
commerce_stock_reserve_cron()
in http://cgit.drupalcode.org/commerce_stock_reserve/tree/commerce_stock_re... is doing something similar, in case you need a starting point. It does not remove the order itself, only its line items.