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
<error><![CDATA[MESSAGE:
Exception has been thrown by the target of an invocation.
STACKTRACE:
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)
INNEREXCEPTION:
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)
at TeaCommerce.Api.Web.FormPostHandler.FormPost()]]></error>
Any help would be appreciated as we were meant to put the website live today.
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.
Can no longer add to basket
Hi
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
Any help would be appreciated as we were meant to put the website live today.
Thanks Richard
Any ideas, really struggling here and I need the site to go live??
Thanks Richard
Hi Richard
Did you upgrade to Tea Commerce 3.2 and is that when it started not working anymore?
Kind regards
Anders
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.
Laurie
Hi Laurie
Thanks for doing some digging. I will add it as a issue on GitHub: https://github.com/TeaCommerce/Tea-Commerce-for-Umbraco
Do you use variants or just a simple node structure?
Kind regards
Anders
is working on a reply...