Jump to content

Add download Link next to product page


Palouf

Recommended Posts

Hi all,

I want to personalize the product part in my prestashop by adding, for a virtual product the download link when it is either free or if we are in catalog only mode.

 

i am a bit confused on where I can change things, I tried following (just to check if I get a link):

 

in product.tpl

<input type="hidden" name="downloadLink_PSE" id="downloadLink" value="{$product->productDownload->filename|escape:'htmlall':'UTF-8'}" />

 

but I dont retrieve any value. I guess this is because I need to "generate" some kind of temporary link. But how can I do that ?, I don't see where to call what method from the product object

 

Thank you for your help.

 

Regards

 

Pascal

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...