Posts

Showing posts with the label Attributes

EpiServer Commerce specific Attributes

We can use any attribute developed for CMS, in our commerce content type models. e.g.  ContentType attributes, Access attributes, AvailableContentTypes attributes, TemplateDescriptor attribute, Property attributes, Image URL attribute and Default backing types also. There are only a few specific attributes for commerce only that we can use in our models CatalogContentType attribute To connect the content type with an existing meta class, the CatalogContentTypeAttribute can be used. we connect them by defining the name of the meta class that should be connected to the content type. using EPiServer.Commerce.Catalog.ContentTypes; using EPiServer.Commerce.Catalog.DataAnnotations; namespace CodeSamples.EPiServer.Business.Commerce.Catalog.Provider {     [CatalogContentType(MetaClassName = "WineSKU" )]     public class CatalogContentTypeAttributeSample : VariationContent     {     } } Encrypted at...