Hello!
I am on a virtuemart page product details.
Is it possible to access products parameters, without executing queries again?
I need f.e. product_weight , that should be inserted already inside globals variable ( but using $_GLOBAL['product'] doesn't give me back anything) .
Inside the view is it possible to make a $view->get ('product) , but will be possible to have the current instance from external and get those?
Thanks
of course. all is there, learn to use vmdebug. enable virtuemart debug and use vmdebug('mydata',$this) in your layout to see which data is accessible.
And also see http://forum.virtuemart.net/index.php?topic=92756.0
Hello guys and thanks for replies
I try vmdebug soon
I suppose that if the print is:
vmdebug mydata
means that $this is null?
Thanks
?, no
first parameter description, next parameters are the values to print. $this should be never null. $this in a layout should show you the whole accessible data.