Пример #1
0
 public function getCheckoutUrl()
 {
     if (!$this->helper('onestepcheckout')->isOnepageCheckoutLinksEnabled()) {
         return parent::getCheckoutUrl();
     }
     return $this->getUrl('onestepcheckout', array('_secure' => true));
 }
Пример #2
0
 /**
  * Get one page checkout page url
  *
  * @return bool
  */
 public function getCheckoutUrl()
 {
     return !$this->helper('onestepcheckout')->isRewriteCheckoutLinksEnabled() ? parent::getCheckoutUrl() : $this->getUrl('onestepcheckout', array('_secure' => true));
 }