VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: reddevil on October 11, 2012, 17:24:47 PM

Title: additional field on category page
Post by: reddevil on October 11, 2012, 17:24:47 PM
Hi,

I need to add the additional field to category like description. How can I do it?

Please help!

Joomla 2.5.1
virtuemart 2.0.6
Title: Re: additional field on category page
Post by: PRO on October 11, 2012, 21:52:06 PM
what do you want to add?

if its just text? you can use the internal notes field

Title: Re: additional field on category page
Post by: reddevil on October 11, 2012, 21:55:35 PM
it is additional description
Title: Re: additional field on category page
Post by: PRO on October 11, 2012, 22:02:30 PM
You can use the "internal notes box"

Then, in your category template add
<?php echo $product->intnotes ?>

let me know if you need help with it
Title: Re: additional field on category page
Post by: reddevil on October 11, 2012, 22:15:26 PM
how can i edit this field through administration panel in Joomla?

thanks!
Title: Re: additional field on category page
Post by: reddevil on October 12, 2012, 08:46:36 AM
it is not useful for me because I need to add the additional field in category...

I know that I have to add some line in "/administrator/components/com_virtuemart/views/category/tmpl|edit_categoryform.php" after

"<?php echo VmHTML::row('editor','COM_VIRTUEMART_DESCRIPTION','category_description',$this->category->category_description); ?>",

but i don't know that i have to do after this...

Please help :'(
Title: Re: additional field on category page
Post by: PRO on October 12, 2012, 19:27:48 PM
on the category page?

thats NOT for the product?

can you use a module?
Title: Re: additional field on category page
Post by: reddevil on October 12, 2012, 19:40:37 PM
on the category page? - yes.

thats NOT for the product? - yes.

can you use a module? - no because i need to add this field to each category. it is not comfortable!