News:

Support the VirtueMart project and become a member

Main Menu

How to create a custom field plugin

Started by abemedia, January 08, 2013, 00:47:52 AM

Previous topic - Next topic

abemedia

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

veeco

Work On Doxa Web Developer Indonesia - http://doxadigital.com |

alatak

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.

abemedia

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

alatak

Hello

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