VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: rvbgnu on February 23, 2019, 21:08:07 PM

Title: A bit of code in a plugin to generate the same output as the configuration tab
Post by: rvbgnu on February 23, 2019, 21:08:07 PM
Hi everyone,

I am exploring in backend areas that I don't know well in VirtueMart and Joomla.
I am looking at a way to catch the HTML output of a payment plugin in the VirtueMart backend: the one that displays in the Configuration tab.

It will use method(s) in the same plugin, or another one triggered by an event. It could be an event method similar to the frontend ones: onContentBeforeDisplay(), onAfterRender()...

Initially, I wanted to parse or to get the language files output, in order to generate a Documentation page for the plugin Configuration. As there are already several language files, it would help to create and update a Documentation in several languages. This would give the fields names, options, descriptions and tool tips. And then a bit of HTML change with find/replace, with the functions used to modify the frontend HTML would give me block of code to create the page I want.

Please could you point me to where I should look? And which class(es) I could override to achieve that?

Kind regards,
Hervé
Title: Re: A bit of code in a plugin to generate the same output as the configuration tab
Post by: rvbgnu on February 25, 2019, 12:54:43 PM
This is more clear with screenshots.

Here is the plugin configuration:

(https://framapic.org/CnCUkE7AN0a3/1RrTn5UnKZia.png)

and the typical result I want in the Documentation page:

(https://framapic.org/6LOD8vFlf097/9w3985TY4V4E.png)

Does it make sense for you?