- Posts: 7
- Thank you received: 0
Custom fields on emails and account page
14 years 1 month ago #60388
by octurian
Custom fields on emails and account page was created by octurian
Hi, I bought the Business edition.
I have added custom fields during registration but require them to be displayed on customers email and when he views his account online.
How do I do this please advise.
I have added custom fields during registration but require them to be displayed on customers email and when he views his account online.
How do I do this please advise.
Please Log in or Create an account to join the conversation.
14 years 1 month ago #60432
by nicolas
Replied by nicolas on topic Re: Custom fields on emails and account page
Hi,
If you create custom fields of the table "user" and that the user synchronization plugin is published, your users will be able to see them on their user profile edition page. There is nothing else to do.
For the customer email, you will have to edit the email "user account" via the menu System->Emails and add such code for each field:
<?php echo 'My field: '.$data->user_data->CUSTOM_FIELD_COLUMN; ?><br/>
where CUSTOM_FIELD_COLUMN is the the column name of your custom field.
If you create custom fields of the table "user" and that the user synchronization plugin is published, your users will be able to see them on their user profile edition page. There is nothing else to do.
For the customer email, you will have to edit the email "user account" via the menu System->Emails and add such code for each field:
<?php echo 'My field: '.$data->user_data->CUSTOM_FIELD_COLUMN; ?><br/>
where CUSTOM_FIELD_COLUMN is the the column name of your custom field.
Please Log in or Create an account to join the conversation.
12 years 6 months ago - 12 years 6 months ago #148117
by fhesliere
Replied by fhesliere on topic Re: Custom fields on emails and account page
****Problem solved****
(Don't know how, but it works... now)
Hello Nicolas,
same problem here. The plugin is published, but the fields still don't appear on the user account's view.
Is there another plugin to publish or something special to activate ?
Thx for your answer
(Don't know how, but it works... now)
Hello Nicolas,
same problem here. The plugin is published, but the fields still don't appear on the user account's view.
Is there another plugin to publish or something special to activate ?
Thx for your answer
Last edit: 12 years 6 months ago by fhesliere.
Please Log in or Create an account to join the conversation.
12 years 6 months ago - 12 years 6 months ago #148121
by fhesliere
Replied by fhesliere on topic Re: Custom fields on emails and account page
Hi again Nicolas,
is it possible for some fields to be not writable in the account view ?
i.e. : the user register with some extra fields on the login form (for example : a fidelity card number) and cannot change it once it has been validated, and is only "readable" in the account view ?
thx in advanced for your help
is it possible for some fields to be not writable in the account view ?
i.e. : the user register with some extra fields on the login form (for example : a fidelity card number) and cannot change it once it has been validated, and is only "readable" in the account view ?
thx in advanced for your help
Last edit: 12 years 6 months ago by fhesliere.
Please Log in or Create an account to join the conversation.
12 years 6 months ago #148359
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Re: Custom fields on emails and account page
Hi,
The user custom field is always editable.
If the custom field is not displayed in the front-end, it won't be editable by the user.
The solution could be to override the view in order to change the way that the custom field is displayed, not put the classical input (but display the content and let the value in an hidden input field).
Regards,
The user custom field is always editable.
If the custom field is not displayed in the front-end, it won't be editable by the user.
The solution could be to override the view in order to change the way that the custom field is displayed, not put the classical input (but display the content and let the value in an hidden input field).
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Time to create page: 0.229 seconds