News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Create Custom Plugin

Started by anil123_singh, April 20, 2015, 09:51:16 AM

Previous topic - Next topic

anil123_singh

Hello Guys,

I am planning to create a custom plugin which contains following features:
Virtuemart Plugin creation for vm2 and vm3 which contains following functionality
1) Admin can able to set start date and end date for showing product as a catalogue
2) Admin can able to set time for showing product for specific time period on specific date
3) Can set categories products as a catalogue
4) Customizable message displayed to user.

I am planning that fields will be shown on category details and product details in admin area and set resepected settings according to specific category wise or product wise.
Can any one tell me which type of plugin should i create and how they will be called in product and category detail page.
I am not getting any proper tutorials.
Please help me.

Studio 42

#1
Currently, i don't know if you can hook the form/lists view in backend.
For single product, you can use custom field for product.

If you need to hack the list views, you can use a system plugin, and overide the classes, but this is a big work and hard to maintain.
Another solution is to add a menu link in virtuemart menu on installing your plugin/component.
You can currently use option=com_virtuemar&view=plugin&type=vmcustom&name=YOURPLUGIN in front or backend to directly call your plugin with the functoin plgVmOnSelfCallBE or plgVmOnSelfCallFE.
eg in your vmcustomplugin
        function plgVmOnSelfCallFE($type,$name,&$render) {
                $render->html = 'test';
        }

see some info : http://forum.virtuemart.net/index.php?topic=100924.0

or in the tetxinput plugin

I have found an old article here : https://dev.virtuemart.net/projects/virtuemart/wiki/Developing_a_module_or_plugin_for_VirtueMart_2
Sorry i cannot find tis article in the new doc site;