Feature plugin for the WooCommerce Gutenberg Products block
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Update bug report template to include WordPress details Jan 18, 2019
assets Add space between the icon and placeholder title (#421) Feb 18, 2019
includes Featured Product: Try using Button block for button (#398) Feb 8, 2019
languages Update changelog, bump version to 1.4.0-rc (#413) Feb 13, 2019
tests chore(deps): update wordpress monorepo (major) (#343) Feb 13, 2019
.editorconfig Add .editorconfig file for editor integration (#128) Nov 16, 2018
.eslintignore Update eslint config to ignore legacy block (#176) Nov 30, 2018
.eslintrc.js Update eslint config to ignore legacy block (#176) Nov 30, 2018
.gitattributes Add gitatributes file Apr 23, 2018
.gitignore i18n: Remove the babel makepot & pot-to-php scripts (#385) Jan 31, 2019
.nvmrc Adds continuous integration testing with travis (#156) Nov 27, 2018
.stylelintrc.json Add stylelint to find and fix css code style issues (#126) Nov 15, 2018
.travis.yml Add PHPCS to travis CI tests (#236) Dec 14, 2018
README.md REST API: Add new parameter for relationship between multiple taxonom… Jan 30, 2019
babel.config.js chore(deps): update wordpress monorepo (major) (#343) Feb 13, 2019
composer.json Add PHPCS to travis CI tests (#236) Dec 14, 2018
composer.lock Pin dependencies (#167) Nov 29, 2018
license.txt Readme Apr 20, 2018
package-lock.json chore(deps): update dependency @babel/core to v7.3.3 (#435) Feb 18, 2019
package.json chore(deps): update dependency @babel/core to v7.3.3 (#435) Feb 18, 2019
phpcs.xml Fix PHP CodeSniffer issues (#215) Dec 11, 2018
phpunit.xml.dist Adds continuous integration testing with travis (#156) Nov 27, 2018
postcss.config.js Split blocks into separate JS files (#305) Jan 10, 2019
readme.txt Fix changelog headings (#428) Feb 14, 2019
renovate.json Add renovate.json (#127) Nov 15, 2018
webpack.config.js New block: Products by Attribute (#378) Jan 30, 2019
woocommerce-gutenberg-products-block.php Bump stable tag & plugin dev version (#420) Feb 13, 2019

README.md

WooCommerce Product Blocks

Feature plugin for the Gutenberg Products block.

Getting started with the stable version:

  1. The stable version is available on WordPress.org. Download the stable version here.
  2. Activate the plugin.
  3. On Gutenberg posts you should now have a Products block available.

Getting started with the development version:

  1. Make sure you have:
  • the latest version of the Gutenberg plugin and WooCommerce 3.3.1+ installed and active
  • OR WordPress 5.0 (beta) and WooCommerce 3.5.1+
  1. Get a copy of this plugin using the green "Clone or download" button on the right.
  2. npm install to install the dependencies.
  3. npm run build (build once) or npm start (keep watching for changes) to compile the code.
  4. Activate the plugin.
  5. On Gutenberg posts & pages you should now have a "Products" block available.

The source code is in the assets/js/products-block.jsx file and the compiled code is in build/products-block.js.

Gutenberg Tutorial and Docs: https://wordpress.org/gutenberg/handbook/designers-developers/developers/tutorials/block-tutorial/introducing-attributes-and-editable-fields/

Using API in Gutenberg: https://github.com/WordPress/gutenberg/tree/master/packages/api-fetch

Vision for the Feature

Users should be able to insert a variety of products from their store (specific products, products in a category, with assorted layouts and visual styles, etc.) into their post content using a simple and powerful visual editor.