C# Класс Nop.Services.Catalog.ProductAttributeFormatter

Product attribute formatter
Наследование: IProductAttributeFormatter
Показать файл Открыть проект

Открытые методы

Метод Описание
FormatAttributes ( Nop.Core.Domain.Catalog.ProductVariant productVariant, string attributes ) : string

Formats attributes

FormatAttributes ( Nop.Core.Domain.Catalog.ProductVariant productVariant, string attributes, Customer customer, string serapator = "<br />", bool htmlEncode = true, bool renderPrices = true, bool renderProductAttributes = true, bool renderGiftCardAttributes = true, bool allowHyperlinks = true ) : string

Formats attributes

ProductAttributeFormatter ( IWorkContext workContext, IProductAttributeService productAttributeService, IProductAttributeParser productAttributeParser, ICurrencyService currencyService, ILocalizationService localizationService, ITaxService taxService, IPriceFormatter priceFormatter, IDownloadService downloadService, IWebHelper webHelper ) : System

Описание методов

FormatAttributes() публичный Метод

Formats attributes
public FormatAttributes ( Nop.Core.Domain.Catalog.ProductVariant productVariant, string attributes ) : string
productVariant Nop.Core.Domain.Catalog.ProductVariant Product variant
attributes string Attributes
Результат string

FormatAttributes() публичный Метод

Formats attributes
public FormatAttributes ( Nop.Core.Domain.Catalog.ProductVariant productVariant, string attributes, Customer customer, string serapator = "<br />", bool htmlEncode = true, bool renderPrices = true, bool renderProductAttributes = true, bool renderGiftCardAttributes = true, bool allowHyperlinks = true ) : string
productVariant Nop.Core.Domain.Catalog.ProductVariant Product variant
attributes string Attributes
customer Nop.Core.Domain.Customers.Customer Customer
serapator string Serapator
htmlEncode bool A value indicating whether to encode (HTML) values
renderPrices bool A value indicating whether to render prices
renderProductAttributes bool A value indicating whether to render product attributes
renderGiftCardAttributes bool A value indicating whether to render gift card attributes
allowHyperlinks bool A value indicating whether to HTML hyperink tags could be rendered (if required)
Результат string

ProductAttributeFormatter() публичный Метод

public ProductAttributeFormatter ( IWorkContext workContext, IProductAttributeService productAttributeService, IProductAttributeParser productAttributeParser, ICurrencyService currencyService, ILocalizationService localizationService, ITaxService taxService, IPriceFormatter priceFormatter, IDownloadService downloadService, IWebHelper webHelper ) : System
workContext IWorkContext
productAttributeService IProductAttributeService
productAttributeParser IProductAttributeParser
currencyService ICurrencyService
localizationService ILocalizationService
taxService ITaxService
priceFormatter IPriceFormatter
downloadService IDownloadService
webHelper IWebHelper
Результат System