Skip to main content

Custom fields on emails and account page

More
14 years 1 month ago #60388 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.

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

More
14 years 1 month ago #60432 by nicolas
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.

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

More
12 years 6 months ago - 12 years 6 months ago #148117 by fhesliere
****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
Last edit: 12 years 6 months ago by fhesliere.

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

More
12 years 6 months ago - 12 years 6 months ago #148121 by fhesliere
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
Last edit: 12 years 6 months ago by fhesliere.

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

More
12 years 6 months ago #148359 by Jerome
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,

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.258 seconds
Powered by Kunena Forum