Copied to clipboard

Flag this post as spam?

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


  • Linh Le 10 posts 121 karma points
    Feb 06, 2018 @ 17:21
    Linh Le
    0

    Issue with TeaCommerce on Umbraco Cloud version 7.7.10

    Hi guys

    Umbraco Cloud have updated new version 7.7.10 today and I got error message "The product doesn't have a store id associated with it" when using TC.GetPrice(storeId, product). Parameter storeId and productId have correct value. This API worked before and threw error when Umbraco Cloud update to 7.7.10. Could you inspect in this issue?

    TeaCommerce version 3.2.4

    Thanks in advances, Linh Le

  • Rune Grønkjær 1371 posts 3102 karma points
    Feb 07, 2018 @ 07:18
    Rune Grønkjær
    0

    Hi Linh,

    We will have a look at the issue and get back to you

    /Rune

  • Linh Le 10 posts 121 karma points
    Feb 07, 2018 @ 07:58
    Linh Le
    0

    Hi Rune,

    Could you also check Tea Commerce: Stock management? It cannot display existed value in back-office and cannot save new value into db. API TC.GetStock(storeId, product) is still working as usual, able to get existed stock value.

    Linh Le

  • Rune Grønkjær 1371 posts 3102 karma points
    Feb 07, 2018 @ 08:12
    Rune Grønkjær
    0

    Yes. We will do that.

  • Dennis Mikkelsen 5 posts 94 karma points
    Feb 07, 2018 @ 10:02
    Dennis Mikkelsen
    100

    Hi Linh,

    I have sent an updated Tea Commerce Version to Eigil

    /Dennis

  • Linh Le 10 posts 121 karma points
    Feb 07, 2018 @ 11:17
    Linh Le
    0

    Thank for your investigation on issue.

    I have just received zip file with new version 3.2.5. How can I upgrade from 3.2.4 to new version?

    enter image description here

  • Dennis Mikkelsen 5 posts 94 karma points
    Feb 07, 2018 @ 11:53
    Dennis Mikkelsen
    0

    Under Developer->Packages->Install local you can insert or drag your ZIP-file and install the update.

    This is a small update with purpose to fix this bug, but in the future remember to check the documentation to make sure how the new releases will interfere with your current implementations :). https://docs.teacommerce.net/blog

  • Tor Langlo 189 posts 532 karma points
    Mar 28, 2018 @ 01:51
    Tor Langlo
    0

    Any news on releasing v3.2.5 to the public? I'm getting back into TeaCommerce after a hiatus and would like to get up and running as quickly as possible (without any already known bugs/issues stopping me).

    Or otherwise, maybe you could e-mail me the v3.2.5 release?

    Thanks! -Tor

  • Dennis Mikkelsen 5 posts 94 karma points
    Mar 28, 2018 @ 12:21
    Dennis Mikkelsen
    0

    v3.2.5 will not be released yet.

    The version Linh Le received contained a minor fix to a bug in Umbraco 7.7.10 and 7.8.0 but does not exist in Umbraco 7.8.1+. Be aware that v3.2.4 is not tested in 7.9.3 or 7.10.0 yet.

    So long as your website doesn't run on these two versions you should easily get up and running quickly with Tea Commerce. :)

  • Tor Langlo 189 posts 532 karma points
    Mar 28, 2018 @ 17:09
    Tor Langlo
    0

    Ok, thanks Dennis!

    I did proceed and install Umbraco 7.10.0, Tea Commerece 3.2.4, and the Tea Commerce Starter Kit 4.2.5 yesterday without any hick ups so far.

    -Tor

  • Dean 55 posts 98 karma points
    Nov 28, 2018 @ 09:08
    Dean
    0

    Hello, anyone or everyone who could please help me out here.

    I'm not sure if I've hit the same issue as the OP as my Umbraco version is more recent, but it does seem very similar.

    When I run the following code I get the error: "The product doesn't have a store id associated with it - remember to add the Tea Commerce store picker to your Umbraco content tree":

    TC.GetStock(SiteContext.Current.WebStoreGlobalSettings.StoreId, ProductVariantId);

    The values in the parameters are correct. I've executed this exact same line of code on earlier version of Umbraco/Tea Commerce and not had this problem.

    I've seen other similar issues reported and have seen the suggestion to check all Store settings especially the defaults. I have done this, it hasn't helped.

    Umbraco V 7.12.4 (installed via nuget) Tea Commerce V 3.2.5

    My site structure is slightly different to usual. However, I've also tested this with the more normal structure. In both cases I get that same error message.

    Current Site Structure

    • Content
      • Home (With store picker (testing)
        • Category 1
        • Category 2
      • Data
        • Products (With store picker (testing)
          • Product 1 (Assigned to categories via multi tree picker)
          • Product 2

    Both store pickers have the alias "store".

    Products are assigned to categories via a multiple tree picker. Products are indexed into a custom index.

    I am then using a IContentFinder that sets the request.PublishedContent to the appropriate product based on a search of the index using the request url.

    This all works perfectly. If Product 1 is assigned to Category 1 Umbraco behaves as expected. For example: If browsing to: SiteDomain/Category-1/Product-1/ Umbraco renders the correct layout populated with all the correct data from the product doc type. Including Tea Commerce Variations that have a custom doctype set with extra data. All this is working. This very similar call works without a problem:

    TC.GetVariants(SiteContext.Current.WebStoreGlobalSettings.StoreId, UmbracoContent, true)

    I thought something may be going wrong due to the product nodes being outside the main site content tree, that is why I placed the store picker on both the Home and Data > Products nodes. Didn't help. Ideally I would like only one store picker being on the Products node.

    I then tested adding one of my Product docTypes/pages directly beneath a category page under the main site tree. I expected this to work. But it didn't. I get the same error.

    I'm at a complete loss as to where the problem is and I'm pretty stressed about it to be honest.

    Any assistance would be hugely appreciated!!!

    Thank you in advance. Dean

  • Tor Langlo 189 posts 532 karma points
    Nov 28, 2018 @ 18:34
    Tor Langlo
    0

    I once got this error when the product content had not yet been published. You may want to check that.

    Otherwise, it's probably time to dig into the logs and inspect error and exception stack information, and based on that start studying the TC source code.

  • Dean 55 posts 98 karma points
    Nov 28, 2018 @ 22:03
    Dean
    0

    Hello Tor,

    Thanks for your reply.

    Matt Brailsford has been attempting to help me and pointed me to this code in the TC source: https://github.com/TeaCommerce/Tea-Commerce-for-Umbraco/blob/770705bdea8f20fd9e146c27724c9a830454c8e0/Source/TeaCommerce.Umbraco.Configuration/InformationExtractors/PublishedContentProductInformationExtractor.cs#L102

    This appears to be looking up the content tree until a store picker is found. I have this property with the alias "store" defined and set in the node directly above the products in question. So I'm not sure why it isn't being found.

    I'll take a look through any logs/exceptions now.

    The product is published.

    PS; Because this thread was already answered, I wasn't sure if it would be responded to, I therefore created a new thread. Sorry for the confusion. This new thread is where Matt is helping.

    https://our.umbraco.com/packages/website-utilities/tea-commerce/tea-commerce-support/94793-tried-everything-but-still-getting-error-message-the-product-doesnt-have-a-store-id-associated-with-it

Please Sign in or register to post replies

Write your reply to:

Draft