/** * @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)); }
/** * 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)); }
/** * 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]); }
/** * @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; }