Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Убрать лишние поля в описании товара

Recommended Posts

Подскажите как убрать не нужные поля в описании товара - вес, размеры и пр. И чтобы они потом не выводились в шаблоне сравнения товаров.

И, если не сложно, добавить новые, в случае необходимости.


Link to comment
Share on other sites

Комментируешь вывод ненужных параметров в catalog/view/theme/default/template/product/compare.tpl

Пример убирает вывод веса и размера

<!-- <tr>

<td><?php echo $text_weight; ?></td>

<?php foreach ($products as $product) { ?>

<td><?php echo $products[$product['product_id']]['weight']; ?></td>

<?php } ?>



<td><?php echo $text_dimension; ?></td>

<?php foreach ($products as $product) { ?>

<td><?php echo $products[$product['product_id']]['length']; ?> x <?php echo $products[$product['product_id']]['width']; ?> x <?php echo $products[$product['product_id']]['height']; ?></td>

<?php } ?>

</tr> -->

Link to comment
Share on other sites

  • 9 months later...

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

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