{% extends 'themes/default/config/layout.html' %} {% block body %}

Customer Profile

Contact Preferences
  • Editable Fields:
    {% for fieldname in general_settings['customer_edit_fields'] %} {{field_labels_contact[fieldname]|trans}} {% endfor %}

Organization Preferences
  • Edit Enabled:
    {% if general_settings['customer_org_edit_enabled'] %}On{% else %}Off{% endif %}
  • Editable Fields:
    {% for fieldname in general_settings['customer_org_edit_fields'] %} {{field_labels_org[fieldname]|trans}} {% endfor %}
Customer Registration Form
  • Registration Enabled:
    {% if general_settings['customer_registration_enabled'] %}On{% else %}Off{% endif %}
  • Contact Fields:
    {% for fieldname in general_settings['customer_registration_fields'] %} {{field_labels_contact[fieldname]|trans}} {% endfor %}
    {% include 'themes/default/config/module/update-field.html' with { is_group: "true", condition_rows: general_settings['contact_registration_preset'], f_label: "Contact Predefined Values", f_name: "contact_registration_preset", f_group: "registration_group", module_params: contact_params, field_labels: field_labels_contact, hide_logged: true } %}
  • Organization Registration Enabled:
    {% if general_settings['org_registration_enabled'] %}On{% else %}Off{% endif %}
  • Organization Fields:
    {% for fieldname in general_settings['org_registration_fields'] %} {{field_labels_org[fieldname]|trans}} {% endfor %}
    {% include 'themes/default/config/module/update-field.html' with { is_group: "true", condition_rows: general_settings['org_registration_preset'], f_label: "Organization Predefined Values", f_name: "org_registration_preset", f_group: "registration_group", module_params: org_params, field_labels: field_labels_org, hide_logged: true } %}

Recaptcha Preferences
  • Recaptcha Enabled:
    {% if general_settings['recaptcha_registration_enabled'] %}On{% else %}Off{% endif %}
  • Recaptcha Client Key:
    {{general_settings['recaptcha_client_key']}}
  • Recaptcha Server Key:
    {{general_settings['recaptcha_server_key']}}
Get your reCAPTCHA keys:
To get your google reCAPTCHA key please visit the Google reCAPTCHA Console and login with your google account credentials, at this point you'll need to register a new website using the box on the bottom of the page, then label it for example "MYC Portal" and select "Invisible reCAPTCHA" as recaptcha type, now just add the domains where you want enable the usage of these recaptcha keys, accept the terms and press on "Register" button. You should now ee your new keys "Website Key" (Recaptcha Client Key) and "Secret Key" (Recaptcha Server Key), just copy it and paste in the boxes here.


Website Login/Registration Integration

1) paste this snippet before closing the {{''|escape}} tag on your HTML template:

{{api_script}}

2) add the class myc-open-register-modal to your button to open registration modal window on click or the class myc-open-login-modal to open login modal window on click.


Login Button Example Code:

{{''|escape}}

Registration Button Example Code:

{{'Register'|escape}}
Customer Profiles
    {% set last_id = '1' %} {% for customer_role in available_roles %} {% if customer_role.id > 1 %} {% set last_id = customer_role.id %}
  • Profile Name:
    {{customer_role.name}}
  • Allow create:
    {% if customer_role.allow_create == 1 %}On{% else %}Off{% endif %}
  • Allow edit:
    {% if customer_role.allow_edit == 1 %}On{% else %}Off{% endif %}
  • Allow Download:
    {% if customer_role.allow_download == 1 %}On{% else %}Off{% endif %}
  • Allow Upload:
    {% if customer_role.allow_upload == 1 %}On{% else %}Off{% endif %}
  • Condition Operator:
    {% if customer_role.match_conditions.condition_operator=="OR" %}Match at least one {% elseif customer_role.match_conditions.condition_operator=="AND" %} Match all {% endif %}
  • Match Conditions:
    {% if customer_role.match_conditions.conditions is defined %} {% for condition in customer_role.match_conditions.conditions %} - {% if field_labels[condition.field] is defined %}{{field_labels[condition.field]|trans}}{% else %}{{condition.field|trans}}{% endif %} {{condition.condition|trans}} {{condition.value|trans}}
    {% endfor %} {% endif %}

    {% if customer_role.match_conditions.conditions is defined %} {% for condition in customer_role.match_conditions.conditions %}
    {% endfor %} {% endif %}





  • {% endif %} {% endfor %}




{% endblock %} {% block footerscripts %} {% include 'themes/default/config/resources/myc_field_engine.js.html' %} {% endblock %}