News:

Looking for documentation? Take a look on our wiki

Main Menu

DISPLAY CUSTOMS FILEDS IN CATEGORY PAGE

Started by mhim, March 18, 2013, 14:57:57 PM

Previous topic - Next topic

mhim

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


mhim

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 !!