shop:onGetProductExtraPrice
The shop:onGetProductExtraPrice event allows to overload a product extra's price.
The event handler should accept 2 parameters - the extra option object and the product object. The method should return the new price, if applicable.
Event handler example:
public function subscribeEvents() {
Backend::$events->addEvent('shop:onGetProductExtraPrice', $this, 'get_product_extra_price');
}
public function get_product_extra_price($extra, $product) {
return $extra->price * 1.10;
} Next: shop:onAuthenticateCustomer event
Previous: cms:onBeforeHandleAjax event
Return to Handling LemonStand events

