npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@codibri/vendure-plugin-product-catalog-feed

v1.3.0

Published

Vendure plugin to create product catalog feed

Downloads

20

Readme

Vendure product catalog feed plugin

This plugin generates an xml of all products to sync your catalog with Google or other tools.

When a product or variant is changed, the channel will be marked to rebuild the xml. Every night the channels with changes get rebuild. The interval for the rebuild is configurable via cron notation. For each channel the build is executed in a worker.

Requirements

Install the Payments plugin and the Mollie client:

yarn add @codibri/vendure-plugin-product-catalog-feed or npm install @codibri/vendure-plugin-product-catalog-feed

Setup

  1. Add the plugin to your VendureConfig plugins array and add ProductCatalogFeedPlugin.ui to the AdminUi plugin
import { ProductCatalogFeedPlugin } from "@codibri/vendure-plugin-product-catalog-feed";

// ...

plugins: [
  AdminUiPlugin.init({
    port: 3002,
    route: "admin",
    app: compileUiExtensions({
      outputPath: path.join(__dirname, "../admin-ui"),
      extensions: [ProductCatalogFeedPlugin.ui],
      devMode: true,
    }),
  }),
  ProductCatalogFeedPlugin.init({ outputInterval: "0 0 * * *" }),
];
  1. Go to the channel config in the Admin UI and change the Product catalog field to URL or SFTP to enable the channels product feed.

Plugin options

| key | required | default value | description | | -------------- | -------- | ------------- | ------------------------------------------------------------- | | assetUrlPrefix | yes | | The url to access the Vendure server | | outputInterval | no | 0 0 * * * | The interval for building the XML file in cronTime notation |

Config

In the Admin UI you can configure each channel individually.

| Field | Description | | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | Shop URL | THe url of the shop front end. | | Product catalog | Disabled: No product feed will be generated for this channelURL: The XML file will be build and availble via an urlSFTP: The XML file will be build and uploaded to configured SFTP server | | SFTP server | Only when SFTP is selected as output | | SFTP port | Only when SFTP is selected as output. Must be between 1 and 65535 | | SFTP user | Only when SFTP is selected as output | | SFTP password | Only when SFTP is selected as output |

API endpoint

When URL is selected in the channel config, the genrated XML is availble via the /product-catalog

If you only have multiple channel, you can provide the channel token in the header or as query parameter. /product-catalog?token=channelToken

Manual trigger

On the products overview page in the Admin UI you will find a new button "Rebuild product catalog" to trigger the build of the product catalog feed of the current selected channel.

An extra permission ProductCatalogFeedRebuild is added to control who can accees the manual trigger button on the products page.