Custom fields on emails and account page

  • Posts: 7
  • Thank you received: 0
12 years 3 months ago #60388

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.

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
12 years 3 months ago #60432

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.

  • Posts: 22
  • Thank you received: 0
10 years 8 months ago #148117

****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: 10 years 8 months ago by fhesliere.

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

  • Posts: 22
  • Thank you received: 0
10 years 8 months ago #148121

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: 10 years 8 months ago by fhesliere.

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

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
10 years 8 months ago #148359

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.071 seconds
Powered by Kunena Forum