rock-solid / pwa-theme-woocommerce

E-commerce Progressive Web App Theme (React & Redux)
http://pwacommerce.com
MIT License
429 stars 162 forks source link

WooCommerce Settings #37

Closed manticarodrigo closed 6 years ago

manticarodrigo commented 6 years ago

I'm trying to recreate the demo with a self-hosted WP/WC installation. In the public/index.html file I've updated my endpoints like so: API_CATEGORIES_URL: 'https://example.com/wp-json/wc/v2/products/categories/', and added the consumer key/secret to the url params but the app is giving me various errors including Unhandled Rejection (TypeError): Cannot read property '_currentElement' of null.

What version of WooCommerce is this for, and how do I customize my endpoints to work for this PWA?

manticarodrigo commented 6 years ago

I found an explanation in the video on this page: https://wpmobilepack.com/blog/progressive-web-app-wordpress-woocommerce-reactjs/. Where can I find the PHP wrapper used for proxying the API?

abarbulescu commented 6 years ago

You can find the WordPress plugin associated with the PWA here: https://wordpress.org/plugins/pwacommerce/