3 min read

(For more resources related to this topic, see here.)

General site layout and overview

When customers navigate to your store, they will be presented with the homepage. The homepage is where we’ll begin to review the site layout and structure.

  1. Logo : This is your store logo. As with just about every e-commerce site, this serves as a link back to your homepage.
  2. Header links : The toolbar holds some of the most frequently used links, such as Shopping cart, Wishlist, and Account. These links are very customer focused, as this area will also show the customer’s logged in status once they are registered with your site.
  3. Header menu : The menu holds various links to other important pages, such as New products, Search, and Contact us. It also contains the link to the built-in blog site.
  4. Left-side menu : The left-side menu serves as a primary navigation area. It contains the Categories and Manufacturers links as well as Tags and Polls.
  5. Center : This area is the main content of the site. It will hold category and product information, as well as the main content of the homepage.
  6. Right-side menu : The right-side menu holds links to other ancillary pages in your site, such as Contact us, About us, and News. It also holds the Newsletter signup widget.
  7. Footer : The footer holds the copyright information and the Powered by nopCommerce license tag.

The naming conventions used for these areas are driven by the Cascading Style Sheet (CSS) definitions. For instance, if you look at the CSS for the Header links area, you will see a definition of header-links.

nopCommerce uses layouts to define the overall site structure. A layout is a type of page used in ASP.NET MVC to define a common site template, which is then inherited across all the other pages on your site. In nopCommerce, there are several different layout pages used throughout the site. There are two main layout pages that define the core structure:

  • Root head : This is the base layout page. It contains the header of the HTML that is generated and is responsible for loading all the CSS and JavaScript files needed for the site.
  • Root : This layout is responsible for loading the header, footer, and contains the Master Wrapper, which contains all the other content of the page.

These two layouts are common for all pages within nopCommerce, which means every page in the site will display the logo, header links, header menu, and footer. They form the foundation of the site structure. The site pages themselves will utilize one of three other layouts that determine the structure inside the Master Wrapper:

  • Three-column : The three-column layout is what the nopCommerce homepage utilizes. It includes the right side, left side, and center areas. This layout is used primarily on the homepage.
  • Two-column : This is the most common layout that customers will encounter. It includes the left side and center areas. This layout is used on all category and product pages as well as all the ancillary pages.
  • One-column : This layout is used in the shopping cart and checkout pages. It includes the center area only.

Changing the layout page used by certain pages requires changing the code. For instance, if we open the product page in Visual Studio, we can see the layout page being used:

As you can see, the layout defined for this page is _ColumnsTwo.cshtml, the two-column layout. You can change the layout used by updating this property, for instance, to _ColumnsThree.cshtml, to use the three-column layout.

LEAVE A REPLY

Please enter your comment!
Please enter your name here