It seems to have been implemented incompletely since creating a POST request to this endpoint –> /wp-json/wc/v1/products/<product_id>/reviews throws the following error:
{
"code": "invalid-method",
"message": "Method 'WP_REST_Controller::create_item' not implemented. Must be overridden in subclass.",
"data": {
"status": 405
}
}
Ok, I manged to achieve it by granting specific access to products, product_categories, etc. to the customer role.
But I don’t know why do I even need to do this? Shouldn’t listing products and their categories be publicly available to anyone? Even those unregistered?
Or should not a Customer be able to view/manage his/her own order?
Thanks guys. I appreciate it.
It’s good to go.