Author Topic: Need help with VM Plugin/Extension  (Read 205 times)

gigamarr

  • Beginner
  • *
  • Posts: 1
  • A beginner
Need help with VM Plugin/Extension
« on: August 24, 2019, 15:35:44 pm »
Hello, I'm a python developer with no prior experience with Joomla/VirtueMart. I'm trying to send product data with python to Joomla/VirtueMart, I have thought of adding it directly to the database remotely, however I want to know if it is possible to develop a plugin that  I could send the data to so the plugin can add the product itself, instead of sending the data directly to the database. I'd appreciate any guidance, thanks.

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 3973
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Need help with VM Plugin/Extension
« Reply #1 on: August 24, 2019, 17:22:44 pm »
See com_ajax. For a standard way to send datas using json for eg. https://docs.joomla.org/Using_Joomla_Ajax_Interface
If you need more advanced features, you can create a virtuemart vmextended plugin and use similar method.
You can find datas format in the class TableProducts. See JoomlaRoot/administrator/components/com_virtuemart/tables/products.php
Note that products use multiple tables, so it's not so simple, but it's a good starting point.