Table of Contents

Class ProductEditor

Namespace
Dynamicweb.Ecommerce.Content.Items.Editors
Assembly
Dynamicweb.Ecommerce.dll

Represents a eCom product editor.

[Editor("Product")]
public class ProductEditor : EcomEditor<IEnumerable<string>>, IParameterOptions
Inheritance
ProductEditor
Implements
Derived
Inherited Members

Properties

ParagraphID

Gets or sets the paragraph identifier.

[AddInLabel("Show on paragraph")]
[AddInParameter("Show on paragraph")]
[AddInParameterEditor(typeof(ParagraphSelectEditor), "htmlClass=std editor-parameter")]
public string ParagraphID { get; set; }

Property Value

string

The paragraph identifier.

RenderProductsFromGroups

Gets or sets the flag is the products from groups should be rendered on frontend.

[AddInLabel("Render products from groups on frontend")]
[AddInParameter("RenderProductsFromGroups")]
[AddInParameterEditor(typeof(YesNoParameterEditor), "inputClass=std editor-parameter;")]
public bool RenderProductsFromGroups { get; set; }

Property Value

bool

ShowType

Gets or sets the value which defines objects types to show.

[AddInLabel("Show type")]
[AddInParameter("ShowType")]
[AddInParameterEditor(typeof(DropDownParameterEditor), "inputClass=std editor-parameter;none=False;SortBy=Key")]
[AddInDescription("User object types to use in field")]
public string ShowType { get; set; }

Property Value

string

Methods

GetParameterOptions(string)

public IEnumerable<ParameterOption> GetParameterOptions(string parameterName)

Parameters

parameterName string

Returns

IEnumerable<ParameterOption>

GetViewModelValue(object)

Gets the value to use when rendering items in view models - GetValue(string)

public override object GetViewModelValue(object value)

Parameters

value object

Returns

object

ParseValue(IEnumerable<string>)

Parses the value.

public static IEnumerable<object> ParseValue(IEnumerable<string> value)

Parameters

value IEnumerable<string>

The value.

Returns

IEnumerable<object>

IEnumerable(Of System.Object).

ParseValue(string)

Parses the value.

public static IEnumerable<object> ParseValue(string value)

Parameters

value string

The value.

Returns

IEnumerable<object>

Parsed value as IEnumerable(Of System.Object).

RenderValue(EditorRenderingContext)

Renders the value.

public override void RenderValue(EditorRenderingContext context)

Parameters

context EditorRenderingContext

The context.

See Also

To top