Table of Contents

Class MostViewedProducts

Namespace
Dynamicweb.Ecommerce.Statistics
Assembly
Dynamicweb.Ecommerce.dll
Represents the statistics about the most viewed products.
[AddInName("Most Viewed Products")]
[AddInDescription("Shows Most Viewed Products")]
[AddInGroup("Products")]
[AddInImage("tree/btn_eyeglasses.png")]
public class MostViewedProducts : StatisticsProvider, IDropDownOptions
Inheritance
MostViewedProducts
Implements
Inherited Members

Properties

ColorColumn

Gets the color column name.
public override string ColorColumn { get; }

Property Value

string

Data

Gets the data table.
public override DataTable Data { get; }

Property Value

DataTable

DateFrom

Gets or sets start date value for statistics viewing period.
[AddInParameter("Date from")]
[AddInParameterEditor(typeof(DateTimeParameterEditor), "")]
public DateTime DateFrom { get; set; }

Property Value

DateTime

DateTo

Gets or sets end date value for statistics viewing period.
[AddInParameter("Date to")]
[AddInParameterEditor(typeof(DateTimeParameterEditor), "")]
public DateTime DateTo { get; set; }

Property Value

DateTime

DefaultGraph

Gets the default graph type.
public override GraphType DefaultGraph { get; }

Property Value

GraphType

Language

Gets or sets the language value for statistic filter.
[AddInParameter("Language")]
[AddInParameterEditor(typeof(DropDownParameterEditor), "none=false")]
public string Language { get; set; }

Property Value

string

ParentGroup

Gets or sets the parent group.
[AddInParameter("Parent group")]
[AddInParameterEditor(typeof(ProductGroupParameterEditor), "")]
public string ParentGroup { get; set; }

Property Value

string

Prefix

Gets the prefix.
public override string Prefix { get; }

Property Value

string

Shop

Gets or sets shop value for statistics filter.
[AddInParameter("Shop")]
[AddInParameterEditor(typeof(DropDownParameterEditor), "nonetext=Alle")]
public string Shop { get; set; }

Property Value

string

SubGroups

Gets or sets the sub group.
[AddInParameter("Sub groups")]
[AddInParameterEditor(typeof(YesNoParameterEditor), "")]
public bool SubGroups { get; set; }

Property Value

bool

XAxisColumn

Gets the X-axis column name.
public override string XAxisColumn { get; }

Property Value

string

YAxisColumn

Gets the Y-axis column name.
public override string YAxisColumn { get; }

Property Value

string

Methods

GetOptions(string)

Implements IDropDownOptions.GetOptions method, and used for DropDownLists control.
public Hashtable GetOptions(string name)

Parameters

name string

Returns

Hashtable
Hashtable with specified control options.

GetSubGroups(Group, Shop, string, int)

Gets the subgroups.
public string GetSubGroups(Group group, Shop shop, string groupIds, int counter)

Parameters

group Group
The group.
shop Shop
The shop.
groupIds string
Subgroup ids.
counter int
The counter.

Returns

string
Subgroup ids.
To top