wp-e-commerce / WP-e-Commerce

WP eCommerce - The most popular independent eCommerce platform for WordPress
https://wpecommerce.org
GNU General Public License v2.0
215 stars 217 forks source link

Implement Gutenberg integration #2334

Open JustinSainton opened 6 years ago

JustinSainton commented 6 years ago

Eventually, WP core will ship with the Gutenberg editor (probably).

That means we need to understand how to integrate with it.

Given Automattic being behind both WooCommerce and Gutenberg, it makes sense to follow along with what they're doing for integration and follow suit: https://github.com/woocommerce/woocommerce/issues/15979

mihaijoldis commented 6 years ago

When you have the gutenberg plugin installed you can only edit products in the classic mode. When trying to just click edit product you get No route was found matching the URL and request method

Also when trying to edit/create a new product (clasic editor) a bunch of notices show up in my debug log which don't when gutenberg is disabled.

[03-Dec-2017 15:14:34 UTC] PHP Notice:  Undefined index: title in D:\MAMP\htdocs\wpec-stable\wp-admin\includes\template.php on line 1042
[03-Dec-2017 15:14:34 UTC] PHP Warning:  A non-numeric value encountered in D:\MAMP\htdocs\wpec-stable\wp-content\plugins\wp-e-commerce\wpsc-includes\processing.functions.php on line 275
[03-Dec-2017 14:56:32 UTC] PHP Warning:  A non-numeric value encountered in D:\MAMP\htdocs\wpec-stable\wp-content\plugins\wp-e-commerce\wpsc-includes\processing.functions.php on line 275