Copied to clipboard

Flag this post as spam?

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


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Karl 21 posts 133 karma points
    Jul 10, 2012 @ 12:02
    Karl
    0

    Automatically decrementing inventory

    Hi there,

    I wonder if anyone can help. I'm trying to implement inventory management in Ucommerce. I've set up a property of InventoryOnHand and have modified the Checkout.config to include the  DecrementInventoryOnHand but when I try to check out I get this error:

    Castle.MicroKernel.SubSystems.Conversion.ConverterException was unhandled by user code
      Message=Could not convert from 'UCommerce.Pipelines.Checkout.DecrementInventoryOnHand, UCommerce.Pipelines' to System.Type - Maybe type could not be found
      Source=Castle.Windsor
      StackTrace:
           at Castle.MicroKernel.SubSystems.Conversion.TypeNameConverter.PerformConversion(String value, Type targetType)
           at Castle.MicroKernel.SubSystems.Conversion.DefaultConversionManager.PerformConversion(String value, Type targetType)
           at Castle.MicroKernel.SubSystems.Conversion.DefaultConversionManager.PerformConversion[TTarget](String value)
           at Castle.Windsor.Installer.DefaultComponentInstaller.SetUpComponents(IConfiguration[] configurations, IWindsorContainer container, IConversionManager converter)
           at Castle.Windsor.Installer.DefaultComponentInstaller.SetUp(IWindsorContainer container, IConfigurationStore store)
           at UCommerce.Transactions.CheckoutService.Checkout(Basket basket)
           at UCommerce.Xslt.TransactionLibrary.Checkout()
           at UCommerce.Xslt.Library.HandledCall[T](Func`1 method)
           at ASP._Page_macroScripts_CompleteOrder_cshtml.Execute() in e:\Development\Cubeworks.Demos\CRuMbraco\app\CRuMbraco.Web\macroScripts\CompleteOrder.cshtml:line 18
           at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()
           at System.Web.WebPages.WebPage.ExecutePageHierarchy()
           at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)
           at umbraco.MacroEngines.RazorMacroEngine.ExecuteRazor(MacroModel macro, INode currentPage)
           at umbraco.MacroEngines.RazorMacroEngine.Execute(MacroModel macro, INode currentPage)
      InnerException: 

    Any pointers appreciated,
    Karl

  • Karl 21 posts 133 karma points
    Jul 10, 2012 @ 12:14
    Karl
    0

    Here are the additions I made to my Checkout.config:

                            <value>${Checkout.DecrementInventoryOnHand}value> 
            <component id="Checkout.DecrementInventoryOnHand"
        service="UCommerce.Pipelines.IPipelineTask`1[[UCommerce.EntitiesV2.PurchaseOrder, UCommerce]], UCommerce"
        type="UCommerce.Pipelines.Checkout.DecrementInventoryOnHand, UCommerce.Pipelines"
        lifestyle="Thread" />
    
    Any pointers appreciated,
    Karl
  • Søren Spelling Lund 1797 posts 2786 karma points
    Jul 13, 2012 @ 18:56
    Søren Spelling Lund
    0

    uCommerce can't find the type:

    type="UCommerce.Pipelines.Checkout.DecrementInventoryOnHand, UCommerce.Pipelines"

    should read

    type="UCommerce.Pipelines.Checkout.DecrementInventoryOnHandTask, UCommerce.Pipelines"

  • Karl 21 posts 133 karma points
    Jul 19, 2012 @ 16:52
    Karl
    0

    Hi Søren,

    Thanks very much for that. That solved my problem.

    All the best,

    Karl

Please Sign in or register to post replies

Write your reply to:

Draft