This is the API docs for LemonStand V1, which has been discontinued. LemonStand is now a cloud based platform, available at lemonstand.com.

LemonStand API

shop:onExtendProductReviewModel event

Triggered by Shop_ProductReview
Author LemonStand eCommerce Inc.

Event handler signature

public void event_onExtendProductReviewModel(Shop_ProductReview $review, string $context)
$review Shop_ProductReview specifies the review object.
$context string specifies the execution context.
Allows to define new columns in the product review model. The event handler should accept two parameters - the review object and the form execution context string. To add new columns to the review model, call the define_column() method of the review object. Before you add new columns to the model, you should add them to the database (the shop_product_reviews table).