Author Topic: A bit of code in a plugin to generate the same output as the configuration tab  (Read 173 times)

rvbgnu

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 119
    • Puma-IT.ie
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é
Best Regards, Hervé Boinnard - Irish Time (GMT)
Joomla! multilingual website and online business made easy - https://www.puma-it.ie

Updated for VM3 and Joomla 3.x! Stripe.com payment plugin for VirtueMart: https://www.puma-it.ie/en/joomla-and-virtuemart-extensions/stripe-for-virtuemart
Authipay (AIB Merchant Services) for VirtueMart 2 & 3: https://www.puma-it.ie/en/joomla-and-virtuemart-extensions/authipay-aib-merchant-services-for-virtuemart

rvbgnu

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 119
    • Puma-IT.ie
This is more clear with screenshots.

Here is the plugin configuration:



and the typical result I want in the Documentation page:



Does it make sense for you?
Best Regards, Hervé Boinnard - Irish Time (GMT)
Joomla! multilingual website and online business made easy - https://www.puma-it.ie

Updated for VM3 and Joomla 3.x! Stripe.com payment plugin for VirtueMart: https://www.puma-it.ie/en/joomla-and-virtuemart-extensions/stripe-for-virtuemart
Authipay (AIB Merchant Services) for VirtueMart 2 & 3: https://www.puma-it.ie/en/joomla-and-virtuemart-extensions/authipay-aib-merchant-services-for-virtuemart