woocommerce / woocommerce

A customizable, open-source ecommerce platform built on WordPress. Build any commerce solution you can imagine.
https://woocommerce.com
9.29k stars 10.73k forks source link

REST API for creating product review the verified parameter is not working #45609

Open whywilson opened 5 months ago

whywilson commented 5 months ago

Prerequisites

Describe the bug

/wp-json/wc/v3/products/reviews

While create or update an review, the verified parameter is not working and the new review is always unverified. I have to update the commentmeta table to set the verified to true

Expected behavior

Add a verified review

Actual behavior

The verified value in commentmeta is always 0

Steps to reproduce

Just execute with create review rest api.

WordPress Environment

WC Version: 8.6.1 REST API Version: ✔ 8.6.1 WC Blocks Version: ✔ 11.8.0-dev Action Scheduler Version: ✔ 3.7.1 Log Directory Writable: ✔ WP Version: 6.4.3 WP Multisite: – WP Memory Limit: 256 MB

Isolating the problem

hritikchaudhary commented 5 months ago

I'd like to contribute.. I've contributed to woocommerce-blocks in past. Where should I start with setup now? @jonathansadowski @vedanshujain Thanks!