Copied to clipboard

Flag this post as spam?

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


  • ianhoughton 233 posts 423 karma points c-trib
    Jun 20, 2019 @ 10:03
    ianhoughton
    0

    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.

  • Matt Brailsford 2284 posts 11100 karma points MVP 6x c-trib
    Jun 20, 2019 @ 10:10
    Matt Brailsford
    100

    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

  • ianhoughton 233 posts 423 karma points c-trib
    Jun 20, 2019 @ 10:16
    ianhoughton
    0

    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.

  • Matt Brailsford 2284 posts 11100 karma points MVP 6x c-trib
    Jun 20, 2019 @ 10:43
    Matt Brailsford
    0

    Cool, thanks Ian.

    That should be fixed in the next release then.

    Glad you were able to resolve the issue.

    Matt

Please Sign in or register to post replies

Write your reply to:

Draft