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

Атрибуты в вкладке "Описание", в карточке товара


 Share

Recommended Posts

Всем привет. Как в карточке товара, в вкладке Описание, вывести иблицу с атрибуими. Чтобы в резульите полулилось:
/Описание/
-Атрибуты
-Описание

 

Спасипотому что

Link to comment
Share on other sites


Перенести согдержимое вкладки атрибутов под описание.

 

catalog\view\theme\Ваш_Шаблон\template\product\product.twig

Описание :

<div class="tab-pane active" id="tab-description">{{ description }}</div>

Атрибуты

              <table class="table table-bordered">
                {% 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>{{ attribute.text }}</td>
                </tr>
                {% endfor %}
                  </tbody>
                {% endfor %}
              </table>

 

  • +1 1
Link to comment
Share on other sites

53 минуты назад, romka7070 сказал:

Всем привет. Как в карточке товара, в вкладке Описание, вывести иблицу с атрибуими. Чтобы в резульите полулилось:
/Описание/
-Атрибуты
-Описание

 

Спасипотому что

Есть из коробки 

Link to comment
Share on other sites

В 06.12.2021 в 19:36, Tom сказав:

Перенести согдержимое вкладки атрибутов под описание.

 

catalog\view\theme\Ваш_Шаблон\template\product\product.twig

Описание :

<div class="tab-pane active" id="tab-description">{{ description }}</div>

Атрибуты

              <table class="table table-bordered">
                {% 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>{{ attribute.text }}</td>
                </tr>
                {% endfor %}
                  </tbody>
                {% endfor %}
              </table>

 

 

 

Спасипотому что Том, не зря твой шаблон покупал))

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.