Class Detail
- Namespace
- Dynamicweb.Ecommerce.Products
- Assembly
- Dynamicweb.Ecommerce.dll
Represents product details objects
[Serializable]
public class Detail
- Inheritance
-
Detail
- Inherited Members
Examples
using System.Collections.Generic;
using Dynamicweb.Ecommerce.Products;
using Dynamicweb.Rendering;
namespace Dynamicweb.Ecommerce.Examples.Products
{
class ProductDetailRendererSample
{
public void RenderDetails(IEnumerable<Detail> details, Template parentTemplate, string loopName)
{
if (parentTemplate.LoopExists(loopName))
{
Template detailTemplate = parentTemplate.GetLoop(loopName);
foreach (Detail detail in details)
{
RenderDetail(detail, detailTemplate);
detailTemplate.CommitLoop();
}
}
}
private void RenderDetail(Detail detail, Template template)
{
//TODO: insert your code here
}
}
}
Constructors
Detail()
Default empty constructor
public Detail()
Properties
GroupId
Gets or sets detail group id.
public int GroupId { get; set; }
Property Value
Id
Gets or sets id of product detail.
public string Id { get; set; }
Property Value
IsDefault
Gets or sets detail value.
public bool IsDefault { get; }
Property Value
Keywords
public string Keywords { get; set; }
Property Value
LanguageId
Gets or sets current product language ID.
public string LanguageId { get; set; }
Property Value
Name
public string Name { get; set; }
Property Value
ProductId
Gets or sets id of product, details of this product are stored in current object.
public string ProductId { get; set; }
Property Value
SortOrder
Gets or sets detail sort order.
public int SortOrder { get; set; }
Property Value
Type
Gets or sets detail type.
public int Type { get; set; }
Property Value
Value
Gets or sets detail value.
public string Value { get; set; }
Property Value
VariantId
Gets or sets current product variant ID.
public string VariantId { get; set; }
Property Value
Methods
Clone()
public Detail Clone()