November Happy Hour will be moved to Thursday December 5th.
November Happy Hour will be moved to Thursday December 5th.
What do you mean "create" it, "manually"? The tab or the relations within the tab?
Hi Quan,
Thank you for the replay.
I need to get the referred product details by directly pass product id.
So that I decided to read the default "Belongs To" property.
Now I found the solution.
I used the IRelationRepository to get the referred product details.
The code,
var relationRepository = ServiceLocator.Current.GetInstance<IRelationRepository>();
var contentlink = referenceConverter.GetContentLink(55, CatalogContentType.CatalogEntry, 0);
var testrelation = relationRepository.GetParents<NodeRelation>(contentlink);
Thank you.
But Quan,
I need to create relations with tab manually.
I need some blogs explanations.
should be pretty clear.
Create a new relation and call the UpdateRelation on the repository.
Hi Erik,
Thank you for the replay.
I created a new reference by using the following code.
var Child = referenceConverter.GetContentLink(56, CatalogContentType.CatalogEntry, 0);
var parent = referenceConverter.GetContentLink(1073741908, CatalogContentType.CatalogEntry, 0);
//Add the product reference to one Category
var relations = new NodeRelation {
Child = Child,
Parent = parent
};
var relation = (relations as Relation);
relationRepository.UpdateRelation(relation);
Thank you
Hi guys,
I have a small doubt related to the "Belongs To" tab in the Episerver commerce catalog.
Is there any API is available to create it manually.