November Happy Hour will be moved to Thursday December 5th.
November Happy Hour will be moved to Thursday December 5th.
Actually it isn't showing any updateRelation method for linksRepository
Source and target is also missing from productvariation class("It has been replaced by parent and child attributes, I guess.").
That's true, Source and Target were obsoleted and replaced by Parent and Child. The code is heavily outdated, I will let Commerce team knows.
You should be using IRelationRepository instead of ILinksRepository.
Hello Quan,
i still can't use this code cause it still have some errors in this code.
Can you please give me a latest version of this code?
Which code is not working for you. Outside the IRelationRepository issue, I think only this code needs update (AppContext.Current.ApplicationId is no longer needed)
var priceDetailValue = new PriceDetailValue
{
CatalogKey = new CatalogKey(variation.Code),
MarketId = new MarketId("US"),
CustomerPricing = CustomerPricing.AllCustomers,
ValidFrom = DateTime.UtcNow,
UnitPrice = new Money(1m, Currency.USD)
};
priceDetailService.Save(priceDetailValue);
https://world.episerver.com/documentation/developer-guides/commerce/catalogs/Importing-catalog-data/
Some methods used in this code are not working(like:- _linksRepository.UpdateRelation)