7.0.5 • Published 11 months ago

vendure-plugin-modify-customer-orders v7.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

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)

Getting started

// vendure-config.ts
import { ModifyCustomerOrdersPlugin } from '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,
    }),
  }),
];

npm.io

7.0.5

11 months ago

7.0.0

1 year ago

6.0.0

1 year ago

5.8.1

1 year ago