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:
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:
Here are the additions I made to my Checkout.config:
uCommerce can't find the type:
type="UCommerce.Pipelines.Checkout.DecrementInventoryOnHand, UCommerce.Pipelines"
should read
type="UCommerce.Pipelines.Checkout.DecrementInventoryOnHandTask, UCommerce.Pipelines"
Hi Søren,
Thanks very much for that. That solved my problem.
All the best,
Karl
is working on a reply...