parameter('duration') == $duration && $this->parameter('duration_unit') === $unit) { $this->message = 'This product cannot have a price variation for the same duration and duration unit values as the product itself.'; return false; } /** * Validation Amount */ $amount = wu_get_isset($price_variation, 'amount', false); if ($amount) { $amount = wu_to_float($amount); } if (!is_numeric($amount)) { return false; } } return true; } }