Problem in BuyProductDialog

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
cgreathouse
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 21
Joined: Tue Mar 03, 2009 10:49 am

Problem in BuyProductDialog

Post by cgreathouse » Wed May 27, 2009 8:33 am

Hello

When I'm viewing a product I'm noticing the following text right below the "Add to Wishlist" and "Add to Cart" button.

[[ConLib:BuyProductDialog]] Object reference not set to an instance of an object.

I haven't been able to figure out what's causing this to show up. Anybody have any ideas on what's causing this?

Thanks!

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

Re: Problem in BuyProductDialog

Post by mazhar » Wed May 27, 2009 9:20 am

Do you have any customization on your product details page or any custom component placed over product details page?

cgreathouse
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 21
Joined: Tue Mar 03, 2009 10:49 am

Re: Problem in BuyProductDialog

Post by cgreathouse » Wed May 27, 2009 9:52 am

I found the problem.

I had some customizations in BuildProductChoices() where I was searching for a control and then setting the visibility. However I wasn't checking for null before setting the visibility. Once I added a check the error went away.

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

Re: Problem in BuyProductDialog

Post by mazhar » Wed May 27, 2009 9:57 am

sounds good

Post Reply