admin管理员组

文章数量:1332395

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?

Thanks!

本文标签: ajaxwoocommerce REST api on the website39s frontend