Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

перегделать файл 1.5 в 3 language


bodyak0
 Share

Recommended Posts

language.tpl

 

Всем привет, помогите преобразовать в 3)
Буду очень признателен! Вывод строкой нужно сгделать, а чего то не выходит ничего совсем..

Link to comment
Share on other sites


{% if languages|length > 1 %}
    <form action="{{ action }}" method="post" enctype="multipart/form-data" id="language_form">
        <div id="language">
            {% for language in languages %}
            {% if language.code == code %}
            <a title="{{ language.name }}" class="selected-language">{{ language.name }}</a>
            {% endif %}
            {% if language.code != code %}
            <a title="{{ language.name }}" onclick="$('input[name=\'language_code\']').attr('value', '{{ language.code }}'); $(this).parent().parent().submit();">{{ language.name }}</a>
            {% endif %}
            {% endfor %}
            <input type="hidden" name="language_code" value="" />
            <input type="hidden" name="redirect" value="{{ redirect }}" />
        </div>
    </form>
{% endif %}

 

Edited by slobGrower
пофиксил ошибку
  • +1 1
Link to comment
Share on other sites

2 година назад, slobGrower сказав:
{% if languages|length > 1 %}
    <form action="{{ action }}" method="post" enctype="multipart/form-data" id="language_form">
        <div id="language">
            {% for language in languages %}
            {% if language.code == code %}
            <a title="{{ language.name }}" class="selected-language">{{ language.name }}</a>
            {% endif %}
            {% if language.code != code %}
            <a title="{{ language.name }}" onclick="$('input[name=\'language_code\']').attr('value', '{{ language.code }}'); $(this).parent().parent().submit();">{{ language.name }}</a>
            {% endif %}
            {% endfor %}
            <input type="hidden" name="language_code" value="" />
            <input type="hidden" name="redirect" value="{{ redirect }}" />
        </div>
    </form>
{% endif %}

 

Спасипотому что потому чтольшое тебе добрый человек!!))
Все выводится правильно, одно но не переключается язык)

Edited by bodyak0
Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.