![]() |
How to create a link in product.tpl
I would like to know how to create a link in product.tpl.
What i want: we sell Weck canners and i want the possibility for the customer to download the manual in pdf. I can create an extra field in which the name of the manual is. But how te create the download link i dont know. I hope anyone can help me... Regards |
|
thanks for the suggestion, but it doesn't work for me, every product has a different manual. the link must take the name from the product manual out of the database.....
Regards |
sorry, the solution works for me. BUT
xcart removes the coding in the extra fields... |
try a search for trusted variables.
xcart will strip code out of certain things as a security measure you could also hard code something like this into your page Code:
{if $extra_field[0].field_value}this will check if the first extra field has anything in it (such as Y) and if it does it will show the download link for the pdf which you must name as the product id number with the pdf extension ie productid = 456 would turn into Code:
<a href="http://yourstore.com/filesdir/456.pdf |
all right, this is it.
i will try it later on tonight Thanks. |
Can someone please explain me how to do this in a few steps and in wich files do i have to modify it ?
this would be very helpfull and would be the first clear "how to add a pdf file post " thx |
| All times are GMT -8. The time now is 04:29 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.