We have a large store and are not able sort and save categories with many subcategories/products. Works on small categories just fine. On large categories we get the AJAX spinning wheel then comes back to the sort page and new sort is not saved.
The following error is logged on the server...
There is a section of code in the SortCategory.aspx page that is new to us as we recently upgraded to Gold from 7.0.7. If I comment this out then the sort works.Exception information:
Exception type: HttpException
Exception message: Request timed out.
Request information:
Request URL: https://www.MyStore.com:443/Admin/Catal ... goryId=477
Request path: /Admin/Catalog/SortCategory.aspx
Code: Select all
// recalculate orderby for child products
foreach (CatalogNode cn in _CatalogNodes)
{
if (cn.CatalogNodeType == CatalogNodeType.Product)
{
Product tempProduct = cn.ChildObject as Product;
if (tempProduct != null)
{
tempProduct.RecalculateOrderBy();
tempProduct.Save();
}
}
}
Thanks