V
V
Vladislav2021-01-13 11:24:38
opencart
Vladislav, 2021-01-13 11:24:38

How to add language version of a field in Opencart 2.3?

Good afternoon.
Opencart Version 2.3.0.2 (trs-2.3.0.0).
There is a Russian language, but English does not affect all fields of the admin panel.
How to add an English version in the admin panel (English language tab) for a specific "Store address" field in contacts?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
maxeee52, 2021-01-13
@maxeee52

Please note that the address is used in many places in Opencart and changing it can cause a number of problems that will need to be fixed.
I would advise you to make an additional field (for example, config_custom_address)
View:

{% for language in languages %}
                    <div class="input-group"><span class="input-group-address"><img src="language/{{ language.code }}/{{ language.code }}.png" title="{{ language.name }}" /></span>
                      <textarea name="config_custom_address[{{ language.language_id }}]" rows="5" placeholder="{{ help_address }}" id="input-address" class="form-control">{{ config_custom_address[language.language_id] }}</textarea>
                    </div>
                  {% endfor %}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question