Developing a module or plugin for Virtuemart 2 » History » Revision 1
Revision 1/16
| Next »
Max Milbers, 02/28/2011 05:53 PM
Developing a module or plugin for Virtuemart 2¶
When you want to develop your own extension for virtuemart, then this hints should you help to get started:
Useif (!class_exists( 'VmConfig' )) require(JPATH_ADMINISTRATOR.DS.'components'.DS.'com_virtuemart'.DS.'helpers'.DS.'config.php');
to load the configuration object in your extension. Then use
VmConfig::loadConfig();
to load the configuration values, you can then easily access them with
VmConfig::get('yourVariable','default');
When you want to access the js used in vm then load them with
VmConfig::jQuery();
VmConfig::jPrice();
or for the css useVmConfig::cssSite();
For shipment or payment plugin development please look here Plugin system
Updated by Max Milbers almost 14 years ago · 1 revisions