Show extra files
-
Okay so at the moment i have renamed my additional information tab to downloads because in this tab is show files related to that product (such as pdf files). At the moment i have it set like this :
<a href="http://www.example.com/media/{supplier[1]}/{product_pdf[1]}" target="_blank">Datasheet</a></strong>
<a href="http://www.example.com/media/{supplier[1]}/{drawing_3d[1]}" target="_blank">Files</a></strong>This works fine for products that have those items in the database. But when the products do not have for example a product pdf the link will still be there and will link to a broken page since there is nothing there.
Now what i want is, when i have a product pdf or specified download with that product it shows up and when there is nothing in the xml file there will be nothing to actually click on or show up.
Now i hope this makes any sense to any of you and if not feel free to ask me more,
have a great day.
The topic ‘Show extra files’ is closed to new replies.
Datasheet