Table of Contents

Class SchemaOrgFieldMapping

Namespace
Dynamicweb.Ecommerce.ProductCatalog.SchemaOrg
Assembly
Dynamicweb.Ecommerce.dll

Represents a mapping of a Dynamicweb product field to a Schema.org Product property.

public sealed class SchemaOrgFieldMapping
Inheritance
SchemaOrgFieldMapping
Inherited Members

Remarks

A configured mapping replaces the built-in mapping of the property when the Schema.org Product model is generated. When the mapped field has no value for a product, the property is omitted from the output.

Properties

Id

The ID of the mapping.

public int Id { get; }

Property Value

int

LanguageId

The language ID the mapping applies to. When null the mapping applies to all languages.

public string? LanguageId { get; set; }

Property Value

string

Name

The name written as the 'name' of the PropertyValue. Only used when Property is AdditionalProperty.

public string? Name { get; set; }

Property Value

string

Remarks

When null or empty, the label of the source field in the language of the product is written.

Property

The Schema.org Product property the mapped field is written to.

public required SchemaOrgProductProperty Property { get; set; }

Property Value

SchemaOrgProductProperty

PropertyId

The identifier written as the 'propertyID' of the PropertyValue, i.e. a standard code for the characteristic. Only used when Property is AdditionalProperty.

public string? PropertyId { get; set; }

Property Value

string

Remarks

When null or empty, no 'propertyID' is written.

Sort

The sort order of the mapping, used when a property accepts more than one source field.

public int Sort { get; set; }

Property Value

int

SourceFieldId

The unique system name of the product field used as the source of the value.

public required string SourceFieldId { get; set; }

Property Value

string

Remarks

Standard and custom product fields are identified by their system name, i.e. ProductNumber. Category fields are identified by their unique ID, i.e. ProductCategory|CategoryId|FieldId.

See Also

To top