VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: renny79 on April 18, 2012, 05:03:58 AM

Title: How to get category name?
Post by: renny79 on April 18, 2012, 05:03:58 AM
Hello,

I am trying to get category name of the current category but I am trying to get it from my template index.php page. Any help is highly appreciated.

Thank you,
Renny
Title: Re: How to get category name?
Post by: PRO on April 18, 2012, 11:22:48 AM
Quote from: renny79 on April 18, 2012, 05:03:58 AM
Hello,

I am trying to get category name of the current category but I am trying to get it from my template index.php page. Any help is highly appreciated.

Thank you,
Renny

You are not going to be able to do this without some coding.

where do you want to display it?

what are you trying to do?
Title: Re: How to get category name?
Post by: renny79 on April 18, 2012, 15:01:51 PM
If you could give me the snippet of the codes I can figure it out.

I want to display the category name on the header of the page that is rendered before the component.

Thanks!
Title: Re: How to get category name?
Post by: PRO on April 18, 2012, 15:48:35 PM
Quote from: renny79 on April 18, 2012, 15:01:51 PM
If you could give me the snippet of the codes I can figure it out.

I want to display the category name on the header of the page that is rendered before the component.

Thanks!

I do not know the code,

You will have to query the database I believe,.


No reason to do all that though,

I would do it another way.

With module, etc.