VirtueMart 2 + 3 > Product creation

Custom Field Types (Explained)

<< < (2/24) > >>

Da_Hobit:
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>

PRO:
is the foreach error in

default_customfields

or 

default.php

Da_Hobit:
default.php

PRO:
This is how the ontop is done

<?php  if (!empty($this->product->customfieldsSorted['ontop'])) {
   $this->position = 'ontop';
   echo $this->loadTemplate('customfields');
    } // Product Custom ontop end
    ?>

totallnet:
Hi all

Is it possible to create Top Ten and Most Sales in custom fields too ??
I dont need to show in products page but only in my custom search ...

Thanks in advance

Kazuo

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version