AddEventHandler("catalog", "OnGetOptimalPrice", array("myPriceHandler", "GetOptimalPriceCustom"));
class myPriceHandler
{
function GetOptimalPriceCustom($productId, $quantity)
{
$arPrice = CCatalogProduct::GetOptimalPrice($productId, $quantity, array(1), 'N', array(), SITE_ID);
echo "<pre>";
print_r($arPrice);
echo "</pre>";
}
}
AddEventHandler("catalog", "OnGetOptimalPrice", array("myPriceHandler", "GetOptimalPriceCustom"));
class myPriceHandler
{
function GetOptimalPriceCustom($productId, $quantity)
{
$arPrice = CCatalogProduct::GetOptimalPrice($productId, $quantity, array(1), 'N', array(), SITE_ID);
echo "<pre>";
print_r($arPrice);
echo "</pre>";
}
}