protected function checkDiscountConditions()
{
$checkOrder = null;
$key = $this->enableCheckingPrediction? 'PREDICTIONS_APP' : 'UNPACK';
if (empty($this->currentStep['discount'][$key]))
return false;
eval('$checkOrder='.$this->currentStep['discount'][$key].';');
if (!is_callable($checkOrder))
return false;
$result = $checkOrder($this->orderData);
unset($checkOrder);
return $result;
}
protected function checkDiscountConditions()
{
$checkOrder = null;
$key = $this->enableCheckingPrediction? 'PREDICTIONS_APP' : 'UNPACK';
if (empty($this->currentStep['discount'][$key]))
return false;
eval('$checkOrder='.$this->currentStep['discount'][$key].';');
if (!is_callable($checkOrder))
return false;
$result = $checkOrder($this->orderData);
unset($checkOrder);
return $result;
}