Skip to content

Inactive product created via API should not allow reviews via Shop API #588

Description

@harshit-webkul

Describe the bug
A product created using the Admin Create Product API is set to Inactive by default.
However, the Shop Review API still allows customers to submit reviews for this inactive product.
Inactive products should not be eligible for customer review actions.

To Reproduce
Steps to Reproduce:

  1. Create a product using the Admin → Create Product API.
  2. Verify that the product status is Inactive in the Admin panel.
  3. Call the Shop → Add Review API with the inactive product ID.
  4. Check the API response.

Expected Result:

  • Shop Review API should block reviews for inactive products.
  • API should return a proper validation message such as:
    "Product is inactive and cannot be reviewed."

Screenshots
If applicable, add screenshots to help explain your problem.

Image Image

Actual Result:

  • Review is successfully submitted for the inactive product.
  • API returns a success response.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions