/** * If we can proceed with checkout with current cart * * @return boolean */ public function checkCart() { $result = parent::checkCart(); if (\XLite\Module\CDev\XPaymentsConnector\Core\XPaymentsClient::getInstance()->isModuleConfigured() && !$result) { \XLite\Module\CDev\XPaymentsConnector\Core\XPaymentsClient::getInstance()->clearInitDataFromSession(); } return $result; }
/** * If we can proceed with checkout with current cart * * @return boolean */ public function checkCart() { return parent::checkCart() && !$this->containsRestrictedProducts(); }
/** * {@inheritDoc} */ public function checkCart() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'checkCart', array()); return parent::checkCart(); }