Is it possible to show custom fields on the categoy view? Just copy & paste from productdetails does not work.
Thanks
product details uses $this-> which will not work on product in category
Look in the product module and get the code.
That's it! I just removed $this-> and it works...
Thank you!
How can add age field in Catgory admin page?
What is the code to copy? I have realy tried but cant get it to work
Please tell us what code? And where to paste?
What I pasted into category default.php trying various lines without using $this->. From another forum $get -> was tried. Nothing worked. Please help! Thank you.
<?php // Display the quantity box ?>
<!-- <label for="quantity<?php echo $this->product->virtuemart_product_id;?>" class="quantity_box"><?php echo JText::_('COM_VIRTUEMART_CART_QUANTITY'); ?>: </label> -->
<span class="quantity-box">
<input type="text" class="quantity-input" name="quantity[]" value="1" />
</span>
<span class="quantity-controls">
<input type="button" class="quantity-controls quantity-plus" />
<input type="button" class="quantity-controls quantity-minus" />
</span>
<?php // Display the quantity box END ?>
<?php // Display Custom Fields ?>
<?php
if (!empty($this->product->customfieldsSorted['ontop'])) {
$this->position = 'ontop';
echo $this->loadTemplate('customfields');
} // Product Custom ontop end
?>
<?php // Display Custom Fields2 ?>
<?php
if (!empty($this->product->customfieldsSorted['normal'])) {
echo $this->loadTemplate('customfields');
} // Product custom_fields END ?>
http://forum.virtuemart.net/index.php?topic=104557.0
https://forum.virtuemart.net/index.php?topic=100191.0