Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Oleg 13 posts 33 karma points
    Mar 26, 2015 @ 17:16
    Oleg
    0

    Shipping Methods - custom prices per country

    Hello,

    I'm trying to add a custom price for some country shipment, but it's falls

    adding screenshots:

    enter image description here enter image description here

    checked in Log:

    An unhandled exception occurred System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.InvalidOperationException: Sequence contains more than one matching element at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable1 source, Func2 predicate) at TeaCommerce.Umbraco.Application.Views.ShippingMethods.EditShippingMethod.LvCurrenciesItemDataBound(Object sender, ListViewItemEventArgs e) at System.Web.UI.WebControls.ListView.OnItemDataBound(ListViewItemEventArgs e) at System.Web.UI.WebControls.ListView.CreateItemsWithoutGroups(ListViewPagedDataSource dataSource, Boolean dataBinding, InsertItemPosition insertPosition, ArrayList keyArray) at System.Web.UI.WebControls.ListView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) at System.Web.UI.WebControls.ListView.PerformDataBinding(IEnumerable data) at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) at System.Web.UI.WebControls.DataBoundControl.PerformSelect() at System.Web.UI.WebControls.ListView.PerformSelect() at TeaCommerce.Umbraco.Application.Views.ShippingMethods.EditShippingMethod.LvCountriesItemDataBound(Object sender, ListViewItemEventArgs e) at System.Web.UI.WebControls.ListView.OnItemDataBound(ListViewItemEventArgs e) at System.Web.UI.WebControls.ListView.CreateItemsWithoutGroups(ListViewPagedDataSource dataSource, Boolean dataBinding, InsertItemPosition insertPosition, ArrayList keyArray) at System.Web.UI.WebControls.ListView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) at System.Web.UI.WebControls.ListView.PerformDataBinding(IEnumerable data) at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) at System.Web.UI.WebControls.DataBoundControl.PerformSelect() at System.Web.UI.WebControls.ListView.PerformSelect() at TeaCommerce.Umbraco.Application.Views.ShippingMethods.EditShippingMethod.LoadCurrenciesAndCountries() at TeaCommerce.Umbraco.Application.Views.ShippingMethods.EditShippingMethod.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

    teaCommerce version: 3.0.1

    umbraco version: 6.2.4

    Thanks.

  • Bjarne Fyrstenborg 1280 posts 3990 karma points MVP 7x c-trib
    Mar 26, 2015 @ 22:02
    Bjarne Fyrstenborg
    0

    Hi Oleg

    Does it happens for all countries or some specific countries maybe?

    From the stack trace it looks like some of the elements in the list have same key, so when it lookup an element by a key it fails because it match more than one element.

    /Bjarne

  • Anders Burla 2560 posts 8256 karma points
    Mar 27, 2015 @ 08:30
    Anders Burla
    0

    Hi Oleg

    I think this was a bug in Tea Commerce. Please update.
    http://documentation.teacommerce.net/revision-history/

    Kind regards
    Anders

Please Sign in or register to post replies

Write your reply to:

Draft