woocommerce REST api on the website’s front-end


I want to use AJAX for product listing (with “show more” functionality), AJAX based search etc. on the front-end of a WordPress/Woocommerce website. It seems like a simplest approach here would be to use Woocommerce REST API.

  • What is the recommended approach here, when i only need to use the /products endpoint? Is it possible to disable for instance the /orders endpoint?
  • Since I have to use Consumer Key and Consumer Secret keys, what is the recommended way to use them within the Javascript functions, when I use WordPress on the backend?

I would be glad, if someone can point me to the right direction, maybe the REST API is a wrong approach here altogether?


, , tolchai 5 months 0 Answers 57 views 0

Leave an answer