Author Topic: Some items are missing in the cart  (Read 2687 times)

marvays

  • Jr. Member
  • **
  • Posts: 327
    • richta.cz
  • Skype Name: marvays
Some items are missing in the cart
« on: December 11, 2019, 05:01:49 am »
Hello,
I picked up the goods and put them in the basket. then I select other goods and put them in the basket. When everything is done, I open the basket and see that some of the items in the basket have disappeared. Where is the problem? Cache?

VirtueMart 3.4.2
Joomla! 3.9.13

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27846
  • Always on vacation
    • Jenkin Hill Internet
Re: Some items are missing in the cart
« Reply #1 on: December 11, 2019, 10:09:29 am »
No URL, but I wonder if this is another issue with older VM versions on J3.9 - or a JS problem.

Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.8.4.10335 on Joomla 3.9.21 PHP 7.4.9

marvays

  • Jr. Member
  • **
  • Posts: 327
    • richta.cz
  • Skype Name: marvays
Re: Some items are missing in the cart
« Reply #2 on: December 11, 2019, 10:15:23 am »
ou, sorry. I forgot to mention the url of the shop :(
It is an archery shop in the Czech Republic

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27846
  • Always on vacation
    • Jenkin Hill Internet
Re: Some items are missing in the cart
« Reply #3 on: December 12, 2019, 12:48:18 pm »
Seemed to work OK for me. I did not see any JS errors.  Maybe you do need to clear your caches, especially if using Chrome.
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.8.4.10335 on Joomla 3.9.21 PHP 7.4.9

marvays

  • Jr. Member
  • **
  • Posts: 327
    • richta.cz
  • Skype Name: marvays
Re: Some items are missing in the cart
« Reply #4 on: December 12, 2019, 13:14:10 pm »
The problem happens once a week. Now before Christmas there are more orders, twice a week. Will more frequent clearing of the cache with Regular Labs Cache Cleaner help? Or should I install the JotCache component?

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4367
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Some items are missing in the cart
« Reply #5 on: December 12, 2019, 15:01:29 pm »
Do not use page cache, only module cache else you can see cart or orders form other users !
Jot cache can work, but you have to set it right

marvays

  • Jr. Member
  • **
  • Posts: 327
    • richta.cz
  • Skype Name: marvays
Re: Some items are missing in the cart
« Reply #6 on: December 12, 2019, 15:49:48 pm »
Do not use page cache, only module cache else you can see cart or orders form other users !
I don't understand it :( what do you mean?

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27846
  • Always on vacation
    • Jenkin Hill Internet
Re: Some items are missing in the cart
« Reply #7 on: December 13, 2019, 11:17:00 am »
I would turn off all caching on the site, as long as it does not get stupidly slow. See if that removes the problem, but things that happen only occasionally are so difficult to pin down.
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.8.4.10335 on Joomla 3.9.21 PHP 7.4.9

marvays

  • Jr. Member
  • **
  • Posts: 327
    • richta.cz
  • Skype Name: marvays
Re: Some items are missing in the cart
« Reply #8 on: December 13, 2019, 11:24:11 am »
only module cache else you can see cart or orders form other users !

Does the cart module work with cookies? Or cache?
And I cant see any cache setup in cart module :(

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27846
  • Always on vacation
    • Jenkin Hill Internet
Re: Some items are missing in the cart
« Reply #9 on: December 13, 2019, 12:13:51 pm »
No, the cart is not cached. Realistically I don't understand how sometimes a product is removed from the cart, but the cache is the first place I would start. Check what is on the Joomla Maintenance: Clear Cache page.
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.8.4.10335 on Joomla 3.9.21 PHP 7.4.9

marvays

  • Jr. Member
  • **
  • Posts: 327
    • richta.cz
  • Skype Name: marvays
Re: Some items are missing in the cart
« Reply #10 on: December 13, 2019, 12:23:32 pm »
So, disabled joomla site cache for good work VirtueMart is your standard procedure? Hosting got fast.

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27846
  • Always on vacation
    • Jenkin Hill Internet
Re: Some items are missing in the cart
« Reply #11 on: December 13, 2019, 13:46:00 pm »
I have a very fast cloud server so usually do not worry about caching.  VM cache information is here:  http://docs.virtuemart.net/manual/general-concepts/223-caches.html
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.8.4.10335 on Joomla 3.9.21 PHP 7.4.9

marvays

  • Jr. Member
  • **
  • Posts: 327
    • richta.cz
  • Skype Name: marvays
Re: Some items are missing in the cart
« Reply #12 on: December 13, 2019, 14:10:06 pm »
thx

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4367
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Some items are missing in the cart
« Reply #13 on: December 13, 2019, 18:15:10 pm »
The problem is simple.
If you add a product to your cart as anonymous and use page cache, then other user see same cart/page
If you use cahce for modules, then other user see same module content, if the module support cache.

marvays

  • Jr. Member
  • **
  • Posts: 327
    • richta.cz
  • Skype Name: marvays
Re: Some items are missing in the cart
« Reply #14 on: December 13, 2019, 18:20:57 pm »
The problem is simple.
If you add a product to your cart as anonymous and use page cache, then other user see same cart/page
If you use cahce for modules, then other user see same module content, if the module support cache.
So you also agree that virtuemart needs cache disabled?