Page 1 of 1

System crash if linked accessory item disabled

Posted: Fri Jan 21, 2011 4:53 pm
by speedythinker
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.

Re: System crash if linked accessory item disabled

Posted: Mon Jan 24, 2011 4:11 am
by plugables
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.

Re: System crash if linked accessory item disabled

Posted: Mon Jan 24, 2011 10:05 am
by speedythinker
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

Re: System crash if linked accessory item disabled

Posted: Fri Feb 04, 2011 10:25 am
by mazhar
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.

Re: System crash if linked accessory item disabled

Posted: Fri Feb 04, 2011 11:31 am
by speedythinker
Yes, it fix the problem. Won't throw out the application no more