hasVirtualProducts()) { $this->exception = new PaymentException(translate_shop('errorDobirkaVirtualProducts', 'payment'), translate_shop('errorDobirkaVirtualProducts_short', 'payment')); } if (!empty($this->exception) && $cart->max_step != 0) { throw $this->exception; } return parent::check($cart); } }