I added an attribute to a product after it was active by creating an attribute and then changing the product to Enabled=false in the db, associating the attirbute with the product through dashCommerce Admin and then changing Enabled back to true. This worked great (attribute shows on product page) EXCEPT that when you click on Add to Cart without specifiying an option from the attribute dropdown, you get an Oops error:
System.NullReferenceException: Object reference not set to an instance of an object.
at MettleSystems.dashCommerce.Web.product.btnAddToCart_Click(Object sender, EventArgs e) in C:\mettlesystems\code\open source\dashCommerce\Web\product.aspx.cs:line 162
I worked around this by changing the attribute's isrequired field to True in the db (the Checkbox was unselectable in the UI) and now I don't get the error, but I don't really want this attribute to be required.
Any suggestions? Bug, or just a product of how I applied the attribute after the fact? Thanks.