admin管理员组

文章数量:1122832

I don't have a question about coding in WordPress, but I was just wondering if I have a headless CMS setup, can I still have ecommerce functionality with WooCommerce?

I don't have a question about coding in WordPress, but I was just wondering if I have a headless CMS setup, can I still have ecommerce functionality with WooCommerce?

Share Improve this question asked Sep 26, 2021 at 18:11 JayDev95JayDev95 1798 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 2

Yes. WooCommerce has endpoints and you can access them with the standard WordPress REST API.

/wp-json/wc/v3/products
/wp-json/wc/v3/products/<id>

Did a little search and found that they have documentation available here: https://woocommerce.github.io/woocommerce-rest-api-docs/

本文标签: theme developmentCan I use WooCommerce in a headless CMS setup