VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: borro on September 20, 2016, 10:30:23 AM

Title: Documentation for component development
Post by: borro on September 20, 2016, 10:30:23 AM
Hello!

I'm trying to develop a component which have to take data from VM3 database. Is there any documentation for solution this task? Should i use the standard Joomla documentation or there is a some specific knowledges for creating VM aimed component?
Title: Re: Documentation for component development
Post by: GJC Web Design on September 20, 2016, 12:41:10 PM
the VM tables are just tables

if u are dev'ing a new component complete u just use the tables as your source

but just to get data from the VM tables can be done in many ways.. e.g. plugin to extend VM then u can use all the classes etc that are already there for VM
Title: Re: Documentation for component development
Post by: Milbo on September 20, 2016, 20:32:53 PM
The best way is to learn from our code.

You can use anywhere the vmModel::getModel(myModelName) to get a vm model. You should also use vmJsApi to add js scripts and vmText. Also vRequest instead of JInput, so you will stay compatible to VM on WP