Try our conversational search powered by Generative AI!

How to set ProviderId in New Icart?


Hi Team,

How to set ProviderId in Icart .i am not able to set like below one.

CartHelper.Cart.ProviderId = Constants.FrontendCartProvider; // if this is not set explicitly, placed price does not get updated by workflow

Advance Thanks,

Jul 26, 2018 19:33

You can try to cast it to Cart and set it there. 

var implementation = cart as Cart;

if (implementation != null)


  implementation.ProviderId = ...;


//Save the cart

Jul 26, 2018 21:40

Thank you Quan,

I have one doubt.we have using Icart only for all operations. If I cast Icart as cart only set the provider id. But I am saving the Icart only. It will be saved or else.

Jul 27, 2018 9:17

in the snippet above, you can call either




They both work the same

Jul 27, 2018 9:22

Thank you Quan,

It worked for me. I used Icart to save.

But why providerId not available in Icart?

Jul 27, 2018 10:01

I don't know, there might be some reasons, or it might be just an oversight. 

Jul 27, 2018 10:04

Thanks Quan,

Jul 27, 2018 10:09
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.