VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: gigamarr on August 24, 2019, 15:35:44 PM

Title: Need help with VM Plugin/Extension
Post by: gigamarr 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.
Title: Re: Need help with VM Plugin/Extension
Post by: Studio 42 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.