Skip to content

A small utility child theme for Storefront that helps to debug WooCommerce API connections.

License

Notifications You must be signed in to change notification settings

jobthomas/wc-api-debugger

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WC API debugger

The WC API debugger is a child theme for Storefront that allows you to test if the REST API of any WooCommerce site is running as it should.


Prerequisites

  • This is a child theme of Storefront, so you need to have Storefront installed on the site.
  • When the child theme is installed and activated, create a new page and choose "WC API Debug" under Document > Page Attributes > Template. There's no need for content on that page.

Where to set the page attributes Link to screenshot: https://cld.wthms.co/zscLwC

Testing

Generate REST API keys

  • Open any live WooCommerce site. Local sites currently cannot be tested this way yet.
  • Go to WooCommerce > Settings > Advanced > REST API.
  • Select Add key, give a name and set the permissions you want to test. Note that "Write" permissions can currently not be tested yet.

Testing the keys

  • Go to the page with the WC API Debug template you've created.
  • Enter the site URL. Make sure this is the homepage.
  • Enter the customer key and secret.
  • Choose the permalink structure. If you're not sure, you can find this under Settings > Permalinks.
  • Hit "Submit Query" and see the results.

About

A small utility child theme for Storefront that helps to debug WooCommerce API connections.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 46.7%
  • JavaScript 40.9%
  • CSS 12.4%