VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: Kuubs on June 07, 2022, 10:10:21 AM

Title: API Virtuemart
Post by: Kuubs on June 07, 2022, 10:10:21 AM
Hello,

Does the Virtuemart provide some sort of API or something else to inject orders to the database? I have another portal that gets orders, but i'd like to have everything in one spot, the Virtuemart environment. Is there some sort of way to programmatically insert these orders into the database?
Title: Re: API Virtuemart
Post by: pinochico on June 07, 2022, 10:41:49 AM
QuoteDoes the Virtuemart provide some sort of API or something else to inject orders to the database? I have another portal that gets orders, but i'd like to have everything in one spot, the Virtuemart environment. Is there some sort of way to programmatically insert these orders into the database?


Yes,

we used to use trigger calls to store orders from the mobile app, including client information, into the VirtueMart DB
Title: Re: API Virtuemart
Post by: Kuubs on June 07, 2022, 11:01:28 AM
Quote from: pinochico on June 07, 2022, 10:41:49 AM
QuoteDoes the Virtuemart provide some sort of API or something else to inject orders to the database? I have another portal that gets orders, but i'd like to have everything in one spot, the Virtuemart environment. Is there some sort of way to programmatically insert these orders into the database?


Yes,

we used to use trigger calls to store orders from the mobile app, including client information, into the VirtueMart DB

Ok awesome, do you have any documentation or something describing the API?
Title: Re: API Virtuemart
Post by: pinochico on June 07, 2022, 23:47:23 PM
We have own plugin VM API.

In this plugin we created custom function (userLogin, createOrder)  and if mobile app created json (order), then we catch him and call all VM triggers which we need (add to cart, ...)

That is all what I know, for me is enough, because Im not developer, only project manager, and this info is ok for developers.
Title: Re: API Virtuemart
Post by: Kuubs on June 08, 2022, 08:50:30 AM
Quote from: pinochico on June 07, 2022, 23:47:23 PM
We have own plugin VM API.

In this plugin we created custom function (userLogin, createOrder)  and if mobile app created json (order), then we catch him and call all VM triggers which we need (add to cart, ...)

That is all what I know, for me is enough, because Im not developer, only project manager, and this info is ok for developers.

Okay, care to share that plugin?
Title: Re: API Virtuemart
Post by: pinochico on June 09, 2022, 10:07:26 AM
Send me email to PM
Title: Re: API Virtuemart
Post by: Kuubs on June 09, 2022, 13:12:50 PM
Quote from: pinochico on June 09, 2022, 10:07:26 AM
Send me email to PM
Done!