HomeHome Product Discus... Product Discus...SmithCartSmithCartError when changing shipping type - StartIndex cannot be less than zero. Parameter name: startIndexError when changing shipping type - StartIndex cannot be less than zero. Parameter name: startIndex
Previous
 
Next
New Post
10/16/2011 11:23 AM
 

I am using dnn 6.0.1 and cart 4.6.  When using UPS as a shipper and calculating shipping, If I change from the default first shipping option in the drop down list to any other item in the list I receive the following error:

 

AssemblyVersion: 6.0.1

PortalID: 0

PortalName: Aromawellness & Crystals

UserID: 3

ActiveTabID: 81

ActiveTabName: Products

RawURL: /Products/tabid/81/ctl/Cart/mid/428/Default.aspx

AbsoluteURL: /Default.aspx

AbsoluteURLReferrer: http://www.aromawellness.net/Products/tabid/81/ctl/Cart/mid/428/Default.aspx

UserAgent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)

DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider

ExceptionGUID: 4442e27b-a591-4357-bf97-923ae8c1a291

InnerException: StartIndex cannot be less than zero. Parameter name: startIndex

FileName:

FileLineNumber: 0

FileColumnNumber: 0

Method: System.String.InternalSubStringWithChecks

StackTrace:

Message: DotNetNuke.Services.Exceptions.PageLoadException: StartIndex cannot be less than zero. Parameter name: startIndex ---> System.ArgumentOutOfRangeException: StartIndex cannot be less than zero. Parameter name: startIndex at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) at Smith.DNN.Modules.BuyNow.Cart.ddlShipRates_SelectedIndexChanged(Object sender, EventArgs e) at System.Web.UI.WebControls.ListControl.OnSelectedIndexChanged(EventArgs e) at System.Web.UI.WebControls.DropDownList.RaisePostDataChangedEvent() at System.Web.UI.WebControls.DropDownList.System.Web.UI.IPostBackDataHandler.RaisePostDataChangedEvent() at System.Web.UI.Page.RaiseChangedEvents() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---

Source:

Server Name: GENERIC121

 
New Post
10/17/2011 3:36 PM
 

Hi Doug,

The issue of selecting a Shipping Method, then clicking Calculate Shipping to apply the Shipping rate and then selecting a different Shipping Method from the dropdown will cause the issue you reported above. This has been resolved in the next release of the Cart v.4.67.

Thanks,

 
New Post
10/17/2011 5:02 PM
 

ok, cool.  Do you know when that will be available?

I was actually going to provide further issue with the calculator but I think you have answered that question as well.  I will post here so the question is out there and searchable...

When selecting the shipping option ie UPS GROUP and calculating the shipping, the dropdown list populates the pricing for the other options selected as well.  The impression is that you can select one of the other options and that amount will be applied as the new shipping amount.  What currently happens is that on one site, the page refreshes but the amount stays the same and all the values in the shipping type drop down lose their amounts.  (On another site, the error above appears , both are running the same versions..)  So what the experienced user needs to do (me) is select the new shipping option and then calc shipping and the new value will be applied. 

I am not sure what the fix is but the appropriate behavior should be to move the selected amount from the drop down to the shipping field.  I realize that you may need to make a pass at UPS again because the quantity may have changed and that is perfectly acceptable.

Thanks Kevin

 

 

 
New Post
10/18/2011 4:29 PM
 
Hi Doug,

We have addressed the issue you reported above regarding changing the a different Shipping Method after Shipping has been calculated and will be included in the release of SmithCart v.4.67 which should be released by the end of today.

Thanks,
 
New Post
10/20/2011 1:43 PM
 

Ok, I installed the 4.67 module and it still does not work quite right.  Better but it is still confusing.  Duplicate the issue:

1. emtpy cart
2. add item to cart
3. view cart
4. (note shipping fee TBD)
5. (UPS Shipping is configured with first 5 shipping options)
6. Enter shipping info and select UPS 2nd Day Air
7. press Calculate shipping button
8. shipping is calculated and drop down shows UPS 2nd Day Air selected with price of $24.57
9. BUT!!!! the Shipping Fee shows $11.66 because is has selected index 1 (or 0) in the drop down list for UPS Ground

 
 Login to download attachment
New Post
10/21/2011 3:25 PM
 
Hi Doug,

I have been able to reproduce this issue of when selecting the UPS 2nd Day Air option and clicking the Calculate button, the Shipping Rate for the UPS Ground Shipping method with be applied to the order unless the 2nd Day Air Shipping method is again selected from the dropdown. I will send this into programming and will postback as soon as an update is available.

Thanks,
 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartError when changing shipping type - StartIndex cannot be less than zero. Parameter name: startIndexError when changing shipping type - StartIndex cannot be less than zero. Parameter name: startIndex