I have added a text attribute for adding a pdf files name. Then created an installation tab display a button for "Installation PDF" which the button should have an href pointing to the media folder with the file name listed in the database from the attribute.We can then just upload the pdf's into the /media folder and reference them that way. I have created the Tab and attribute. Then given the code like this to display the button in frontend.
if($_data['label'] == 'installation'): ?> <td class="data"> <a href="<?php echo $_helper->productAttribute($_product, $_data['value'], $_data['code']); ?>" onclick="<?php echo $_helper->productAttribute($_product, $_data['value'], $_data['code']); ?>" target="_blank"><input type="submit" name="InstallationPDF" value="Installation PDF" /></a></td> </tr> <?php endif; ?>
But in Front end it shows like this.
where should i change? Any help are appreciable.