Hi,
I have a Custom Field Type: Cart Variant ; for a Product Size (XS, S, M, L, XL, etc.).
Custom field shows in productdetails view (default_addtocart.php) but not in category view (default.php) even files contains a same code:
<?php // Product custom_fields
if (!empty($this->product->customfieldsCart)) { ?>
<div class="product-fields">
<?php foreach ($this->product->customfieldsCart as $field)
{ ?><div style="display:inline-block;" class="product-field product-field-type-<?php echo $field->field_type ?>">
<span class="product-fields-title" ><b><?php echo JText::_($field->custom_title) ?></b></span>
<?php 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 $field->custom_field_desc ?></span>
</div>
<?php
}
?>
</div>
<?php } ?>
What do do to get my custom filed show in Add Chart Button in category view?