VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: mhim on March 18, 2013, 14:57:57 PM

Title: DISPLAY CUSTOMS FILEDS IN CATEGORY PAGE
Post by: mhim on March 18, 2013, 14:57:57 PM
Hi world

I'd like to display some customfields in the category page

Bellow i guess the file where i need to add code around line 265

/joomla/components/com_virtuemart/views/category/tmpl/default.php

and here the file on product page where customfilelds actually displayed

/joomla/components/com_virtuemart/views/productdetails/tmpl/default_customfields.php


(I want to display only one custumfield named for example "foobar"  ID 35 in the database.
if it s more easy to do it this way.)

any help will be appreciated

Title: Re: DISPLAY CUSTOMS FILEDS IN CATEGORY PAGE
Post by: mhim on March 18, 2013, 17:15:12 PM
the ugly way -->

just add

<?php echo $product->customfields[x]->display ;?>

where x is the correct number
if someone have a not ugly way or if something already exist to do  this... welcome !!