yarn install vendure-plugin-myparcel
- Add this to your plugins in
vendure-config.ts
:
import { MyparcelPlugin } from 'vendure-plugin-myparcel';
plugins: [
MyparcelPlugin.init({
vendureHost: 'https://your-vendure-host.io',
syncWebhookOnStartup: true,
}),
...
]
- Add this to your AdminUiPlugin:
import { MyparcelPlugin } from 'vendure-plugin-myparcel';
plugins: [
AdminUiPlugin.init({
port: 3002,
route: 'admin',
app: compileUiExtensions({
outputPath: path.join(__dirname, '__admin-ui'),
extensions: [MyparcelPlugin.ui],
}),
}),
];
Read more about Admin UI compilation in the Vendure
docs
- Start Vendure and go to
Settings
> MyParcel
and fill in your MyParcel API key.
- Create a shipmentMethod with
MyParcel fulfillment
.
- Place an order and select the shippingMethod.
- Go to the Admin UI and click on
fulfill
- Your shipment should be in your MyParcel account.