Mat22 Posted January 3, 2021 Share Posted January 3, 2021 Prosiłby Ciebie o pomoc. Zmieniłem szablon presta shop 1.6 na podstawowy. Na stronie głównej jest widok nowych produktów oraz najczęściej kupowane Dodałem lawy panel boczny i teraz liczba tych kolumn, czyli 4 jest za duża. Chciałbym 2 lub 3 kolumny. Dlatego, że mam dodatkowy moduł, który wyświetla tabelę sprzedaży opakowań zbiorczych i niestety tabela jest za duża, wystaje poza obręb pola produktu. Gdzie i jak mogę zmienić ilość kolumn z 4 na 3 lub 2? docelowo będzie to już istniejący sklep: https://www.discountpolonais.fr/ w tej chwili pracuję na adresie testowym: https://www.danwhsqdjq.vot.pl/ PrestaShop 1.6.1 Same text in English ----------------------------------- He would ask for your help. I changed the presta shop 1.6 template to the basic one. On the home page there is a view of new products and a block of the most frequently purchased I added the lava side panel and now the number of these columns which is 4 is too big. I would like 2 or 3 columns. Because I have an additional module that displays the sales table of collective packaging, and unfortunately the table is too large, it protrudes beyond the product field. Where and how can I change the number of columns from 4 to 3 or 2? ultimately it will be an existing store: https://www.discountpolonais.fr/ at the moment I'm working on a test address: https://www.danwhsqdjq.vot.pl/ Link to comment Share on other sites More sharing options...
ClassyDevs Posted January 5, 2021 Share Posted January 5, 2021 Hello, you need to modify your theme file https://github.com/PrestaShop/PrestaShop/blob/1.6.1.1/themes/default-bootstrap/product-list.tpl then adjust the column from here line no 49 <li class="ajax_block_product{if $page_name == 'index' || $page_name == 'product'} col-xs-12 col-sm-4 col-md-3{else} col-xs-12 col-sm-6 col-md-4{/if}{if $smarty.foreach.products.iteration%$nbItemsPerLine == 0} last-in-line{elseif $smarty.foreach.products.iteration%$nbItemsPerLine == 1} first-in-line{/if}{if $smarty.foreach.products.iteration > ($smarty.foreach.products.total - $totModulo)} last-line{/if}{if $smarty.foreach.products.iteration%$nbItemsPerLineTablet == 0} last-item-of-tablet-line{elseif $smarty.foreach.products.iteration%$nbItemsPerLineTablet == 1} first-item-of-tablet-line{/if}{if $smarty.foreach.products.iteration%$nbItemsPerLineMobile == 0} last-item-of-mobile-line{elseif $smarty.foreach.products.iteration%$nbItemsPerLineMobile == 1} first-item-of-mobile-line{/if}{if $smarty.foreach.products.iteration > ($smarty.foreach.products.total - $totModuloMobile)} last-mobile-line{/if}"> Then it will solve your issue Thank you Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now