Home page products including price (NC160)

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 years ago
For people that want to show a list of recommended product on the front page including the price. It requires a few lines of code  in the default.aspx and including of two new modules into the project (do not forget this) and a store rebuild.

You can find all the files and information here.

If you have any questions. Ask!
13 years ago
I am getting this error

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load type 'NopSolutions.NopCommerce.Web.Modules.HomePageProductsIncPriceControl'.

Source Error:


Line 1:  <%@ Control Language="C#" AutoEventWireup="true" Inherits="NopSolutions.NopCommerce.Web.Modules.HomePageProductsIncPriceControl"
Line 2:      CodeBehind="HomePageProductsInclPrice.ascx.cs" %>
Line 3:      <%@ Register TagPrefix="nopCommerce" TagName="ProductBox4" Src="~/Modules/ProductBox4.ascx" %>

Source File: /banditocom/Modules/HomePageProductsInclPrice.ascx    Line: 1

what did I do wrong?
13 years ago
Did you include the new files from the /module/ into your project and rebuild the store?
13 years ago
yes I did
13 years ago
Ok let me check with a fresh 160, maybe i forgot something.

Update:
started from a fresh working 160 and all is working for me.
You must have had forgotten something.

Make sure that:

HomePageProductsInclPrice.ascx
HomePageProductsInclPrice.asx.cs
HomePageProductsInclPrice.ascx.designer.cs

and
ProductBox4.ascx
ProductBox4.ascx.cs
ProductBox4.ascx.designer.cs

is copied into the \NopCommerceStore\Modules\
and include both pages into the project and build NopCommerceStore in vs2008

Did you get any error form vs2008 with building the store?
13 years ago
hımm, I'll try again tonite,
I dont have visual studio here at work,
I'll let you know,
thank you so much
13 years ago
hey it worked, thank you so much
I had to do it on the fresh one as well and it worked :)

thannk you so much
13 years ago
You also need to add the following class to the template style.css and edit to suit your needs


.home-page-product-grid-incl-price .item-box{
  padding-bottom: 5px;
  text-align: center;
  vertical-align: text-top;
   float:left; /* if pnldProductsPrices grid is in flow mode */
   position:relative;
   border:1px solid #EFEFEF;
   margin:5px;
   width:224px;
   background-color:#fff;
}

.home-page-product-grid-incl-price .boxtitle{
    padding: 10px 10px 10px 0px;
  margin: 0 0 0 10px;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 1.1em;
  color: #790242;
}

.home-page-product-grid-incl-price .product-item .add-info
{
position:relative;
  vertical-align:top;
   padding:0;
   margin:0;
  text-align: right;
  position: relative;
   clear:both;
   background-color:#fff;

13 years ago
ok, cool, I'll do that
thank you so much again :)
13 years ago
ok
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.