Skip to content

pittica/gatsby-source-prestashop

Repository files navigation

pittica/gatsby-source-prestashop

License Version Release Gatsby Version React Version

Description

PrestaShop source plugin for GatsbyJS.

Install

npm npm

npm install @pittica/gatsby-source-prestashop

Usage

The plugin provides source from a PrestaShop site.

Configuration

Edit your gatsby-config.js.

module.exports = {
  plugins: [
    {
      resolve: `@pittica/gatsby-source-prestashop`,
      options: {
        url: SHOP_URL,
        key: SHOP_KEY,
        locale: LOCALE,
        images: {
          download: false,
          format: {
            product: 'medium_default',
            category: 'category_default',
            manufacturer: 'manufacturer_default'
          },
          extension: 'jpg'
        }
      }
    },
  ],
}

Options

  • url

    Description: The URL of the PrestaShop installation.

    Required: YES.

    Type: String.

  • key

    Description: The PrestaShop webservice key.

    Required: YES.

    Type: String.

  • locale

    Description: The locale iso_code of the language.

    Required: NO.

    Type: String.

  • images

    Description: Image settings.

    Required: NO.

    Type: Object.

    Default value: true.

Copyright

(c) 2021, Pittica S.r.l.s..