Digital Download - Fix Download URL

Permalink
The email with the link to download the file looks like this:

/index.php/tools/packages/core_commerce_downloadable_file/download?hash=IXhUE36tvjfY

How do I fix this so that it has the "http://www.domain.com" in front of it?

Thanks

apellow
 
Mainio replied on at Permalink Reply
Mainio
You might want to contact the core team behind that add-on in the support section:
http://www.concrete5.org/marketplace/addons/digital-downloads/suppo...

That is actually pretty easy to fix but having never used or seen that add-on, cannot really say where you should modify your files.

But somewhere where the mail is being sent, you should change (SOMETHING LIKE) this:
$uh = Loader::helper('concrete/urls');
$purchaseLink = $uh->getToolsURL('download', 'core_commerce_downloadable_file') . '?hash=' . $hash;


To (SOMETHING LIKE) this:
$uh = Loader::helper('concrete/urls');
$purchaseLink = BASE_URL . DIR_REL . $uh->getToolsURL('download', 'core_commerce_downloadable_file') . '?hash=' . $hash;
apellow replied on at Permalink Reply
apellow
Sorry for posting in the wrong forum.

You were correct. There was an issue already opened over there with a workaround:

http://www.concrete5.org/marketplace/addons/digital-downloads/suppo...

Thanks!