2

Within Virtuemart, i'm referencing such things like

 $this->product->images[0]->file_url; 

and

 $category->category_name;

With little documentation, is there some technique that I can find what variable references are available to me? How do I know if I can access, say $this->product->product_title. How do I get these out of VM, with no documentation?

Short of best guessing what do developers do..

SMacFadyen
  • 3,145
  • 2
  • 25
  • 37

2 Answers2

1

Try this

print_r($this->product);exit();

Then check the source code of the page

Julien Meilleur
  • 303
  • 1
  • 4
1

The documentation is limited, here it is:

http://virtuemart.net/documentation/Developer_Manual/func.html

seavers
  • 551
  • 5
  • 16