@itprosteer/vendure-np-shipping
v0.3.0
Published
Vendure shipping plugin for nova poshta
Downloads
54
Readme
Vendure Nova Poshta Shipping
Install
1. Install and configure Vendure
Here you can find out how to install
2. Install the core package
npm install @vendure-advanced-shipping/core
2.1 Install the nova poshta shipping plugin.
npm install @itprosteer/vendure-np-shipping
3. Add all plugins in Vendure configuration
import { AdvancedShippingCorePlugin } from '@vendure-advanced-shipping/core';
import { NpShippingPlugin } from 'vendure-np-shipping';
const config: VendureConfig = {
...
plugins: [
AdvancedShippingCorePlugin,
NpShippingPlugin.init({
apiKey: nova_poshta_api_key
})
]
}
4. Extend the UI plugin (optional)
You need to extend the UI adding the uiExtensions
in the compileUiExtensions
of the AdminUiPlugin
. You can read more about how to config here
import { AdvancedShippingCorePlugin } from '@vendure-advanced-shipping/core';
const config: VendureConfig = {
...
plugins: [
...
AdminUiPlugin.init({
...
app: compileUiExtensions({
...
extensions: [AdvancedShippingCorePlugin.uiExtensions],
})
})
]
}