C# Class Nop.Services.Catalog.ProductAttributeFormatter

Product attribute formatter
Inheritance: IProductAttributeFormatter
显示文件 Open project: jimmy00784/nopCommerce-Linux-Mysql

Public Methods

Method Description
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

Method Details

FormatAttributes() public method

Formats attributes
public FormatAttributes ( Nop.Core.Domain.Catalog.ProductVariant productVariant, string attributes ) : string
productVariant Nop.Core.Domain.Catalog.ProductVariant Product variant
attributes string Attributes
return string

FormatAttributes() public method

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)
return string

ProductAttributeFormatter() public method

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
return System