Nop 2.8 - Set no. products per row

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Il y a 11 ans
Where do you set the number of products to display per row in v2.8 ?
Il y a 11 ans
There is no setting for this.  You would need to modify the Views (.cshtml files).  Look for "Html.DataList" on the relevant views.

For example, on Category page,  \Views\Catalog\CategoryTemplate.ProductsInGridOrLines.cshtml

                @(Html.DataList<CategoryModel.SubCategoryModel>(Model.SubCategories, 3,

Note that depending on the css settings for product box, trying to display 4 across rather than 3 may not fit.   You would have to adjust your stylesheet.
Il y a 11 ans
I cannot locate this line of code in CategoryTemplate.ProductsInGridOrLines.cshtml v2.8
Can somebody help please? How to change the number of products in row?
Il y a 11 ans
Just figured it out. It can be changed by manipulating with "width" property in .home-page-category-grid .category-item in style.css
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.