I have the same problem but I reverted back. The words are showing up but the values are not pulling. I was hoping to get a script to show the starting from price with add to the car or see details button for the featured items.
3. Copy below code and paste in newly created FeaturedBox.ascx.cs ================================================================================== using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Configuration; using System.Data; using System.Text; using System.Threading; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using NopSolutions.NopCommerce.BusinessLogic; using NopSolutions.NopCommerce.BusinessLogic.Configuration.Settings; using NopSolutions.NopCommerce.BusinessLogic.Directory; using NopSolutions.NopCommerce.BusinessLogic.Localization; using NopSolutions.NopCommerce.BusinessLogic.Media; using NopSolutions.NopCommerce.BusinessLogic.Orders; using NopSolutions.NopCommerce.BusinessLogic.Products; using NopSolutions.NopCommerce.BusinessLogic.SEO; using NopSolutions.NopCommerce.BusinessLogic.Tax; using NopSolutions.NopCommerce.Common.Utils; using NopSolutions.NopCommerce.BusinessLogic.Infrastructure;
namespace NopSolutions.NopCommerce.Web.Modules { public partial class FeaturedBox : BaseNopFrontendUserControl { Product product = null;
public override void DataBind() { base.DataBind(); this.BindData(); }
public Product Product { get { return product; } set { product = value; } }
public int ProductImageSize { get { if (ViewState["ProductImageSize"] == null) return this.SettingManager.GetSettingValueInteger("Media.Product.ThumbnailImageSize", 125); else return (int)ViewState["ProductImageSize"]; } set { ViewState["ProductImageSize"] = value; } }
/// <summary> /// Gets or sets a value whether we redirects a customer to shopping cart page after adding a product to the cart (overrides "Display.Products.DisplayCartAfterAddingProduct" settings) /// </summary> public bool? RedirectCartAfterAddingProduct { get { if (ViewState["RedirectCartAfterAddingProduct"] == null) return null; else return (bool)ViewState["RedirectCartAfterAddingProduct"]; } set { ViewState["RedirectCartAfterAddingProduct"] = value; } } } } ======================================================================================
I am using 2.2 and cant find this option, please advise..
Sorry to bother, i got it, i made 'catalogsettings.usesmallproductboxonhomepage' to flase and it worked, but one suggestion, this could have been smaller to accomodate three products in a row when using three colomn templete