Author Topic: Cart module clear after deconnexion  (Read 1106 times)

berges

  • Jr. Member
  • **
  • Posts: 78
Cart module clear after deconnexion
« on: November 26, 2021, 14:22:36 pm »
Hello
i have a problem with cart module
https://www.loom.com/share/1f7d49fe2e8e4527bddf03bba39212b3
user add some product
user deonnect
user reconnect cart is empty ...
i try to disable all plugins nothing more
i try to change template no more ...
VirtueMart 3.8.8 10472
any idea ?

Jumbo!

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 771
  • Full-stack Web Developer
    • www.virtueplanet.com
  • VirtueMart Version: Always latest
Re: Cart module clear after deconnexion
« Reply #1 on: November 26, 2021, 16:08:23 pm »
That looks like JavaScript issue. Post the site link so we can review it.

berges

  • Jr. Member
  • **
  • Posts: 78
Re: Cart module clear after deconnexion
« Reply #2 on: November 26, 2021, 17:44:34 pm »
thanks for helping you can see here
https://www.maisondelapresse-rabastens.fr/catalogue

Jumbo!

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 771
  • Full-stack Web Developer
    • www.virtueplanet.com
  • VirtueMart Version: Always latest
Re: Cart module clear after deconnexion
« Reply #3 on: November 27, 2021, 07:33:26 am »
thanks for helping you can see here
https://www.maisondelapresse-rabastens.fr/catalogue

No, there is no JS error on your site.

I tried to test by log-in into your site, but I could not create an account as new user registration is presently disabled on your site.

berges

  • Jr. Member
  • **
  • Posts: 78
Re: Cart module clear after deconnexion
« Reply #4 on: November 27, 2021, 08:06:56 am »
here you can test
i create an acconut for you
virtuetest
virtuetest
thanks

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1298
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Cart module clear after deconnexion
« Reply #5 on: November 27, 2021, 15:45:11 pm »
is problem with cache

Don't use cache for e-commerce website
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

berges

  • Jr. Member
  • **
  • Posts: 78
Re: Cart module clear after deconnexion
« Reply #6 on: November 27, 2021, 20:41:08 pm »
i didn't use any cache (no joomla cache, no gzip, no jch) where did you see it ? maybe a cache on hoster ?

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3778
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: Cart module clear after deconnexion
« Reply #7 on: November 27, 2021, 21:48:43 pm »
Have You disabled the Joomla cache plugin ?
Check for cache from host.
Jörgen
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1298
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Cart module clear after deconnexion
« Reply #8 on: November 28, 2021, 22:50:27 pm »
If you disable Joomla cache, then VM still use cache - then we use plugin OPC stop browser cache
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10354
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Cart module clear after deconnexion
« Reply #9 on: November 29, 2021, 11:55:08 am »
The VM cache does not affect the cart/checkout .. only views like category
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

berges

  • Jr. Member
  • **
  • Posts: 78
Re: Cart module clear after deconnexion
« Reply #10 on: November 30, 2021, 14:25:25 pm »
some other idea ?

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1298
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Cart module clear after deconnexion
« Reply #11 on: November 30, 2021, 20:39:03 pm »
Ok, I see video.

So If I understand right - the normal (standard) is
- login
- add something to cart
- logout
- login
- see the same before logout in the cart

That is standard what we want from e-commerce solution, isn't it? :)

But your shop is not function as standard == cart is empty after second login.

I don't know exactly right, but I think in new version VM (from version then cart remember products after logout/login) the info about cart is saved in DB (not in session).
You have to check if really saved in DB and exist BD table - first option

So if is right what wrote Jumbo:
Quote
I tried to test by log-in into your site, but I could not create an account as new user registration is presently disabled on your site.

then logic you don't have DB table for saving cart to user == then you can't load full cart with all product's after logout.

I think - logic will be enable registration on site, that do you mean?
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

berges

  • Jr. Member
  • **
  • Posts: 78
Re: Cart module clear after deconnexion
« Reply #12 on: November 30, 2021, 21:01:01 pm »
sorry i am not agree, if you have a account try any e commerce
1 login
2 add product in cart
3 log out
4 login
=> last cart is loaded, old version of virtuemart works like this, in my cas nothing was write in bd table ...

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1298
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Cart module clear after deconnexion
« Reply #13 on: November 30, 2021, 21:34:25 pm »
I'm sorry, I don't think you understand my English and I don't understand yours :)
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

berges

  • Jr. Member
  • **
  • Posts: 78
Re: Cart module clear after deconnexion
« Reply #14 on: November 30, 2021, 21:36:50 pm »
lol, y try to fhight with beguinner level
but in fact on old vrtuemart that work you can create a cart as a logged user, deconnect it, relogging and your cart is here not empty ... nothing was save in bd table .. i try to find any option in configuration but nothing ...