Kategoriye girdiğimizde ürünleri tek tek değil de 2'li olarak yan yana göstermek istiyorum. Bunu yabancı forumlarda twig dosyalarından yapılacağı hakkında bir şey okudum. Tam olarak nasıl yapabilirim?

Opencart 3.0.2.0 Mobilde 2 Ürün Yan Yana Gösterme |
5 Mesajlar | 3.402 Okunma | ||

bu kodun yerine
yukarıdakini koyun demiş.
catalog\view\theme\default\template\product\category.twig
catalog\view\theme\default\template\extension\module\featured.twig
Bulabileceğiniz dosyalarda bu şekilde belirtilmiş.
Ancak mobil sürümde denenmediğini de ayrıca belirtmiş.
Mutlaka yedek alın çalışma yapmadan önce.
{{ header }}
{{ column_left }}
{% if column_left and column_right %}
{% set class = 'col-sm-6' %}
{% elseif column_left or column_right %}
{% set class = 'col-sm-9' %}
{% else %}
{% set class = 'col-sm-12' %}
{% endif %}
{{ content_top }}
{{ heading_title }}
{% if thumb or description %}
{% if thumb %}
{% endif %}
{% if description %}
{{ description }}
{% endif %}
{% endif %}
{% if categories %}
{{ text_refine }}
{% if categories|length <= 5 %}
{% else %}
{% for category in categories|batch((categories|length / 4)|round(1, 'ceil')) %}
{% endfor %}
{% endif %}
{% endif %}
{% if products %}
{% for product in products %}
{{ product.name }}
{{ product.description }}
{% if product.price %}
{% if not product.special %}
{{ product.price }}
{% else %} {{ product.special }} {{ product.price }} {% endif %}
{% if product.tax %} {{ text_tax }} {{ product.tax }} {% endif %}
{% endif %}
{% if product.rating %}
{% endif %}
{% endfor %}
{{ pagination }}
{{ results }}
{% endif %}
{% if not categories and not products %}
{{ text_no_results }}
{% endif %}
{{ content_bottom }}
{{ column_right }}
{{ footer }}