nopCommerce – The Public-facing Storefront

Exclusive offer: get 50% off this eBook here
Getting Started with nopCommerce

Getting Started with nopCommerce — Save 50%

An in-depth, practical guide to getting your first e-commerce website up and running using nopCommerce with this book and ebook

$16.99    $8.50
by Brandon Atkinson | August 2013 | e-Commerce Open Source

The public-facing storefront of nopCommerce is your e-commerce store. This article by Brandon Atkinson author of Getting Started with nopCommerce will cover the most important parts and generally speaking the most used parts of your site.

All examples in this article are taken from a base nopCommerce installation that used the Create sample data option during the install process.

(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.

Getting Started with nopCommerce An in-depth, practical guide to getting your first e-commerce website up and running using nopCommerce with this book and ebook
Published: June 2013
eBook Price: $16.99
Book Price: $34.99
See more
Select your format and quantity:

Category and manufacturer pages

When adding new products to the site, you can specify their category and manufacturer. These groupings allow customers to search for products on your site more easily.

Category pages display a collection of products that you have grouped under that category. For instance, all books are grouped under the category Books . A customer can navigate to any category located in the left-side area. Once a customer navigates to a particular category, that category link will become bold to indicate to the customer where they currently are. The breadcrumb will also update with the current location.

Categories may also have subcategories to further group your products. For instance, a Computers category may have subcategories that include Desktops, Laptops, and Accessories. If a category has subcategories, the customer will be presented with a page displaying the subcategories. In addition, the left-side area will expand to show the subcategories under the parent category.

Clicking on a subcategory on this page will take the customer to a page displaying all the products for that particular subcategory. The breadcrumb will also update to reflect that the customer is in a subcategory.

Manufacturer pages behave similarly. All products grouped under a certain manufacturer can be displayed together. Customers can navigate to a manufacturer page from the left-side area. Clicking on a particular manufacturer name will display all the products for that manufacturer. As with the category pages, the link will become bold, but there is no breadcrumb on these pages. This is replaced with the manufacturer name instead.

Summary

In this article you took a deep dive into the storefront and the customer experience. You got an overview of the general store layouts and how they are used throughout the site. You learned about category and manufacturer pages.

Resources for Article :


Further resources on this subject:


Getting Started with nopCommerce An in-depth, practical guide to getting your first e-commerce website up and running using nopCommerce with this book and ebook
Published: June 2013
eBook Price: $16.99
Book Price: $34.99
See more
Select your format and quantity:

About the Author :


Brandon Atkinson

Brandon Atkinson is an architect and developer for CapTech Consulting in Richmond, VA. He specializes in Microsoft technologies including ASP.NET and SharePoint, regularly contributing to the SharePoint forums on TechNet. Brandon has owned and operated several online stores over the years, and he has also helped many others with their e-commerce efforts. When he is not writing code, Brandon enjoys playing music, reading, and spending time with his wife.

Books From Packt


WordPress 2.9 E-Commerce
WordPress 2.9 E-Commerce

PrestaShop 1.5 Beginner’s Guide
PrestaShop 1.5 Beginner’s Guide

Joomla! E-Commerce with VirtueMart
Joomla! E-Commerce with VirtueMart

Instant E-Commerce with Magento: Build a Shop [Instant]
Instant E-Commerce with Magento: Build a Shop [Instant]

 Instant E-commerce with OpenCart: Build a Shop [Instant]
Instant E-commerce with OpenCart: Build a Shop [Instant]

 Magento PHP Developer’s Guide
Magento PHP Developer’s Guide

Magento: Beginner's Guide
Magento: Beginner's Guide

Instant Magento Shipping How-to [Instant]
Instant Magento Shipping How-to [Instant]



Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Resources
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software