shop:onExtendProductReviewForm event
The shop:onExtendProductReviewForm event allows to add new fields to the Product Review forms in the Administration Area (if implemented). This event is usually used with the shop:onExtendProductReviewModel event. The event handler should accept a single parameter - the option object (Shop_ProductReview class). Example:
public function subscribeEvents()
{
Backend::$events->addEvent('shop:onExtendProductReviewModel', $this, 'extend_product_review_model');
Backend::$events->addEvent('shop:onExtendProductReviewForm', $this, 'extend_product_review_model');
}
public function extend_product_review_model($product_review)
{
$product->define_column('x_would_recommend', 'Would recommend this product to a friend');
}
public function extend_product_review_model($product_review, $context)
{
$product->add_form_field('x_would_recommend')->tab('Review');
}Next: shop:onProductReviewBeforeCreate event
Previous: shop:onExtendProductReviewModel event
Return to Handling LemonStand events

