News:

Looking for documentation? Take a look on our wiki

Main Menu

how get categories?

Started by Ozzie VM, July 13, 2012, 14:08:06 PM

Previous topic - Next topic

Ozzie VM

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!

Ozzie VM

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.

Ozzie VM

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?