[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ic] auto create user on checkout


[userdb
	function=new_account
	assign_username=1
	password='[value zip]'
	verify='[value zip]'
]

Since these values are empty they (fname, lname, etc) are not saved to
userdb or transactions.

Any ideas what could cause [value fname] to be populated before
this line, empty after this line, and show up properly in the
report and receipt files?

I haven't come across this, but the solution might be to add
no_login=1 to the [userdb] parameters.  This, in theory, should
prevent the tag from logging the user into his new account and
reading his (blank) userdb row.

I haven't tried it, by the way - I'm just reading the source.

I too had this problem crop up. I found that setting no_login=1 didn't help as later in log_transaction [userdb save] was called, and failed as no user was logged in.

To resolve this problem I add [update values] immediately after the [userdb new_account ...]. This repopulated the now empty $Values (as a result of the autologin) with the submitted $CGI values. This solved the problem in my case.

jimbo
;-)

_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.