News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

How to create product updater plugin?

Started by hsoft, July 19, 2017, 15:41:16 PM

Previous topic - Next topic

hsoft

Hi guys,

I'm quite new to VirtueMart development and need some guidance.

I need to write some code to automatically update product information (e.g. stock, prices) in VirtueMart from an external data source. My ide was to make it work online, so whenever a product is displayed on the frontend i request the actual data from the external surce and update the product database if neccessary. My questions are:

  • I don't want to update the database itself, I rather would call the model (or some helper). How can I do it, what method to call?
  • What VM event hook should I implement in my plugin?

Any help would be appriciated. Thank you.


PS: I'm not a native speaker so please forgive my English. Thx.