Page 1 of 1

Recently Bought Items Control bug in 703

Posted: Thu Jul 30, 2009 6:50 am
by William_firefold
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:

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?).

Re: Recently Bought Items Control bug in 703

Posted: Sat Aug 01, 2009 1:16 am
by Khaliq
You can get the updated control from http://www.plugables.com/Recently-Bough ... ol-P7.aspx

About caching - yes ideally caching should be done.
Source code is available so you can add this feature if you like. It shouldn't be difficult at all. If I got time I will add caching to it some day.