@pinelab/vendure-plugin-modify-customer-orders
TypeScript icon, indicating that this package has built-in type declarations

1.5.0 • Public • Published

Modify Customer Orders plugin

This plugin allows you to convert an active order from a customer to a Draft order, edit it, and connect it back to the customer.

  1. Login as administrator and go to 'Orders' and then the 'Active' tab
  2. Click the 'Convert order to Draft'
  3. The order can now be edited as admin under 'Drafts'
  4. Click Complete draft to connect the order as active order to a customer. (This behaviour can be disabled, see autoAssignDraftOrdersToCustomer below)

When you connect a Draft order to a customer, the customers existing active order will be made a Draft.

Getting started

// vendure-config.ts
import { ModifyCustomerOrdersPlugin } from '@pinelab/vendure-plugin-modify-customer-orders';

plugins: [
  ModifyCustomerOrdersPlugin.init({
    /**
     * Automatically make completed draft orders active orders for the connected customer
     */
    autoAssignDraftOrdersToCustomer: true,
  }),
  AdminUiPlugin.init({
    port: 3002,
    route: 'admin',
    app: compileUiExtensions({
      outputPath: path.join(__dirname, '__admin-ui'),
      extensions: [ModifyCustomerOrdersPlugin.ui], // Add the "Convert to draft" button
      devMode: true,
    }),
  }),
];

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.5.073latest

Version History

VersionDownloads (Last 7 Days)Published
1.5.073
1.4.0120
1.3.114
1.3.00
1.2.00
1.1.50
1.1.10
1.1.00
1.0.20
1.0.11
1.0.01
0.0.40
0.0.30

Package Sidebar

Install

npm i @pinelab/vendure-plugin-modify-customer-orders

Weekly Downloads

209

Version

1.5.0

License

MIT

Unpacked Size

22.9 kB

Total Files

22

Last publish

Collaborators

  • mbrug