Don't miss out Virtual Happy Hour this Friday (April 26).
Try our conversational search powered by Generative AI!
AI OnAI Off
Don't miss out Virtual Happy Hour this Friday (April 26).
private void AddCurrencyToCatalogCurrencyDictionary(LanguageSetupInformation setup)
{
var currencyDto = CurrencyManager.GetCurrencyDto();
var newCurrencyRow = currencyDto.Currency.NewCurrencyRow();
newCurrencyRow.CurrencyCode = setup.Currency.CurrencyCode;
newCurrencyRow.Name = setup.CultureInfo.GetRegion().CurrencyEnglishName;
currencyDto.Currency.AddCurrencyRow(newCurrencyRow);
CurrencyManager.SaveCurrency(currencyDto);
}
Big thanks to Roger at Epi
Hi,
i want to add Currency to Catalog Currency Catalog programmatically. Because i want to enable it when adding new Market (also done from code)
I have found CurrencyManager but it does not feel right :-/
So what repo/service/Mgr should i use in order to add a currency to the Catalog Currency Directory?