ShopifySharp icon indicating copy to clipboard operation
ShopifySharp copied to clipboard

Base class for Custom and Smart collection would be pretty useful

Open HoomanBahreini opened this issue 5 years ago • 1 comments
trafficstars

Hi, this is not a bug but a feature request.

I think it would be useful to have a common base class for CustomCollection and SmartCollection, say CollectionBase...

I am working on a piece of software where I want to get all products collection... I don't care if it is a Smart or Custom collection. All I need is Collection's title... because these two class have no common base class I have to repeat my code 2 time, once for each type.

HoomanBahreini avatar Feb 02 '20 22:02 HoomanBahreini

I think that's a decent idea, I'll see if we can add an interface or base class for the two different collection types.

nozzlegear avatar Feb 05 '20 18:02 nozzlegear