I have a pdf for every product in virtuemart and I would like to open the pdf in a new tab.
In virtuemart in Configuration/Shopfront i checked the box Show the pdf view icon.
Now I have found the line in html with firebug tool the a href
tag that I have to change but i can't find it in joomla files to add the target="_blank"
atribute.
You probably need the file components/com_virtuemart/views/productdetails/tmpl/default.php
It would be better to copy this file and paste to templates/your_template/html/com_virtuemart/productdetails/ and under the line
if (VmConfig::get('pdf_icon', 1) == '1') {
write something like
echo '<a href="'.$link.'&format=pdf" target="_blank">PDF</a>';
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.