Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question