mazhar, if you see this and want to take a look at it, we had another programmer look it over and he wasnt sure how to fix it but had this to say:
Code: Select all
The code in Conlib\Custom\ItemBought.ascx.cs does not seem right. It only considers order items with ParentItemId == 0. All of the order items in my test system have ParentItemId > 0. So no products are ever found in my test system. Is that what is happening to you?
I also noticed that the code retrieves a list of every order id in the system (not very efficient) every time the home page loads (couldn’t the list be cached for at least a few minutes?).