A
A
Alexey Ivanov2017-12-01 01:06:36
Python
Alexey Ivanov, 2017-12-01 01:06:36

When reloading the site page on MODX REVO, the cart is cleared. What could be the problem?

Hello!
There is a site made on MODX revo 2.3.3 (php 5.3). It has Shopkeeper 2.3.10 installed. Everything is set up, the basket works, but - for example, I put an item in the basket, go to the basket for checkout (or just reload the page) and see that the basket is empty. Sometimes the basket remains full, but on the second page reload it is cleared.
Such a nuance: if at this moment I am logged in to the admin panel, then everything is in order, the product behaves perfectly in the basket, no matter how you reload the site pages. That is, the jamb appears only if I am not authorized in the admin panel.
The browser console is empty, I changed and changed versions of jquery. I can't lower Php below - the site will break (pdoTools is installed). The server logs are clean...
Friends, advise, if possible, in which direction to dig? I've been scouring the Internet for half a day - I haven't even found a hint of this anywhere!
PS: The topic about the shopkeeper's jamb, where the default template is substituted in the basket due to the php version - is not the same at all!)) She was also on the site when Php 5.6 was installed, but after changing the php version everything was fine. Actually, I thought it was...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ilya Korol, 2019-09-16
@MZOK

Using LongPoll, the Message object has peer_id and from_id fields, where peer_id is the conversation number and from_id is the user id. In private messages from_id = peer_id, in conversations - peer_id>20000000

A
Alexey Ivanov, 2017-12-01
@mg15

Problem solved!
It turned out that in the MODX settings the session_cookie_lifetime variable had a value of 6. Provided that it was set as 604800 by default. I don’t know who made such a joke ... Accordingly, if I understand correctly, the data on the goods in the basket was honestly stored for 6 seconds .
This moment became clear when I stopped picking the shopkeeper and began to study the mechanism for saving data in the basket. Well, word for word, as they say! I stepped, of course, I admit - I had to immediately think about the time of data storage, and not look for errors, which, it turns out, did not exist at all.
The only point: I have not yet understood why the basket was not reset when the admin panel was authorized?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question