Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Updating code to use ILineItem instead on LineItem

Vote:
 

Hi all,

(using Epi commerce 9.24)

I have a lot of code that depends on LineItem.  I'd like to depend on ILineItem instead, if possible.

However ILineItem seems to be missing a few things that LineItem had:

 - MaxQuantity

 - MinQuantity

 - ExtendedPrice

 - ParentCatalogEntryId

Is there a way to retrieve those values for a ILineItem?

#179490
Jun 13, 2017 22:00
Vote:
 

Hi,

We are aware of this and will add these properties in the future. However adding properties to an interface is a breaking change, so it will need a major release. That change will not fit in Commerce 11 - which is in final stage right now, so it'll have to wait until Commerce 12, unless if we figure out some smart way to do it without a breaking change.

Regards,

/Q

#179514
Jun 14, 2017 14:49
Vote:
 

(..and also LineItem.Clone() method) :)

Okay, thanks for the info Quan.

#179590
Jun 15, 2017 16:25
* 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.