User group discount not applied when user has existing cart 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 &amp; Discounts applicable to those user groups in Craft Commerce.


a user lands on the site and adds items to his cart &amp; proceeds to checkout
the user is prompted to login or register 
the user logs in OR registers 
3a. upon registration the user is activated &amp; 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 &amp; 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.
I have confirmed this would indeed appear to be a bug in Commerce.

A quick workaround would be to listen to login events and call some sort of update cart hack, but this is really a fix that should happen at the Commerce end of things.

I'll report it.

EDIT: Luke Holder comfirms he's found the bug and it will be fixed in the next point release coming soon.