nandosendraa Posted February 6, 2024 Share Posted February 6, 2024 I'm trying to add a customer to a group but it doesn't work, I have tried these two things obviously separately, but doesn't do nothing $customer->updateGroup([4]); $customer->addGroups([4]); Link to comment Share on other sites More sharing options...
endriu107 Posted February 6, 2024 Share Posted February 6, 2024 Are you sure your code is triggered? Link to comment Share on other sites More sharing options...
nandosendraa Posted February 6, 2024 Author Share Posted February 6, 2024 2 minutes ago, endriu107 said: Are you sure your code is triggered? I've tried first $customer->updateGroup([4]); and in other try $customer->addGroups([4]); But nothing works Link to comment Share on other sites More sharing options...
endriu107 Posted February 6, 2024 Share Posted February 6, 2024 But are you sure your code is triggered? Maybe code is never triggered that why is not working. Link to comment Share on other sites More sharing options...
nandosendraa Posted February 6, 2024 Author Share Posted February 6, 2024 I comproved that th code is triggered dumping the customer variable Link to comment Share on other sites More sharing options...
nandosendraa Posted February 6, 2024 Author Share Posted February 6, 2024 16 minutes ago, endriu107 said: But are you sure your code is triggered? Maybe code is never triggered that why is not working. I comproved that th code is triggered dumping the customer variable Link to comment Share on other sites More sharing options...
Prestashop Addict Posted February 8, 2024 Share Posted February 8, 2024 What is your PS version? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now