Class ProductAttribute
- Namespace
- Dynamicweb.Ecommerce.Content.Items.Annotations
- Assembly
- Dynamicweb.Ecommerce.dll
Provides information about the product field.
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = false)]
public class ProductAttribute : FieldAttribute
- Inheritance
-
ProductAttribute
- Inherited Members
Constructors
ProductAttribute()
Initializes a new instance of an object.
public ProductAttribute()
ProductAttribute(string)
Initializes a new instance of an object.
public ProductAttribute(string name)
Parameters
namestringUser-friendly name of the field.
Properties
RenderProductsFromGroups
Gets or sets the flag is the products from groups should be rendered on frontend.
public bool RenderProductsFromGroups { get; set; }
Property Value
ShowOnParagraph
Gets or sets the paragraph identifier.
public string? ShowOnParagraph { get; set; }
Property Value
Examples
This sample shows how to set the property: ShowOnParagraph = "Default.aspx?Id=1015#1022"
ShowType
Gets or sets the value which defines objects types to show.
public ProductEditor.ShowTypes ShowType { get; set; }
Property Value
Methods
InitializeEditorConfiguration(ItemField)
protected override void InitializeEditorConfiguration(ItemField itemField)
Parameters
itemFieldItemField