Table of Contents

Class ProductCategoryFieldValueService

Namespace
Dynamicweb.Ecommerce.Products.Categories
Assembly
Dynamicweb.Ecommerce.dll
public class ProductCategoryFieldValueService : ICacheStorage<string, ProductCategoryValues>, ICacheStorage<string>, ICacheStorage
Inheritance
ProductCategoryFieldValueService
Implements
ICacheStorage<string, ProductCategoryValues>
Inherited Members

Constructors

ProductCategoryFieldValueService()

public ProductCategoryFieldValueService()

Methods

ClearCache()

Resets all keys to the default value for objects stored in the object cache

public void ClearCache()

ClearCache(IEnumerable<string>)

Resets the specified keys to the default value for objects stored in the object cache

public void ClearCache(IEnumerable<string> keys)

Parameters

keys IEnumerable<string>

Keys to reset

ClearCache(string)

Resets the specified key to the default value for objects stored in the object cache

public void ClearCache(string key)

Parameters

key string

Key to reset

GetDefaultCategoryValue(Product, Field)

Gets default product category field value

public virtual object? GetDefaultCategoryValue(Product product, Field field)

Parameters

product Product

The product.

field Field

Returns

object

Field value

GetProductCategoryFieldValue(Product, string, Field)

public virtual object? GetProductCategoryFieldValue(Product product, string categoryId, Field field)

Parameters

product Product
categoryId string
field Field

Returns

object

GetProductCategoryValueSorting(IList<Product>)

public virtual Dictionary<string, List<FieldSortingInfo>> GetProductCategoryValueSorting(IList<Product> products)

Parameters

products IList<Product>

Returns

Dictionary<string, List<FieldSortingInfo>>

PrepareProductValues(IEnumerable<string>)

Requests the values for the given productIds and stores them in the cache

public virtual void PrepareProductValues(IEnumerable<string> productIds)

Parameters

productIds IEnumerable<string>

UpdatePropertyFields(Product, IList<Field>)

public virtual void UpdatePropertyFields(Product product, IList<Field> propertiesFields)

Parameters

product Product
propertiesFields IList<Field>
To top