4 replies [Last post]
melanie_me's picture
Offline
Joined: 03/29/2009
Juice: 108
Was this information Helpful?

I am wondering if there is a way to assign a role to a customer without letting them know the role has been assigned. I turned off all the email notifications, but Ubercart still lets the customer know about the role after checkout.

Here's the context: Parents can register online for their child to audition for a ballet. When they pay for the registration, they are assigned the role of "parent" which will give them access to the parent section of the site. We don't want to tell parents about the special section until after the auditions. Some parents are confused when they see the role assignment message after checkout.

Thanks!

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Assign a role without telling the customer?

There is a Conditional Actions predicate that controls the email notification for roles. You should be able to disable it.

melanie_me's picture
Offline
Joined: 03/29/2009
Juice: 108
Re: Re: Assign a role without telling the customer?

I disabled all the email notifications, but I guess the customer is told about the role after checkout on the site.

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Re: Re: Assign a role without telling the customer?

Yeah, the problem is with a drupal_set_message() in an API function. I disabled this on a site I was working on, and I'm pretty sure I committed the code. Looking at the logs, it appears this made it in on July 24. When we get an RC 4, the action for "renewing roles" will be updated to include the option to suppress the user role grant message and will be disabled by default.

melanie_me's picture
Offline
Joined: 03/29/2009
Juice: 108
Re: Re: Re: Re: Assign a role without telling the customer?

Great! Thanks!