VirtueMart Forum

VirtueMart 2 + 3 + 4 => Frontend Modules => Topic started by: Ozzie VM on July 13, 2012, 14:08:06 PM

Title: how get categories?
Post by: Ozzie VM on July 13, 2012, 14:08:06 PM
Hi,

I'm new on the forum  :D

I'm also new to Joomla and VirtueMart and I certainly could use some help.

I want to create a piece of PHP-code in order to retrieve the names of the available categories. I've been searching through the existing VirtueMart code and tried several options but I can't get it to work.

I want to do something like this (just an example!!):


<?php
$virtuemart 
Virtuemart::getApplication();
$categories $virtuemart->getCategories();
foreach (
$categories as $category) {
  echo 
$category;
}


Can anyone help me or at least push me in the right direction? I have no clue where to start.

Many thanks!
Title: Re: how get categories?
Post by: Ozzie VM on July 13, 2012, 21:08:49 PM
I see my topic has been viewed a couple of times, but no response yet.

I was wondering if my question is clear enough. Do you guys understand my question? If not, please let me know so I will do my best to explain it better.
Title: Re: how get categories?
Post by: Ozzie VM on July 14, 2012, 20:58:38 PM
Hey guys,

Does no-one know the answer to this question? Or is it something extremely difficult?

Should I ask this question somewhere else, should I explain it better?

Please could anyone say something?