public function validateValuePercentPriceRule($value)
    {
        $field = 'value';
        $label = $this->translation->text('Value');

        if (!is_numeric($value)) {
            $this->setErrorNumeric($field, $label);
            return false;
        }

        if ($value == 0 || abs($value) > 100) {
            $this->setErrorInvalid($field, $label);
            return false;
        }

        return true;
    }
public function validateValuePercentPriceRule($value)
    {
        $field = 'value';
        $label = $this->translation->text('Value');

        if (!is_numeric($value)) {
            $this->setErrorNumeric($field, $label);
            return false;
        }

        if ($value == 0 || abs($value) > 100) {
            $this->setErrorInvalid($field, $label);
            return false;
        }

        return true;
    }
public function validateValuePercentPriceRule ( $ value ) { $ field = 'value' ; $ label = $ this -> translation -> text ( 'Value' ) ; if ( ! is_numeric ( $ value ) ) { $ this -> setErrorNumeric ( $ field , $ label ) ; return false ; } if ( $ value == 0 || abs ( $ value ) > 100 ) { $ this -> setErrorInvalid ( $ field , $ label ) ; return false ; } return true ; }
Validates the value of percent type
@param string $value
@return boolean
Validates the value of percent type