News:

Looking for documentation? Take a look on our wiki

Main Menu

how to get VirtueMart version in my joomla component ?

Started by tarunbaraiya, March 07, 2012, 13:36:03 PM

Previous topic - Next topic

tarunbaraiya

i am creating a joomla component that show all VirtueMart

i have two question for VirtueMart

1) how to know the version of VirtueMart in my Joomla component ?

and

2)
in  old VirtueMart version 1.1.9 we use this code

if (file_exists('components/com_virtuemart/virtuemart_parser.php')) {
            require_once('components/com_virtuemart/virtuemart_parser.php');
        } else {
            require_once('components/com_virtuemart/virtuemart_parser.php');
        }
        require_once(CLASSPATH . 'ps_product.php');
      $ps_product           = new ps_product;

but what for new VirtueMart version 2.0.2 ?