Project

General

Profile

Developing a module or plugin for Virtuemart 2 » History » Version 1

Max Milbers, 02/28/2011 05:53 PM

1 1 Max Milbers
h1. Developing a module or plugin for Virtuemart 2
2
3
When you want to develop your own extension for virtuemart, then this hints should you help to get started:
4
5
Use
6
@if (!class_exists( 'VmConfig' )) require(JPATH_ADMINISTRATOR.DS.'components'.DS.'com_virtuemart'.DS.'helpers'.DS.'config.php');@
7
to load the configuration object in your extension. Then use
8
9
@VmConfig::loadConfig();@
10
11
to load the configuration values, you can then easily access them with
12
13
@VmConfig::get('yourVariable','default');@
14
15
16
When you want to access the js used in vm then load them with
17
18
@VmConfig::jQuery();
19
VmConfig::jPrice();@
20
21
or for the  css use
22
@VmConfig::cssSite();@
23
24
For shipment or payment plugin development please look here [[Plugin system]]