I've run accross an issue that seems like a bug to me and I'm desperately looking for some help to solve it.
I've created user groups in Craft & Discounts applicable to those user groups in Craft Commerce.
- a user lands on the site and adds items to his cart & proceeds to checkout
- the user is prompted to login or register
- the user logs in OR registers 3a. upon registration the user is activated & auto logged in with the 'autoLoginAfterAccountActivation' => true config option
- the user is redirected back to his cart - at this point in time I'm expecting to see a discount adjustment on the cart
The problem is that there is no discount adjustment on the cart - the only way the discount adjustment kicks in is if the cart is updated, by adding or removing an item ie: updateCart is fired.
I've double checked my discount rules & they are definitely setup correctly - the problem is that the users cart is "remembered" from before he was registered ie: before he was part of a user group that is eligible for a discount.
I'm looking for a way to "force" a cart refresh of some sorts.