autocompile fields about account

  • Andrea Baldoni
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
9 years 8 months ago #48064 by Andrea Baldoni
autocompile fields about account was created by Andrea Baldoni
hi, i created a form using chronoform in customer area of my web site; customers use it to send me informazioni about eshop configuration; i'd like autocompile fields about firstname, lastname, email, phone and email when a loged in user uses this form. i mean like in eshop edit account form, i have precompiled all information about user.

in chronoform form i added:
in value of firstname field <?php echo isset($this->user->firstname) ? $this->user->firstname : $firstName; ?>
in value of lastname field <?php echo isset($this->user->lastname) ? $this->user->lastname : $lastName; ?>
in value of email <?php echo isset($this->user->email) ? $this->user->email : $this->rowUser->email; ?>
and so on but not works.

maybe i have to add a php code at the beginning of the page to get that information? i have also to rename the fields with same names, i mean firstname, lastname...?

tx

Please Log in or Create an account to join the conversation.

  • Giang Dinh Truong
  • Offline
  • Administrator
  • Administrator
More
9 years 8 months ago #48281 by Giang Dinh Truong
Replied by Giang Dinh Truong on topic autocompile fields about account
Hello Andrea,
You can not use source code of EShop in Chronoform. The your code will not work. You should find a way to do that by yourself because this is out of support area of EShop.
Sincerely, Giang

Please Log in or Create an account to join the conversation.

Moderators: Giang Dinh Truong