Allows to override product's sale price.
The event handler should return either the product sale price or FALSE if the price should not be overridden.
This event overrides sale prices defined with Catalog Price Rules and with the Sale Price or Discount field in the
Shop/Edit Product form. Example:
public function subscribeEvents()
{
Backend::$events->addEvent('shop:onGetProductSalePrice', $this, 'get_sale_price');
}
public function get_sale_price($product, $quantity, $customer_group_id)
{
if ($product->sku == 'laptop')
return 999.99;
return null;
}