Skip to main content
This section describes the available actions in the product ratings area. With these actions, ratings can be created, edited, and deleted.

Actions overview


Actions

ProductRatingAdd

This action creates a new rating for a product. The customer must be logged in for this. Usage example
Can be used on the product detail page or in the order history to give logged-in customers the option to rate a purchased product.
Parameters Error codes Related modules, variables & methods Example showing how a logged-in customer can rate a product with star rating, title, and comment, including success output.

ProductRatingUpdate

This action edits an existing product rating of the logged-in customer. Usage example
Can be used on the product detail page or in the customer account when a customer wants to subsequently adjust the rating they have submitted.
Parameters Error codes Related modules, variables & methods Example showing how a customer can edit an existing rating with pre-filled fields.

ProductRatingDelete

This action deletes an existing product rating of the logged-in customer. Usage example
Can be used on the product detail page or in the customer account when a customer wants to remove the rating they have submitted.
Parameters Error codes Related modules, variables & methods Example showing how a rating is deleted via a button.