The product doesn't have a store id associated with it
Suddenly started seeing this issue when trying to add anything to the basket, or amend basket orderlines.
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.ArgumentException: The product doesn't have a store id associated with it - remember to add the Tea Commerce store picker to your Umbraco content tree
at TeaCommerce.Umbraco.Configuration.InformationExtractors.PublishedContentProductInformationExtractor.GetStoreId(IPublishedContent product, VariantPublishedContent variant)
at TeaCommerce.Umbraco.Configuration.InformationExtractors.PublishedContentProductInformationExtractor.GetSku(String productIdentifier)
at TeaCommerce.Umbraco.Configuration.Marketing.Models.ProductUtils.OrderLinesThatMatchProductOrProductCategory(IProductService productService, Int32 nodeId, IEnumerable1 orderLines)
at TeaCommerce.Umbraco.Configuration.Marketing.Models.Rules.ProductRule.IsFulfilledBy(Order order, IEnumerable1 previouslyFulfilledOrderLines)
at System.Linq.Enumerable.
The site has a Store Picker on the top level node, with an alias of "store", and I can see the storeId in the html source and also output via razor on the basket page.
The product doesn't have a store id associated with it
Suddenly started seeing this issue when trying to add anything to the basket, or amend basket orderlines.
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.ArgumentException: The product doesn't have a store id associated with it - remember to add the Tea Commerce store picker to your Umbraco content tree at TeaCommerce.Umbraco.Configuration.InformationExtractors.PublishedContentProductInformationExtractor.GetStoreId(IPublishedContent product, VariantPublishedContent variant) at TeaCommerce.Umbraco.Configuration.InformationExtractors.PublishedContentProductInformationExtractor.GetSku(String productIdentifier) at TeaCommerce.Umbraco.Configuration.Marketing.Models.ProductUtils.OrderLinesThatMatchProductOrProductCategory(IProductService productService, Int32 nodeId, IEnumerable1 orderLines) at TeaCommerce.Umbraco.Configuration.Marketing.Models.Rules.ProductRule.IsFulfilledBy(Order order, IEnumerable1 previouslyFulfilledOrderLines) at System.Linq.Enumerable.
The site has a Store Picker on the top level node, with an alias of "store", and I can see the storeId in the html source and also output via razor on the basket page.
Hi Ian,
Are your product nodes that are in the basket descendants of the node with the store picker on it? and are they all published? I think you may be getting caught out by this issue https://github.com/TeaCommerce/Tea-Commerce-for-Umbraco/issues/84
Matt
It pointed me in the right direction though !!
We had a Marketing rule with a Product Rule linking to either a deleted or unpublished node.
Cool, thanks Ian.
That should be fixed in the next release then.
Glad you were able to resolve the issue.
Matt
is working on a reply...