News:

Looking for documentation? Take a look on our wiki

Main Menu

Custom Fields as a list

Started by highlander411, August 01, 2012, 05:12:18 AM

Previous topic - Next topic

highlander411

I'm trying to turn the Custom Field drop-down menu into a list. I have Generic Child Variants and would like to post them as cart links or redirect to the Product Details page but I'm not sure if this is where I would be able to make this change. //WARNING NOOB here

I've been editing this file
...views/category/tmpl

<!-- custom field begin -->
   
      <?php foreach ($product->customfieldsCart as $field)
      if ($field->display) { ?>
      <div class="product-field product-field-type-<?php echo $field->field_type ?>">
      <?php if ($field->custom_title != $custom_title) { ?>
      <span class="product-fields-title" ><?php echo JText::_($field->custom_title); ?></span>

      <?php //if ($field->custom_tip) echo JHTML::tooltip($field->custom_tip,  JText::_($field->custom_title), 'tooltip.png');
            } ?>
      <span class="product-field-display"><?php echo $field->display ?></span>
      <span class="product-field-desc"><?php echo jText::_($field->custom_field_desc) ?></span>
      </div>
      <?php $custom_title = $field->custom_title;
      }
      
      { ?>