VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: marciopati on October 10, 2014, 23:36:13 PM

Title: How to add a view to a plugin
Post by: marciopati on October 10, 2014, 23:36:13 PM
Hello, all,

I'm kind of new to Virtuemart plugin development and I would like to understand the "how-to" to be able to create a plugin that displays a screen to the user and let's him hit a submit button to complete the plugin flow.

Being more specific, I have created a plugin that is invoked on event plgVmAfterUserStore of the "vmshopper" type, after a shopper is saved. This plugin is working fine for the background action it is performing.

But I would like to display a screen to the user at this point, allowing him to choose an item from a list, and only after submiting it the background action would be performed.

Could someone guide me on how can I accomplish this, please?

Thanks a lot for any help on this!
Márcio.
Title: Re: How to add a view to a plugin
Post by: jjk on October 11, 2014, 21:49:05 PM
I'm not a developer, but I suppose you will find the information you need at some links shown near the bottom of this page:
http://dev.virtuemart.net/projects/virtuemart/wiki/Plugin_system
Title: Re: How to add a view to a plugin
Post by: marciopati on October 12, 2014, 10:39:08 AM
Thank you, jjk. I finally got it to work.

Thanks a lot,
Márcio.