shopware icon indicating copy to clipboard operation
shopware copied to clipboard

Shopware Commercial - Product qty doubles when logging in as an employee

Open shopwareBot opened this issue 4 months ago • 2 comments

If an employee has items in their cart, and logout or the session otherwise expires, the quantity doubles for any product in their cart.

  • This only happens with enabled Employee Management from our B2B Components.
  • The accounts affected are only employees - i.e. this does NOT happen with the account to which the employee is assigned. For example if our B2B customer is company@, that account will not be affected. If that company has an employee account company_employee@, that one WILL be affected.
  • We can simulate the logout from session expiry simply by deleting the session- cookie

How to reproduce:

  • Have Shopware Commercial active
  • Have a customer with employee management enabled and an employee subaccount registered
  • Login as employee of a B2B customer
  • Put something in your cart
  • Delete session- cookie
  • F5
  • Login again

Expected result: Quantities are still the same as when we put stuff into our cart.

Actual result: Quantities are doubled from what they were previously. This effect occurs every time we login; i.e. we have 1 before expiry, login again, have 2. Next time it’s 4, then 8 and so on.

shopwareBot avatar Oct 07 '24 14:10 shopwareBot