Sends orders to MyParcel on fulfillment.
This plugin adds a custom permission 'SetMyParcelConfig' that is needed to set MyParcel config via the admin interface.
Add this to your plugins in vendure-config.ts
:
MyparcelPlugin.init({
vendureHost: 'https://your-vendure-host.io',
syncWebhookOnStartup: true, // If you want to automatically set vendureHost as webhook on MyParcel account
});
Add this to your AdminUiPlugin:
AdminUiPlugin.init({
...
app
:
compileUiExtensions({
outputPath: path.join(__dirname, '__admin-ui'),
extensions: [MyparcelPlugin.ui],
})
})
Start Vendure and login:
- 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.
Reach out to me at pinelab.studio if you need any help.
Contributions always welcome!
yarn start
starts the dev-server.localhost:3050/admin
will have an order already placed ready to be fulfilled.
Run yarn test
to run e2e tests
Enjoy the Pinelab Vendure plugins? Consider becoming a sponsor.
Or check out pinelab.studio for more articles about our integrations.