How can i change number of columns in the productspage?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 years ago
Hello,

where can i change the number of columns in a products-masterpage?
I understand from the forum that this can be done in ProductsInGrid.ascx.
However, in NC 1.90 i cannot find a control with this name.

Kidn regards
12 years ago
Change the masterpage in Products.aspx (in this location: NopCommerceStore/Products.aspx)

By default it is set for TwoColumn.master, you can change the masterpage according to your requirement.

<%@ Page Language="C#" MasterPageFile="~/MasterPages/TwoColumn.master" AutoEventWireup="true"
    Inherits="NopSolutions.NopCommerce.Web.ProductPage" CodeBehind="Product.aspx.cs"
     %>
12 years ago
Thanks for the answer.
The strange thing is, there is no file called products.aspx.
There is a page product.aspx, but that is not the one of course.

Could it be possible that this has changed in the latest version?
12 years ago
Just checked. Products.aspx doesn't exist. It didn't exist in earlier versions either. :-)

And i may not have been entirely clear.
I don't want to use three column layout. I can do that easily by changing the masterpage.

What i need to do is displat the products itself in three columns in stead of two columns.
12 years ago
there is no Products.aspx page
there is  a product.aspx which is the page that hosts the productGrids


there are several pages  that host a list of products like: default.aspx  or RecentlyAddedProducts.ascx
each list of products are sets in a control like: HomePageProducts.ascx.cs or RecentlyAddedProducts.ascx.cs

these controls has data lists that layout the products,
data list has a  repeatColums attribute
set the  repeatColums attribute to the numbers of columns u wish
12 years ago
sorry I typed "s" by mistak, it's product.aspx

just change the masterpage from TwoColumn.master to ThreeColumn.master
12 years ago
Hi Mike,

thanks for the help. But with all respect, this is not the issue.
What i mean is, on a product-masterpage (showing all products in a category) products are displyed in two product-columns.

My clients wants to have his products in three columns.

I hope this helps.

Kind regards,
Tjerk
12 years ago
I think you want to change the Templates/Categories files.

ProductsInGrid.ascx
12 years ago
Thanks Mike! Thqt is the file i was looking for.
12 years ago
tjerk wrote:
Hi Mike,

thanks for the help. But with all respect, this is not the issue.
What i mean is, on a product-masterpage (showing all products in a category) products are displyed in two product-columns.

My clients wants to have his products in three columns.

I hope this helps.

Kind regards,
Tjerk


I initially though you wanted to change master page for product variant.

Im glad, everything's working fine now on your side.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.