Example #1
0
 /**
  * @param Item $item
  * @return string
  */
 public function getPurchasedLinkUrl($item)
 {
     return $this->_urlBuilder->getUrl('downloadable/download/link', array('id' => $item->getLinkHash(), '_scope' => $this->getOrder()->getStore(), '_secure' => true, '_nosid' => true));
 }
Example #2
0
 /**
  * Return url to download link
  *
  * @param Item $item
  * @return string
  */
 public function getDownloadUrl($item)
 {
     return $this->getUrl('*/download/link', array('id' => $item->getLinkHash(), '_secure' => true));
 }
Example #3
0
 /**
  * Return url to download link
  *
  * @param Item $item
  * @return string
  */
 public function getDownloadUrl($item)
 {
     return $this->getUrl('downloadable/download/link', ['id' => $item->getLinkHash(), '_secure' => true]);
 }
Example #4
0
 /**
  * @param Item $item
  * @return string
  */
 public function getPurchasedLinkUrl($item)
 {
     $url = $this->getFrontendUrlBuilder()->getUrl('downloadable/download/link', ['id' => $item->getLinkHash(), '_scope' => $this->getOrder()->getStore(), '_secure' => true, '_nosid' => true]);
     return $url;
 }