System crash if linked accessory item disabled

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
speedythinker
Commander (CMDR)
Commander (CMDR)
Posts: 121
Joined: Sat Sep 23, 2006 1:00 pm

System crash if linked accessory item disabled

Post by speedythinker » Fri Jan 21, 2011 4:53 pm

If an item with an accessary item(s) linked, if the accessary item being disabled and the item being added to the cart, it will throw out an application error. I found this problem since versin 7.0 be still not being fixed yet.

plugables
Captain (CAPT)
Captain (CAPT)
Posts: 276
Joined: Sat Aug 15, 2009 4:04 am
Contact:

Re: System crash if linked accessory item disabled

Post by plugables » Mon Jan 24, 2011 4:11 am

If this bug was reported in 7.0 then I am sure it must have been fixed. I think what you are seeing is probably different. If you can the post the error details it will be more helpful.

speedythinker
Commander (CMDR)
Commander (CMDR)
Posts: 121
Joined: Sat Sep 23, 2006 1:00 pm

Re: System crash if linked accessory item disabled

Post by speedythinker » Mon Jan 24, 2011 10:05 am

I didn't report it to the Abls about the issue when I found it on v7.0. Now the version of mine is v7.06 and I still see that problem exist so I decided to post it here as I think it's a very damaging problem. Once an item being checked out with a disabled accessory item linked, it crashed. See picture belwo:

Image
Image

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: System crash if linked accessory item disabled

Post by mazhar » Fri Feb 04, 2011 10:25 am

Here is quick fix for you. Edit ConLIb/ProductAccessoriesGrid.ascx.cs file and locate following code line

Code: Select all

addToCartLink.Visible = false;
then update it like

Code: Select all

if(addToCartLink != null)
                    addToCartLink.Visible = false;
Hopefully that will do the trick. Thanks for reporting the issue. I am going to log this.

speedythinker
Commander (CMDR)
Commander (CMDR)
Posts: 121
Joined: Sat Sep 23, 2006 1:00 pm

Re: System crash if linked accessory item disabled

Post by speedythinker » Fri Feb 04, 2011 11:31 am

Yes, it fix the problem. Won't throw out the application no more

Post Reply