Package Exports
- @massivdash/gatsby-source-woocommerce
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@massivdash/gatsby-source-woocommerce) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
gatsby-source-woocommerce
Source plugin for Gatsby. Pulls in data from protected routes via the WooCommerce REST API with credentials.
Install
npm install --save gatsby-source-woocommerce
How to Use
// In gatsby-config.js
plugins:[
{
resolve: "@massivdash/gatsby-source-woocommerce",
options: {
// Base URL of Wordpress site
// This counts controls the API get with ?per_page=
// default: 10
itemCount: 20,
api: 'wordpress.domain',
// true if using https. false if nah.
https: false,
api_keys: {
consumer_key: <key>,
consumer_secret: <secret>,
},
// Array of strings with fields you'd like to create nodes for...
fields: ['products']
}
}
]
Currently Supported Fields
- Products
- Customers
- Orders
- Reports
- Coupons
FORK
This is fork from https://registry.npmjs.org/gatsby-source-woocommerce/
@SPACEGHOST
03.03. 2019 Added support for page pagination via ?per_page= request for displaying more than 10 products in a single call.