I have a working on a shop right now, and i want to display 4 products in a row in category view, but i cant figure out, how to solve that. When i toggle inspect element in browser i see this code:
<div class="row">
<div class="product-layout product-grid col-lg-4 col-md-4 col-sm-6 col-xs-12">..</div>
<div class="product-layout product-grid col-lg-4 col-md-4 col-sm-6 col-xs-12">..</div>
<div class="product-layout product-grid col-lg-4 col-md-4 col-sm-6 col-xs-12">..</div>
<div class="clearfix visible-lg"></div>..</div>
<div class="product-layout product-grid col-lg-4 col-md-4 col-sm-6 col-xs-12">..</div>
When here i change from col-lg-4 to col-lg-3, and i delete inbe with clearfix-visible, it looks like i want, but when i search in
catalog/view/theme/default/template/product/category.tpl
<div class="row">
<?php foreach ($products as $product) { ?>
<div class="product-layout product-list col-xs-12">
<div class="product-thumb">
but it refers to list view. Where can i setup this permamently?
So i found the solution: must change catalog/view/javascript/common.js at // Product Grid:
And also clearfix in common.js:
// Adding the clear Fix cols1 = $('#column-right, #column-left').length;