I assign users to specific user groups and then I created discounts that are applied to orders based on the user groups that the users are in.
I have a scenario where users add items to their cart while they are not logged in. Then when they are ready to do the checkout I show a login or registration page. The user then logs in and is then redirected to the view-cart page.
When they get to the view cart page there are no discounts applied. Discounts are only applied when an item is added or removed from the cart.
How can I reevaluate and recalculate any applicable discounts based on the user groups the user is in when the user logs in?