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

Пересивить кнопки в карточке товара(Атрибуты пересивились,а сами кнопки нет)


Recommended Posts

Добрый гдень!
Да моя тема возможно может слииться одинаковой с другими аналогичными темами згдесь, но тут немного другая проблема..

 

Сами атрибуты ушли из под кнопки "Characteristics" на 1-ое место как я и хотел.
Но с осильной частью возникла проблема, сам заголовок "Characteristics" не меняется месими с "Description", который как вы видите на скриншоте исчез.

 

 

Вот код ггде происходили пересиновки.
 

{% if attribute_groups %}
<li class="active"><a href="#tab-specification" data-toggle="tab">{{ tab_specification }}</a></li>
            <li><a href="#tab-description" data-toggle="tab">{{ tab_attribute }}</a></li>
        {% endif %}

И

 

 <div class="tab-content margin-bottom">
        {% if attribute_groups %}
            <div class="tab-pane" id="tab-specification">
              <table class="table">
                {% for attribute_group in attribute_groups %}
                <thead>
                  <tr>
                    <td colspan="2"><strong>{{ attribute_group.name }}</strong></td>
                  </tr>
                </thead>
                <tbody>
                  {% for attribute in attribute_group.attribute %}
                  <tr>
                    <td>{{ attribute.name }}</td>
                    <td class="text-right">{{ attribute.text }}</td>
                  </tr>
                  {% endfor %}
                </tbody>
                {% endfor %}
              </table>
            </div>
            {% endif %}
<div class="tab-pane-active" id="tab-description">{{ description }}</div>

 

Link to comment
Share on other sites


вместо {{ tab_attribute }} записать {{ tab_description }}

вместо {{ tab_specification }} записать {{ tab_attribute }}

 

классы tab-pane active правильно написать (у вас через тире) и применить не для вкладки описания, а для вкладки атрибутов

 

Обновить модификаторы и кэш шаблона

 

 

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

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • 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.