using Nop.Core.Domain.Catalog; using Nop.Core.Domain.Customers; using Nop.Core.Domain.Stores; namespace Nop.Services.Catalog; /// /// Product attribute formatter interface /// public partial interface IProductAttributeFormatter { /// /// Formats attributes /// /// Product /// Attributes in XML format /// /// A task that represents the asynchronous operation /// The task result contains the attributes /// Task FormatAttributesAsync(Product product, string attributesXml); /// /// Formats attributes /// /// Product /// Attributes in XML format /// Customer /// Store /// Separator /// A value indicating whether to encode (HTML) values /// A value indicating whether to render prices /// A value indicating whether to render product attributes /// A value indicating whether to render gift card attributes /// A value indicating whether to HTML hyperink tags could be rendered (if required) /// /// A task that represents the asynchronous operation /// The task result contains the attributes /// Task FormatAttributesAsync(Product product, string attributesXml, Customer customer, Store store, string separator = "
", bool htmlEncode = true, bool renderPrices = true, bool renderProductAttributes = true, bool renderGiftCardAttributes = true, bool allowHyperlinks = true); }