0

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?

0

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.