I have also Domain Rules enabled - and am trying to get rules to assign the user to a (sub)domain as can be done on the "People" page manually (new.domain.com)

I have tried logging the user on during checkout via One Rule with

$account = array('uid' => $account->uid);
user_login_submit(array(), $account);

And then in rules using "set domain to user"

<?echo $domain ?>

to assign the user to the subdomain.

It does not work - and all else works to create the domain.

Is there some php code I can run to programmatically get this done after creating the subdomain ?? Looking through the documentation i can not tell between the domain user module (now gone) how this is done programmatically now

Comments

agentrickard’s picture

Project: Domain » Domain Rules
Version: 7.x-3.11 » 7.x-1.x-dev
bobburns’s picture

I hijacked the $domain variable upon creation in the module and did a db_insert directly to the editor

bobburns’s picture

Status: Active » Closed (fixed)

work around

mooru’s picture

bobburns can you please share how you did it. Thanks