Novosti

Srijeda, 11 Kolovoz 2010 11:59

Virtuemart2 prikaz Custom polja u listi

Ukoliko želite prikazati Custom polje u listi proizvoda neke kategorije potrebno je dodati malo koda php datoteke "category.php"

<div id=dimenzije"><?php $custom_title = null;if (!empty($product->customfields))
{
foreach ($product->customfields as $field) {if ($field->is_hidden )
continue;
if ($field->display) { ?>
<span class="product-fields-title" ><?php echo JText::_($field->custom_title); ?></span>
<span class="product-field-display"><?php echo $field->display ?></span>
<span class="product-field-desc"><?php echo jText::_($field->custom_field_desc) ?></span>
<?php } ?> <?php } ?> <?php } ?>
</div>