vendure-plugin-import-products
TypeScript icon, indicating that this package has built-in type declarations

2.3.0 • Public • Published

Vendure Import Products Plugin

  • 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
        },
    ]
  }

Getting Started

  1. Run
  npm i @nestjs/axios @nestjs/schedule axios ts-node
  1. 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.

  1. Make sure to run database migrations after updating your vendure-config.ts

Package Sidebar

Install

npm i vendure-plugin-import-products

Weekly Downloads

18

Version

2.3.0

License

MIT

Unpacked Size

39.3 kB

Total Files

15

Last publish

Collaborators

  • dalyathan