in the function_price.php
PHP Code:
// -----
// Give an observer the chance to override the product's base price.
//
$base_price_is_handled = false;
$products_base_price = 0;
$zco_notifier->notify('ZEN_GET_PRODUCTS_BASE_PRICE', $products_id, $products_base_price, $base_price_is_handled);
if ($base_price_is_handled === true) {
return $products_base_price;
}
i have add a new file
PHP Code:
class get_products_base_price extends base{
public function __construct()
{
$this->attach ($this, array(
'ZEN_GET_PRODUCTS_BASE_PRICE',
));
}
public function update(&$class, $eventID, $products_id, $products_base_price, $base_price_is_handled)
{
}
}
how to return the $products_base_price, $base_price_is_handled to the function_price.php?
Bookmarks