Hello! I’m having trouble extending the default Implementation of the PriceAgentItemFactory. I’ve followed the guide on https://docs.litium.com/documentation/litium-documentation/products/price-agents and tried to solve my problem according to this post https://forum.litium.com/t/extended-price-agent-item-factory-not-triggering/628/4
When I run Litium.IoC.Container.RegistratedComponents during debug mode there’s is no result of any PriceAgentItemFactory of any sort.
I’ve also created a new PriceAgent by extending iPriceAgent and that works (but with PriceAgentItemResult without the adjustments i’m trying to accomplish)
So when in debugmode I’m setting a breakpoint but the code never runs.
namespace Litium.ProductFeed.ProductFeedPriceAgent
{
class ProductFeedPriceAgentItemFactory : PriceAgentItemFactory
{
private readonly LanguageService _languageService;
public ProductFeedPriceAgentItemFactory(IPriceCalculator priceCalculator,
IStockStatusCalculator stockStatusCalculator,
ICampaignPriceCalculator campaignPriceCalculator,
IOrderFactory orderFactory,
LanguageService languageService,
UrlService urlService, CategoryService categoryService,
CurrencyService currencyService,
FieldDefinitionService fieldDefinitionService,
ISettingService settingService,
WebsiteService websiteService,
CountryService countryService,
ChannelService channelService,
DomainNameService domainNameService) :
base(priceCalculator, stockStatusCalculator, campaignPriceCalculator, orderFactory, languageService, urlService, categoryService, currencyService, fieldDefinitionService, settingService, websiteService, countryService, channelService, domainNameService)
{ _languageService = languageService; }
public override PriceAgentItemResult Create(PriceAgentItemArgs priceAgentItemArgs)
{
var result = base.CreatePriceAgentItemResult(priceAgentItemArgs);
return result;
}
}
}
Litium version: 7.2.2