Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
We are currently having issues adding to our basket on a new website. This has been working and then all of a sudden it stopped. We are running the latest version of both TeaCommerce and Umbraco so we are no a little lost. We did notice that the TeaCommerce section had disappeared within the CMS, but it was showing as installed within the packages section. We added some lines into the applications.config and tress.config in order to get the icon on the left hand side to show and we can now see our shop again within the CMS.
The error message we are getting back from FormPost.aspx is
Exception has been thrown by the target of an invocation.
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object parameters, Object arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object parameters, CultureInfo culture)
at Umbraco.Web.BaseRest.RestExtensionMethodInfo.Invoke(String parameters)
System.NullReferenceException: Object reference not set to an instance of an object.
at TeaCommerce.Umbraco.Configuration.InformationExtractors.PublishedContentProductInformationExtractor.GetSku(IPublishedContent product, VariantPublishedContent variant)
at TeaCommerce.Umbraco.Configuration.InformationExtractors.PublishedContentProductInformationExtractor.GetSnapshot(String productIdentifier)
at TeaCommerce.Api.Models.OrderLineCollection.AddOrUpdate(String productIdentifier, Nullable`1 quantity, IDictionary`2 properties, Boolean overwriteQuantity, String bundleIdentifier, String parentBundleIdentifier)
at TeaCommerce.Api.Web.TeaCommerceHelper.AddOrUpdateOrderLine(Int64 storeId, String productIdentifier, Nullable`1 quantity, IDictionary`2 properties, Boolean overwriteQuantity, String bundleIdentifier, String parentBundleIdentifier)
at TeaCommerce.Api.Web.FormPostHandler.AddOrUpdateOrderLine(Int64 storeId, IDictionary`2 formFields, IDictionary`2 settings)
Any help would be appreciated as we were meant to put the website live today.
Any ideas, really struggling here and I need the site to go live??
Did you upgrade to Tea Commerce 3.2 and is that when it started not working anymore?
Hello, replying on behalf of Richard, yes the problem did seem to occur with the upgrade, I've done some digging and it seems to be where the product node doesn't have a "sku" field. It tries to fall back to using the Id but for some reason fails to get it.
I've managed to work around the problem for now by adding a sku field and setting it to the same value as the id.
Thanks for doing some digging. I will add it as a issue on GitHub:
Do you use variants or just a simple node structure?
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted