I have a form in which when a particular code is given, the customer group should be changed to apply discounts.
I have tried the following code, it changes the customer group. I can see the discounted prices in Product list page as well as Product detail page. But in the cart and checkout process it doesnt apply.
Can someone please help in solving the issue.