VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: kersian on October 24, 2015, 17:49:14 PM

Title: Custom field (Image) show in categories
Post by: kersian on October 24, 2015, 17:49:14 PM
Hello Im facing a headache trying to insert the custom field that I have for my products in the categories view, tried all the codes that I saw in this forum but witouth succes..

This is my product page:
(https://dl.dropboxusercontent.com/s/ua1yqindj2ifelf/producto.png)

And this is what I almost want :P :
(https://dl.dropboxusercontent.com/s/m98ihy39n57zsfb/categoria.png)

The custom field is named "Color" and it is a cart atribbute (image)
I have Virtuemart 2.6.6 installed on a Joomla 2.5

Thanks for all your help it is much appreciated!
Best regards Maxi.
Title: Re: Custom field (Image) show in categories
Post by: jenkinhill on October 24, 2015, 19:05:27 PM
The function to show product customfields in browse views is included in VirtueMart 3 but was not part of VirtueMart 2 so you have to code suitable overrides for the category layout. Problem is that you are not using the default VM templates so it is not easy to offer help. See http://forum.virtuemart.net/index.php?topic=108212.0

You are using a version of VirtueMart which is known to be insecure and should not be used on a live site. Test any updates on a backup copy of your site in case any issues arise.   http://forum.virtuemart.net/index.php?topic=118683
Title: Re: Custom field (Image) show in categories
Post by: kersian on October 25, 2015, 05:58:49 AM
Thanks for your reply, I updated Vituemart to 2.6.14 , becouse I tried to update to VM3 and there was a lot of errors during installation, anyway.. with this 2.6.14 and the default template , could you give me a hint to hard code that custom field?
Thanks in advance!