shopware
shopware copied to clipboard
Shopware Commercial - Product qty doubles when logging in as an employee
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.