E
E
Evgeny Nikolaev2019-07-18 12:06:53
Joomla
Evgeny Nikolaev, 2019-07-18 12:06:53

Joomla 3 VirtueMart 3 API how to work with the cart? Or are you wondering where VirtueMart is and in what format it stores the basket? How easy is it to get the data?

Hello!
It is necessary to finalize the online store on Joomla 3 VirtueMart 3. After analyzing it for 15 minutes, it became clear that much of what was done on it was quite non-standard. Since the budget and terms for the site are not large, it was decided to carefully rewrite the module APIs that require adjustment of business processes from scratch, and not bring the site to a more or less standard VirtueMart business process approach, since a lot of things have already been wound up and so that nothing breaks.
The question is where and in what format VirtueMart physically stores the cart, and how to connect at least the framework so that you can perform simple operations with the cart (deleting, adding, changing information related to custom fields) .
I will also explain that the chosen way is to minimize the connection of any libraries and, possibly, even VirtueMart components, since initially the site is not fast (pages are generated in 0.5 - 1.5 seconds on average) and there is a desire that the shopping cart functionality using Ajax work quickly, that is, less than 0.5 seconds.
If you know a bunch of VirtueMart cart tables that it uses, please also unsubscribe, it will obviously save time.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Nikolaev, 2019-07-18
@nikolaevevge

Understood, according to the link information on the issue - blog.ivru.net/?id=102
In short - in my case, information about the goods in the basket was stored in the session. The article describes how to get the basket object from the session and you do not even need to connect any VirtueMart libraries, since the information is stored directly in the Joomla session.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question