Beispiel #1
0
 /**
  * Return false if Express Checkout shortcut is selected by customer
  * 
  * @return boolean
  */
 protected function isNeedReplaceLabel()
 {
     $result = parent::isNeedReplaceLabel();
     if ($result) {
         $cart = $this->getCart();
         if ($cart->isExpressCheckout($cart->getPaymentMethod()) && ExpressCheckoutProcessor::EC_TYPE_SHORTCUT == \XLite\Core\Session::getInstance()->ec_type) {
             $result = false;
         }
     }
     return $result;
 }
Beispiel #2
0
 /**
  * Get Terms and Conditions page URL
  *
  * @return string
  */
 public function getTermsURL()
 {
     return \XLite\Module\CDev\DrupalConnector\Handler::getInstance()->checkCurrentCMS() ? url(\XLite\Core\Config::getInstance()->Company->terms_url) : parent::getTermsURL();
 }