VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: Grimdun on May 11, 2016, 09:03:44 AM

Title: Add pdf file based on the product custom_value of the import file
Post by: Grimdun on May 11, 2016, 09:03:44 AM
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?
Title: Re: Add pdf file based on the product custom_value of the import file
Post by: Jörgen on May 11, 2016, 10:54:34 AM
Why don´t load the pdf as a downloadable document under productimages ?

regards

Jörgen @ Kreativ Fotografi