Jump to content

How to add a download button


mastermindsro

Recommended Posts

Hello,

 

I want each product the client bought to have a download button on the products list page and also on the product details page.

 

I added this code inside product-list.tpl but there is no hash at the end of the link. Is there a way to hide this button from visitors and people that did not bought this product, and show the button to those who bought it? How can I make it work?

 

<a class="button" href="{$link->getPageLink('get-file.php', true)}?key={$i.physically_filename|escape:'htmlall':'UTF-8'}-{$i.download_hash|escape:'htmlall':'UTF-8'}" target="_new" style="margin-bottom:5px;" title="{l s='Download the latest version of this product'}"><span>{l s='Download'}</span></a>

 

Thank you in advance.

Link to comment
Share on other sites

  • 8 months later...

I can't believe I've choose prestashop.. There's no community to help me, no help files on this, no modules to do this. I am starting to think I should stay with the more popular platforms..

 

I totaly agree with you, prestashop doenst helps you when you post add

I had the same problem and I've post a question no one answered to me !

 

http://www.prestashop.com/forums/topic/182023-bouton-telechargement-download-button-prestashop/

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...