Author Topic: How to know what variables are useable?  (Read 3491 times)

AbsoluteVM

  • Jr. Member
  • **
  • Posts: 85
How to know what variables are useable?
« on: April 26, 2012, 09:37:48 am »
I'm trying to find out an answer to what might seem trivial, but need some help.

How do you know what is referable by, for example $this->product->this_reference_here

Is there a list of variables that are made available, or a way of printing the contents and knowing what I can use.


Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10018
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: How to know what variables are useable?
« Reply #1 on: April 26, 2012, 12:01:23 pm »
use in your layout vmdebug('my vars',$this); and enable debug in the config
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10400
  • VirtueMart Version: 3+
Re: How to know what variables are useable?
« Reply #2 on: April 26, 2012, 22:04:13 pm »
There are category and product variables listed in the stickies here
http://forum.virtuemart.net/index.php?board=130.0
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)