Actions overview
Actions
ProductRatingAdd
This action creates a new rating for a product. The customer must be logged in for this. Usage exampleCan 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
- $wsProductRating
- $wsProductRating.checkRatingExistence()
- $wsProductRating.loadAllProductRatings()
- $wsAccount.isLoggedIn
ProductRatingUpdate
This action edits an existing product rating of the logged-in customer. Usage exampleCan 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
- $wsProductRating
- $wsProductRating.loadSingleRating()
- $wsProductRating.loadRatingByAccount()
- $wsAccount.isLoggedIn
ProductRatingDelete
This action deletes an existing product rating of the logged-in customer. Usage exampleCan 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.
