Hi!
We have both B2B and B2C websites in our solution and for the B2B website we would like another order preifx. How can we do that?
I tried something like this without success:
_eventBroker.Subscribe<OrderCreated>(x =>
{
if (x.Item.ChannelSystemId.HasValue)
{
var channel = _channelService.Get(x.Item.ChannelSystemId.Value);
if (!channel.ShowPricesWithVat)
{
var clone = x.Item.MakeWritableClone();
clone.Id = clone.Id.Replace("W", "R");
using (_securityContextService.ActAsSystem())
{
_orderService.Update(clone);
}
}
}
});
Thanks!
Litium version: 8.28