SMacFadyen
SMacFadyen

Reputation: 3165

Virtuemart $variables. Where can I learn / output them?

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..

Upvotes: 2

Views: 2257

Answers (2)

seavers
seavers

Reputation: 571

The documentation is limited, here it is:

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

Upvotes: 1

Julien Meilleur
Julien Meilleur

Reputation: 303

Try this

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

Then check the source code of the page

Upvotes: 1

Related Questions