Available Custom Behavior
The following user and product variables you can call in your twig.
User
Method
Description
getWaitingToReviewItems()
Get list of pending review for certain user.
getReviewHistory()
Get list of all reviews for certain user.
Product
Method
Description
getReviews()
Get the reviews for this product.
getRatingCountInList()
Get list of rating count for this product.
getReviews()
Arguments:
rating: Optional,
int
. Defaultnull
.sort: Optional, string. By default
dateCreated DESC
.
Returns:
Array of Review Object.
getRatingCountInList()
Returns:
Array of rating count.
Example
Last updated