Recently Bought Items Control bug in 703

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
William_firefold
Commander (CMDR)
Commander (CMDR)
Posts: 186
Joined: Fri Aug 01, 2008 8:38 am

Recently Bought Items Control bug in 703

Post by William_firefold » 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:

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

Khaliq
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 26
Joined: Tue Dec 16, 2008 2:00 am

Re: Recently Bought Items Control bug in 703

Post by Khaliq » Sat Aug 01, 2009 1:16 am

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.

Post Reply