{{ header }}{{ column_left }}
{% if error_warning %}
{{ error_warning }}
{% endif %} {% if saved_settings.module_retailcrm_url is defined %} {% endif %}

{{ retailcrm_base_settings }}




{{ retailcrm_countries_settings }}

{% for country in countries %}
{% endfor %}
{% if saved_settings.module_retailcrm_apikey is defined and saved_settings.module_retailcrm_apikey and saved_settings.module_retailcrm_url is defined and saved_settings.module_retailcrm_url %} {% if retailcrm_errors|length %} {% for retailcrm_error in retailcrm_errors %}
{{ retailcrm_error }}
{% endfor %} {% else %}

{{ retailcrm_upload_order }}

{{ retailcrm_dict_settings }}

{{ retailcrm_dict_delivery }}

{% for value in delivery.opencart %}
{{ value.title ~ ':' }}
{% for key, val in value %} {% if key != 'title' %}
{% endif %} {% endfor %} {% endfor %}

{{ retailcrm_dict_status }}

{% for status in statuses.opencart %} {% set uid = status.order_status_id %}
{% endfor %}

{{ retailcrm_dict_payment }}

{% for key, value in payments.opencart %}
{% endfor %}

{{ retailcrm_dict_default }}

{% endif %} {% endif %}

{{ daemon_collector }}

{% for field, label in collectorFields %}
{% endfor %}
{% if saved_settings.module_retailcrm_apiversion is defined and saved_settings.module_retailcrm_apiversion == 'v5' and customFields is defined %}

{{ retailcrm_dict_custom_fields }}

{% if customFields.retailcrm is not empty and customFields.opencart is not empty %}

{{ text_customers_custom_fields }}

{% for customField in customFields.opencart %} {% set fid = 'c_' ~ customField.custom_field_id %}
{% endfor %}

{{ text_orders_custom_fields }}

{% for customField in customFields.opencart %} {% set fid = 'o_' ~ customField.custom_field_id %}
{% endfor %} {% elseif customFields.retailcrm is empty and customFields.opencart is empty %}
{{ text_error_custom_field }}
{% elseif customFields.retailcrm is empty %}
{{ text_error_cf_retailcrm }}
{% elseif customFields.opencart is empty %}
{{ text_error_cf_opencart }}
{% endif %}
{% endif %}
Retailcrm API error log
{% if logs.retailcrm_log is defined %}
{% elseif logs.retailcrm_error is defined %}
{{ logs.retailcrm_error }}
{% endif %}
Opencart API error log
{% if logs.oc_api_log is defined %}
{% elseif logs.oc_error is defined %}
{{ logs.oc_error }}
{% endif %}
{{ footer }}