This was a bug that has been fixed in the latest zip package.
In web\Controls\Core\Search.ascx.cs replace Page_Load with the code as follows.
protected void Page_Load(object sender, EventArgs e) {
EnableViewState = WebUtils.IsPageEditorEnable();
if (null != Data) {
searchData = Utils.FromXml<SearchData>(Data.ToString());
}
if (EditModeEnabled) {
SwitchToEditor();
return;
}
lvwProducts.GroupItemCount = searchData.Columns;
bool showOutofStockPara = false;
foreach (Parameter p in odsProducts.SelectParameters) {
if (p.Name == "showOutofStock") {
showOutofStockPara = true;
break;
}
}
if (!showOutofStockPara)
odsProducts.SelectParameters.Add("showOutofStock", StoreConfigurationSection.GetSection().ShowStock.ToString());
if (searchData.ProductsPerPage == 0)
searchData.ProductsPerPage = SearchData.Default.ProductsPerPage;
dpg2.PageSize = searchData.ProductsPerPage;
keywords = Utils.GetParameter("q", string.Empty);
lblSearchKeywords.Text = keywords;
if (!string.IsNullOrEmpty(keywords)) {
lvwProducts.DataBind();
ProductCount = dpg2.TotalRowCount;
lvwPages.DataBind();
TextCount = dpg.TotalRowCount;
} else {
lvwProducts.Visible = lvwPages.Visible = false;
}
pnlEmptyResult.Visible = ProductCount + TextCount == 0;
dvProducts.Visible = ProductCount > 0;
dvPages.Visible = TextCount > 0;
}
DotShoppingCart Staff
|