Table of Contents

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;
using System.Collections.Generic;
using Dynamicweb.Ecommerce.Products;
using Dynamicweb.Rendering;

namespace Dynamicweb.Ecommerce.Examples.Products;

public static class ProductDetailRendererSample
{
    public static void RenderDetails(IEnumerable<Detail> details, Template parentTemplate, string loopName)
    {
        ArgumentNullException.ThrowIfNull(details, nameof(details));
        ArgumentNullException.ThrowIfNull(parentTemplate, nameof(parentTemplate));

        if (parentTemplate.LoopExists(loopName))
        {
            Template detailTemplate = parentTemplate.GetLoop(loopName);

            foreach (Detail detail in details)
            {
                RenderDetail(detail, detailTemplate);
                detailTemplate.CommitLoop();
            }
        }
    }

    private static 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

int

Id

Gets or sets id of product detail.

public string Id { get; set; }

Property Value

string

IsDefault

Gets or sets detail value.

public bool IsDefault { get; }

Property Value

bool

Keywords

public string Keywords { get; set; }

Property Value

string

LanguageId

Gets or sets current product language ID.

public string LanguageId { get; set; }

Property Value

string

Name

public string Name { get; set; }

Property Value

string

ProductId

Gets or sets id of product, details of this product are stored in current object.

public string ProductId { get; set; }

Property Value

string

SortOrder

Gets or sets detail sort order.

public int SortOrder { get; set; }

Property Value

int

Type

Gets or sets detail type.

public int Type { get; set; }

Property Value

int

Value

Gets or sets detail value.

public string Value { get; set; }

Property Value

string

VariantId

Gets or sets current product variant ID.

public string VariantId { get; set; }

Property Value

string

Methods

Clone()

public Detail Clone()

Returns

Detail
To top