VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: abemedia on January 08, 2013, 00:47:52 AM

Title: How to create a custom field plugin
Post by: abemedia on January 08, 2013, 00:47:52 AM
Hey,

I'm trying to create a custom field plugin but can't find much documentation on it.

I need to develop a field that populates a drop-down with items from selected other components (k2 & my own).
Creating a form element that displays a list of the items is easy but I don't quite understand the Virtuemart API...

What I really need is an example custom field plugin that renders a normal input on the back-end on displays the entered string on the front-end (just like a normal string custom field), from there I know what I'm doing.

Cheers
Title: Re: How to create a custom field plugin
Post by: veeco on January 08, 2013, 13:33:14 PM
+1 .. any devs care ?
Title: Re: How to create a custom field plugin
Post by: alatak on January 08, 2013, 13:59:45 PM
Hello

Yes we do care.
At the moment we do not have spcific documentation, but you can have a look here: http://docs.virtuemart.net/api-vm2/
It is an automatic documentation done with Doxygen.
I hope this will help you.
Title: Re: How to create a custom field plugin
Post by: abemedia on January 08, 2013, 18:38:23 PM
Thanks alatak but that is exactly what was confusing me lol! I don't even know where to start...

Would someone be so kind as to give me the basics on how to create a custom field plugin?
I think its very important information as I'm sure it would encourage more 3rd parties to make Virtuemart extensions and if someone does help I suggest publishing it in your wiki.

Thanks
Title: Re: How to create a custom field plugin
Post by: alatak on January 08, 2013, 20:47:49 PM
Hello

May be you can start by reading the code of the plugins that we provide ?
This is a good start :)