yapmak istediğim markalar sırayla dizilsin fihrist olmasın.
sorunu çözdüm;
/home/xxxxx/public_html/catalog/view/theme/journal3/template/product/manufacturer_list.twig
dosyasını aşağıdaki ile değiştirin (journal3 ve opencart 3)
{{ header }}
<ul class="breadcrumb">
{% for breadcrumb in breadcrumbs %}
<li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li>
{% endfor %}
</ul>
{% if j3.settings.get('pageTitlePosition') == 'top' %}
<h1 class="title page-title"><span>{{ heading_title }}</span></h1>
{% endif %}
{{ j3.loadController('journal3/layout', 'top') }}
<div id="product-manufacturer" class="container">
<div class="row">{{ 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 %}
<div id="content" class="{{ class }}">
{% if j3.settings.get('pageTitlePosition') == 'default' %}
<h1 class="title page-title">{{ heading_title }}</h1>
{% endif %}
{{ content_top }}
{% if categories %}
<div class="manufacturer">
<div class="manufacturer-logos">
{% for category in categories %}
{% if category.manufacturer %}
{% for manufacturer in category.manufacturer %}
<div class="logo-item">
<a href="{{ manufacturer.href }}" class="image-card">
<img src="{{ manufacturer.image }}" alt="{{ manufacturer.name }}" />
</a>
</div>
{% endfor %}
{% endif %}
{% endfor %}
</div>
</div>
{% else %}
<p>{{ text_empty }}</p>
<div class="buttons clearfix">
<div class="pull-right"><a href="{{ continue }}" class="btn btn-primary">{{ button_continue }}</a></div>
</div>
{% endif %}
{{ content_bottom }}</div>
{{ column_right }}</div>
</div>
{{ footer }}
css olarak ise
.manufacturer-logos {
display: flex;
flex-wrap: wrap;
justify-content: space-around; /* Logoları ortalar */
gap: 15px; /* Logolar arasında boşluk bırakır */
}
.logo-item {
flex: 1 1 30%; /* Her satıra 3 logo sığar */
max-width: 30%; /* Logoların genişliğini sınırlar */
display: flex;
justify-content: center;
margin-bottom: 15px;
}
.logo-item img {
width: 100%;
height: auto; /* Resimlerin orantılı şekilde boyutlanmasını sağlar */
}
bu css kodu ise firma logolarını 3 adet olarak ekrana sığdırır açıklamaları yanında, responsive olarak boyutlandırır.
opencart 3 üreticiler sayfasını nereden düzenleyebilirim
0
●52