Copied to clipboard

Flag this post as spam?

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


  • MrFlo 149 posts 392 karma points
    Nov 14, 2013 @ 21:09
    MrFlo
    0

    Error 500 adding product: Store id problem

    Hello,

    Using the new teacommerce 2.2 and umbraco 6.1

    I've added a store picker on the root language node (and republished it) and I'm still having this error when adding a product with JS:

    The model 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.XmlNodeProductInformationExtractor.GetStoreId(XPathNavigator model, Boolean useCachedInformation)
       at TeaCommerce.Umbraco.Configuration.InformationExtractors.XmlNodeProductInformationExtractor.HasAccess(Int64 storeId, XPathNavigator model, Boolean useCachedInformation)
       at TeaCommerce.Api.Web.FormPostHandler.AddOrUpdateOrderLine(Int64 storeId, IDictionary`2 formFields, IDictionary`2 settings)
       at TeaCommerce.Api.Web.FormPostHandler.FormPost()

    My request in javascript seems to have all parameters (like in the starter kit)

    storeId=1&AddOrUpdateOrderLine=productIdentifier+%3A+productIdentifier%2C+orderLineId+%3A+orderLineId%2C+quantity+%3A+quantity%2C+propertyKeys+%3A+propertyKeys&productIdentifier=HV01&quantity=1&isJavaScript=true

    I've seen a similar post but it didn't help: http://our.umbraco.org/projects/website-utilities/tea-commerce/tea-commerce-support/43617-The-model-doesnt-have-a-store-id-associated-with-it-remember-to-add-the-Tea-Commerce-store-picker-to-your-Umbraco-content-tree

    Could you help me on this?

    Thanks in advance!

  • Anders Burla Johansen 2560 posts 8256 karma points
    Nov 15, 2013 @ 08:31
    Anders Burla Johansen
    100

    Is your property named "store"? It is a must that is named that.

    Kind regards
    Anders

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies