News:

Looking for documentation? Take a look on our wiki

Main Menu

Need help with VM Plugin/Extension

Started by gigamarr, August 24, 2019, 15:35:44 PM

Previous topic - Next topic

gigamarr

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

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.