-
This plugin imports the products from the specified url every specified day.
-
The products are expected to be in the following format
{
"Items": [
{
"name": string,
"id": string,
"price": string,
"unit": string,
"group": string,
"sku": string,
"Collection": string,
"parentfacet": string,
"childfacet": string
},
]
}
- Run
npm i @nestjs/axios @nestjs/schedule axios ts-node
- And then add this to your
vendure-config.ts
.
import {ProductImportPlugin} from "vendure-plugin-import-products";
ProductImportPlugin.init({
url: `https://tfcmayasoftdata.up.railway.app/allproducts`,
everyThisDay: 3
})
This means the products will be imported from the specified url every third day.
- Make sure to run database migrations after updating your
vendure-config.ts