Skip to content

Commit

Permalink
Reverted changes in product/compare
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCartpenter committed Jun 6, 2024
1 parent 6ae8170 commit 69c43e1
Showing 1 changed file with 103 additions and 107 deletions.
210 changes: 103 additions & 107 deletions upload/catalog/view/theme/default/template/product/compare.twig
Original file line number Diff line number Diff line change
Expand Up @@ -21,126 +21,122 @@
<div class="{{ class }}" id="content">{{ content_top }}
<h1>{{ heading_title }}</h1>
{% if products %}
<div class="table-responsive">
<table class="table table-bordered">
<thead>
<tr>
<td colspan="{{ products|length + 1 }}"><strong>{{ text_product }}</strong></td>
</tr>
</thead>
<tbody>
<tr>
<td>{{ text_name }}</td>
{% for product in products %}
<td><a href="{{ product.href }}"><strong>{{ product.name }}</strong></a></td>
{% endfor %}
</tr>
<tr>
<td>{{ text_image }}</td>
{% for product in products %}
<td class="text-center">{% if product.thumb %} <img src="{{ product.thumb }}" alt="{{ product.name }}" title="{{ product.name }}" class="img-thumbnail"/> {% endif %}</td>
{% endfor %}
</tr>
<table class="table table-bordered">
<thead>
<tr>
<td colspan="{{ products|length + 1 }}"><strong>{{ text_product }}</strong></td>
</tr>
</thead>
<tbody>
<tr>
<td>{{ text_name }}</td>
{% for product in products %}
<td><a href="{{ product.href }}"><strong>{{ product.name }}</strong></a></td>
{% endfor %}
</tr>
<tr>
<td>{{ text_image }}</td>
{% for product in products %}
<td class="text-center">{% if product.thumb %} <img src="{{ product.thumb }}" alt="{{ product.name }}" title="{{ product.name }}" class="img-thumbnail"/> {% endif %}</td>
{% endfor %}
</tr>
<tr>
<td>{{ text_price }}</td>
{% for product in products %}
<td>
{% if product.price %}
{% if not product.special %}
{{ product.price }}
{% else %}
<span style="text-decoration: line-through;">{{ product.price }}</span>
{{ product.special }}
{% endif %}
{% endif %}</td>
{% endfor %}
</tr>
<tr>
<td>{{ text_model }}</td>
{% for product in products %}
<td>{{ product.model }}</td>
{% endfor %}
</tr>
<tr>
<td>{{ text_manufacturer }}</td>
{% for product in products %}
<td>{{ product.manufacturer }}</td>
{% endfor %}
</tr>
<tr>
<td>{{ text_availability }}</td>
{% for product in products %}
<td>{{ product.availability }}</td>
{% endfor %}
</tr>
{% if review_status %}
<tr>
<td>{{ text_price }}</td>
<td>{{ text_rating }}</td>
{% for product in products %}
<td>
{% if product.price %}
{% if not product.special %}
{{ product.price }}
<td class="rating">
{% for i in 1..5 %}
{% if product.rating < i %}
<span class="fa fa-stack"><i class="fa fa-star-o fa-stack-2x"></i></span>
{% else %}
<span style="text-decoration: line-through;">{{ product.price }}</span>
{{ product.special }}
<span class="fa fa-stack"><i class="fa fa-star fa-stack-2x"></i><i class="fa fa-star-o fa-stack-2x"></i></span>
{% endif %}
{% endif %}</td>
{% endfor %}
</tr>
<tr>
<td>{{ text_model }}</td>
{% for product in products %}
<td>{{ product.model }}</td>
{% endfor %}
</tr>
<tr>
<td>{{ text_manufacturer }}</td>
{% for product in products %}
<td>{{ product.manufacturer }}</td>
{% endfor %}<br/>
{{ product.reviews }}</td>
{% endfor %}
</tr>
{% endif %}
<tr>
<td>{{ text_summary }}</td>
{% for product in products %}
<td class="description">{{ product.description }}</td>
{% endfor %}
</tr>
<tr>
<td>{{ text_weight }}</td>
{% for product in products %}
<td>{{ product.weight }}</td>
{% endfor %}
</tr>
<tr>
<td>{{ text_dimension }}</td>
{% for product in products %}
<td>{{ product.length }} x {{ product.width }} x {{ product.height }}</td>
{% endfor %}
</tr>
</tbody>
</table>
<table class="table table-bordered">
{% for attribute_group in attribute_groups %}
<thead>
<tr>
<td>{{ text_availability }}</td>
{% for product in products %}
<td>{{ product.availability }}</td>
{% endfor %}
<td colspan="{{ products|length + 1 }}"><strong>{{ attribute_group.name }}</strong></td>
</tr>
{% if review_status %}
</thead>
{% for key, attribute in attribute_group.attribute %}
<tbody>
<tr>
<td>{{ text_rating }}</td>
<td>{{ attribute.name }}</td>
{% for product in products %}
<td class="rating">
{% for i in 1..5 %}
{% if product.rating < i %}
<span class="fa fa-stack"><i class="fa fa-star-o fa-stack-2x"></i></span>
{% else %}
<span class="fa fa-stack"><i class="fa fa-star fa-stack-2x"></i><i class="fa fa-star-o fa-stack-2x"></i></span>
{% endif %}
{% endfor %}<br/>
{{ product.reviews }}</td>
{% if product.attribute[key] %}
<td>{{ product.attribute[key] }}</td>
{% else %}
<td></td>
{% endif %}
{% endfor %}
</tr>
{% endif %}
<tr>
<td>{{ text_summary }}</td>
{% for product in products %}
<td class="description">{{ product.description }}</td>
{% endfor %}
</tr>
<tr>
<td>{{ text_weight }}</td>
{% for product in products %}
<td>{{ product.weight }}</td>
{% endfor %}
</tr>
<tr>
<td>{{ text_dimension }}</td>
{% for product in products %}
<td>{{ product.length }} x {{ product.width }} x {{ product.height }}</td>
{% endfor %}
</tr>
</tbody>
</table>
</div>
<div class="table-responsive">
<table class="table table-bordered">
{% for attribute_group in attribute_groups %}
<thead>
<tr>
<td colspan="{{ products|length + 1 }}"><strong>{{ attribute_group.name }}</strong></td>
</tr>
</thead>
{% for key, attribute in attribute_group.attribute %}
<tbody>
<tr>
<td>{{ attribute.name }}</td>
{% for product in products %}
{% if product.attribute[key] %}
<td>{{ product.attribute[key] }}</td>
{% else %}
<td></td>
{% endif %}
{% endfor %}
</tr>
</tbody>
{% endfor %}
</tbody>
{% endfor %}
<tr>
<td></td>
{% for product in products %}
<td><input type="button" value="{{ button_cart }}" class="btn btn-primary btn-block" onclick="cart.add('{{ product.product_id }}', '{{ product.minimum }}');"/><a href="{{ product.remove }}" class="btn btn-danger btn-block">{{ button_remove }}</a></td>
{% endfor %}
</tr>
</table>
</div>
{% endfor %}
<tr>
<td></td>
{% for product in products %}
<td><input type="button" value="{{ button_cart }}" class="btn btn-primary btn-block" onclick="cart.add('{{ product.product_id }}', '{{ product.minimum }}');"/><a href="{{ product.remove }}" class="btn btn-danger btn-block">{{ button_remove }}</a></td>
{% endfor %}
</tr>
</table>
{% else %}
<p>{{ text_no_results }}</p>
<div class="buttons">
Expand Down

0 comments on commit 69c43e1

Please sign in to comment.