1.1.0 • Published 12 months ago

@pinelab/vendure-plugin-order-cleanup v1.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
12 months ago

Vendure Order Cleanup Plugin

Official documentation here

This plugin provides functionality to automatically cleanup orders after a specified delay period. It's useful for scenarios where you want to automatically cleanup orders that haven't been settled after a certain period of time.

This prevents issues with stale orders that have out of stock items in them, or items that are no longer available.

Getting started

Add the plugin to your vendure-config.ts

import { OrderCleanupPlugin } from '@pinelab/vendure-plugin-order-cleanup';

plugins: [
  OrderCleanupPlugin.init({
    olderThanDays: 30,
  }),
],

Manually call /order-cleanup/trigger or create a cronjob that periodically calls this endpoint.

  • Only deletes up to 10 000 orders per job run
  • Only cancels orders that are in AddingItems, Created or ArrangingPayment state
  • Check your logs for uncancellable orders. These issues, if any, should be fixed manually, to prevent them from being processed infinitely by this plugin.
1.1.0

12 months ago

1.0.0

12 months ago