Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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,
We will have a look at the issue and get back to you
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.
Yes. We will do that.
I have sent an updated Tea Commerce Version to Eigil
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?
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 :).
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?
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. :)
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.
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":
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
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.
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.
Thanks for your reply.
Matt Brailsford has been attempting to help me and pointed me to this code in the TC source:
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.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted