thnx BanquetTables.pro for this great post !
with the products i use the custom fields this script works like a charm, but when i have a product without the custom fields i get the following error:
Warning: Invalid argument supplied for foreach()
i guess i need to alter the code with a check if that custom field exists or not... but don't know it , can you help ?
maybe with : if ($field != null) {
thnx ! - my appologies when this reply is in the wrong topic -
to 'open the link' in a new tab, just add "target="_blank" to a href code:
<a href="<?php echo $field->display ?>"target="_blank"><?php echo JText::_($field->custom_title); ?></a>