Skip to main content
Reference

ItemReview SFO

Properties

FieldTypeComment/Sample

Methods

MethodReturnsParametersParameter TypesComments/Sample
getOverall()[BigDecimal](./bigdecimal-sfo.md)overall rating
getOverallAsStarsstringhtml version of overall rating with stars images
getOverallAsStars(string[])stringstring[]array needs to have 5 elements, each of which is a complete url to an image.
1. empty star 2. quarter star 3. half star 4. three quarter star 5. full star
Examples:
http://secure.ultracart.com/checkout/images/star_fade_0_4.png
getRatingScore()[BigDecimal](./bigdecimal-sfo.md)
isRecommendToFriend()boolean
getTitle()string
getDate()stringMM/dd/yyyy format
getDateMillis()longreview date in milliseconds
getDateAsObject()[Date](./date-sfo.md)
getRatings()[ItemReviewRating](./itemreviewrating-sfo.md)[]
getReview()stringtext commentary portion of review
getReviewOid()integerunique id of review
getReviewerNickname()string
getReviewerLocation()string
getReviewerQuestions()[ItemReviewerQuestion](./itemreviewerquestion-sfo.md)[]
getHelpfulYesUrl()stringurl of the cgi used to vote yes.
getHelpfulNoUrl()stringurl of the cgi used to vote no.
getHelpfulYesVotes()integer
getHelpfulNoVotes()integer
getSortOrderFeatured()integerpass this result (sortOrderId) of this to $formatHelper.sortReviews(reviews, sortOrderId) to sort reviews by 'featured' flag
getSortOrderDate()integerpass this result (sortOrderId) of this to $formatHelper.sortReviews(reviews, sortOrderId) to sort reviews by order date
getSortOrderRating()integerpass this result (sortOrderId) of this to $formatHelper.sortReviews(reviews, sortOrderId) to sort reviews by rating
getSortOrderHelpfulness()integerpass this result (sortOrderId) of this to $formatHelper.sortReviews(reviews, sortOrderId) to sort reviews by helpfulness
getSortOrderLength()integerpass this result (sortOrderId) of this to $formatHelper.sortReviews(reviews, sortOrderId) to sort reviews by review length
getHelpfulNetVotes()integernet summary of yes minus no votes
isFeatured()booleantrue if this review is featured, else false
getReviewerRank()integer*if the review has an active customer profile tied to it, this returns the review rank, else null. Be careful with this method as it returns an object (Integer) and not a primitive. So you must check for a null condition before blindly using.
isReviewerExpert()booleantrue if the reviewer is considered an expert by the merchant.
getEdit()stringif (and only if) the merchant is logged in, this returns an anchor <a> tag that will open a separate browser window allowing the merchant to edit the review directly.

See Also

Was this page helpful?