Recently Bought Items Control bug in 703
Posted: Thu Jul 30, 2009 6:50 am
We just noticed that our recently bought items control doesnt function in 7.0.3. I think mazhar wrote it a while ago, and im not sure if it is compatible with the new version. I even tried the default files to make sure we didnt break it.
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:
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?).