Author Topic: Correct way to extend VM2? Extension Plugins or jos_virtuemart_modules or ...?  (Read 5127 times)


  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 159
  • Copyleft (є) all rights reversed
I want to port my VM Import  extension from 1.1.x to 2.0.
Now I use J1.7+VM2 G

It was ran "from inside" VM to use it's functions to add products, types and so on. It was preparing data as if they were filled by hands and submitted from VM backend and passed them to VM core functions.
Here it is at a Russian forum:,150010.msg813807.html#msg813807

How it worked in 1.1.x
1. Installation
I used a Joomla 1.5 component installer possibilities to copy 3 files into the VM folder:
administrator/components/com_virtuemart/html/product.simple_csv.php (now it's can be called a view)
administrator/components/com_virtuemart/classes/ps_simple_csv.php (now it's can be called a model)

Then I ran a link ( to execute the file:

The file used the following class to add my function to jos_vm_function table
Code: [Select]
$ps_function = new ps_function;
//and so on...

2. Workflow
Then I could ran a link to have my "view" file displayed:

After submitting the form at the above screenshot my class administrator/components/com_virtuemart/classes/ps_simple_csv.php was used to do the job.

So now I need to rewrite it for VM2.0 and I'm stack with new VM approaches.
So I need a direction to dig. What is the analogue of function in 1.1.x now in VM 2.0?
It seems to be jos_virtuemart_modules , correct? Is there any procedure to install custom modules then?
Or maybe I'm wrong:
I read at developer wiki about Extension Plugins:
This event is fired, when the called view was not found in the backend maincontroller. It allows to add new views to virtuemart

Can I read somewhere about it? Give me some guides, please!
Maybe a module/plugin to use as an example?

P.S. API documentation link here is broken:
Your installable language for VM2:


  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9911
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
There is no table functions anymore. In your case I think you should use the
I should fix your bug, please support the VirtueMart project and become a member
Extensions approved by the core team: