News:

Support the VirtueMart project and become a member

Main Menu

Add pdf file based on the product custom_value of the import file

Started by Grimdun, May 11, 2016, 09:03:44 AM

Previous topic - Next topic

Grimdun

Hi! I have made a pdf button on my poduct details. With this code:

<a target=_blank class="btn btn-default btn-xs" href="media/documents//<?php echo $this->product->product_name ?>.pdf" title="Produktblad">
                     <span class=" btn btn-default btn-xs "> <div class= btn btn-default btn-xs > Produktblad </div> </span> </a>

As you see when the link in this button is product_name.pdf, but i want the link to be the custom_value.pdf from the import file. Do anyone know the right
code for this?

Jörgen

Why don´t load the pdf as a downloadable document under productimages ?

regards

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.