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
I have a problem when trying to get ProductInfo when you have variants. They have a GUID and that does not seem to work when trying to get TypedContent.
Is this a general problem or did I miss something?
IPublishedContent productContent = Umbraco.TypedContent( orderLine.ProductIdentifier );
This gives me null
That is because when using variants from the variant property editor with Tea Commerce - each variant have a GUID as the id and the product identifier will be the node id of Umbraco + "_" + variant GUID.
Use the following code to get a ProductIdentifier object.
IPublishedContent productContent = Umbraco.TypedContent( new ProductIdentifier(orderLine.ProductIdentifier).NodeId );
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted