News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Cart persistence after login

Started by guess_who, January 30, 2021, 01:25:01 AM

Previous topic - Next topic

guess_who

Hi there,

I've noticed a strange change when moving to the latest version [3.8.8] from 3.4.2.
Previously a customer's cart would be saved and reloaded upon login (which is a useful feature for me).
It seems something was changed/broken since then and while the cart is being written to the database, it does not seem to be consistently loaded on login.

Logging in on index.php/cart:

  • I get the old cart loaded properly.
  • The saved cart will be properly updated in x_virtuemart_carts with the same virtuemart_cart_id if I add new items.

Logging in on a category/product view:

  • I get an empty cart loaded in the browser.
  • The saved cart will get overwritten in x_virtuemart_carts with the first product I add but will keep the correct virtuemart_cart_id

ermes

Follow (before upgrade I must sure that the cart doesn't empty).