HomeHome Product Discus... Product Discus...SmithCartSmithCartConditional Variant Bugs-Variants Disappeared/CanConditional Variant Bugs-Variants Disappeared/Can't add to cart, etc.
Previous
 
Next
New Post
7/20/2010 2:15 PM
 

Hi I just decided to try the conditional variant with ho wi thought it might be used. I defined a new variant group called "Track type". I made the track type a drop down box with three entries, "Standard Surface Track" which is not tied to any other group, "Hat Channel" Tied to the hat channel text box, and "Curvable I beam" tied to the Curvable I beam text box. The new feature displayed the conditional field correctly. There are three bugs. 1)All the existing variants that were listed before I did the upgrade disappeared. 2) The text box I fill in with a number does seem to update the price to the base plus the entry timess price per foot. 3) If I add the item to the cart after the conditional variant is displayed and a value entered, a critical error occurs . How do I get the other variants to reappear and use the other variants without having to recreate them again?

 
New Post
7/20/2010 2:44 PM
 

Can you post a screen shot of your smith_variants table so i can see the data. There may be a null value in one of the new conditional variant fields that hanging you up since you upgraded from a prvevious version.

-Scott


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
7/21/2010 6:29 AM
 

I will send you a spreadsheet with the product table, minus the description field, the variant table, and the variant group table. Let me know if you need anything else. Thanks.

 
New Post
7/21/2010 6:34 AM
 

I sent the spreadsheet. To give you a little more information here is the event log when I try to add something to the cart:

---------------------------------------------------------------------------------------------------

AssemblyVersion: 5.2.3
PortalID: 0
PortalName: Space Management Products
UserID: 1
UserName: Spacehost
ActiveTabID: 65
ActiveTabName: Screenflex
RawURL: /Screenflex/tabid/65/ctl/ProductDetails/mid/399/ProductID/2/Default.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://www.spacemanagementproducts.com/Screenflex/tabid/65/ctl/ProductDetails/mid/399/ProductID/2/Default.aspx
UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 1.0.3705; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.1.3; OfficeLivePatch.0.0)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: f05145b1-81fa-4e22-8bb4-cd5530fe6a2e
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: Smith.DNN.Modules.BuyNow.ProductDetails.GetProductName
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at Smith.DNN.Modules.BuyNow.ProductDetails.GetProductName(Int32 productid) at Smith.DNN.Modules.BuyNow.ProductDetails.AddToCart(Int32 ProductID, Decimal Quantity, Decimal price, Boolean isRequired, Int32 bundleID, Boolean inBundle, Decimal myWeight, Int32 catID) at Smith.DNN.Modules.BuyNow.ProductDetails.ibAddtoCart_Click(Object sender, ImageClickEventArgs e) at System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) at System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
Source:
Server Name: EDTWEB27

---------------------------------------------------------------------------------------------------

 
New Post
7/23/2010 12:32 PM
 

Having upgraded to 2.99 and added a hotfix, I still get errors with the conditional variants not holding their values. Additionally, the store on the portal that doesn't use the conditional variants, but just regular variants generates the error:

A critical error has occurred.
There is no row at position 0.
Full error text:
AssemblyVersion: 5.2.3
PortalID: 0
PortalName: Space Management Products
UserID: 1
UserName: Spacehost
ActiveTabID: 65
ActiveTabName: Screenflex
RawURL: /Screenflex/tabid/65/ctl/ProductDetails/mid/399/ProductID/2/Qty/1/Default.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://www.spacemanagementproducts.com/Screenflex.aspx
UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 1.0.3705; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.1.3; OfficeLivePatch.0.0)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 7346eefd-15ef-448b-9321-bab1396e2260
InnerException: There is no row at position 0.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Data.RBTree`1.GetNodeByIndex
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: There is no row at position 0. ---> System.IndexOutOfRangeException: There is no row at position 0. at System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) at System.Data.RBTree`1.get_Item(Int32 index) at System.Data.DataRowCollection.get_Item(Int32 index) at Smith.DNN.Modules.BuyNow.ProductDetails.GetPrice() at Smith.DNN.Modules.BuyNow.ProductDetails.Page_Load(Object sender, EventArgs e) at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
Source:
Server Name: EDTWEB27
When I back out the hotfix, this bug goes away.

What do you recommend?

 
New Post
7/23/2010 4:17 PM
 

Art,

I just sent you a new dll for the product details page that fixes conditional variants maintaining their viewstate on postback. Let me know if that fixes the issue for you.

Dave


At your service,
Dave Smith
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartConditional Variant Bugs-Variants Disappeared/CanConditional Variant Bugs-Variants Disappeared/Can't add to cart, etc.