Class Renderer
- Namespace
- Dynamicweb.Ecommerce.Frontend
- Assembly
- Dynamicweb.Ecommerce.dll
public class Renderer
- Inheritance
-
Renderer
- Inherited Members
Constructors
Renderer()
Initializes a new instance of the class.
public Renderer()
Renderer(PageView)
Initializes a new instance of the class.
public Renderer(PageView pageView)
Parameters
Renderer(PageView, int)
Initializes a new instance of the class.f
public Renderer(PageView pageView, int paragraphId)
Parameters
Properties
ContentModule
Gets or sets the content module.
public ContentModule ContentModule { get; set; }
Property Value
IsOrderRendering
Gets or sets the value indicating whether need to render the order.
public bool IsOrderRendering { get; set; }
Property Value
PageView
Gets or sets the PageView.
public PageView PageView { get; set; }
Property Value
ParagraphId
Gets or sets the paragraph id.
public int ParagraphId { get; set; }
Property Value
ParagraphSettings
Gets or sets the ProductCatalogSettings.
public ProductCatalogSettings ParagraphSettings { get; set; }
Property Value
Methods
FileExists(string)
Checks the existence of the file.
[Obsolete("Use Services.ProductImages.FileExists instead.")]
public bool FileExists(string imagePath)
Parameters
imagePathstring- The image path.
Returns
- bool
trueif file exists.
ForcePageId(int)
Forces the page id.
public void ForcePageId(int pageId)
Parameters
pageIdint- The page id.
GetProductImage(string, string)
Gets the product image.
[Obsolete("Use Services.ProductImages.GetProductImage instead.")]
public string GetProductImage(string imagePath, string imageSize)
Parameters
Returns
InitializeImagePatternSettings(string)
Initialize settings to render product's alternative images
public void InitializeImagePatternSettings(string imagePatternProductCatalog)
Parameters
imagePatternProductCatalogstring- The URL of product catalog with image patterns
Pid()
Gets the "PID=" URL segment.
public string Pid()
Returns
RenderBoughtFromDateTags(Template, DateTime)
Renders the orders from specified date.
public void RenderBoughtFromDateTags(Template template, DateTime boughtFromGivenDate)
Parameters
RenderCountries(CountryCollection, Template, string)
Renders the countries.
public static void RenderCountries(CountryCollection countryCollection, Template parentTemplate, string loopName)
Parameters
countryCollectionCountryCollection- The countries.
parentTemplateTemplate- The Template.
loopNamestring- The loop name.
RenderCountry(Country, Template)
Renders the country.
public static void RenderCountry(Country country, Template template)
Parameters
RenderCurrencies(Template)
Renders all currencies on the site.
public static void RenderCurrencies(Template template)
Parameters
RenderCurrency(Currency, Template, string)
Renders the currency.
public static void RenderCurrency(Currency currency, Template template, string tagName)
Parameters
currencyCurrency- The currency.
templateTemplate- The Template.
tagNamestring- Name of the prefix of the tag, i.e. 'Currency' in the tag Currency.Code.
RenderCustomFields(Template, string)
Renders the custom fields.
public void RenderCustomFields(Template parentTemplate, string loopName)
Parameters
RenderCustomGroupField(ProductFieldValueCollection, Template)
Renders the custom fields.
public void RenderCustomGroupField(ProductFieldValueCollection productFieldValues, Template template)
Parameters
productFieldValuesProductFieldValueCollection- The custom fields.
templateTemplate- The Template.
RenderCustomProductField(Product, Template)
Renders the custom field.
public void RenderCustomProductField(Product product, Template template)
Parameters
RenderDetail(Detail, Template)
Render the detail.
public void RenderDetail(Detail detail, Template template)
Parameters
RenderDetails(IEnumerable<Detail>, Template, string)
Renders the details.
public void RenderDetails(IEnumerable<Detail> details, Template parentTemplate, string loopName)
Parameters
detailsIEnumerable<Detail>- The details.
parentTemplateTemplate- The Template.
loopNamestring- The loop name.
RenderGiftCards(IEnumerable<GiftCard>, Template)
Render bought gift cards products.
public void RenderGiftCards(IEnumerable<GiftCard> giftCards, Template parentTemplate)
Parameters
giftCardsIEnumerable<GiftCard>- The gift cards.
parentTemplateTemplate- The Template.
RenderGroup(Group, Template)
Renders single group.
public void RenderGroup(Group group, Template template)
Parameters
RenderGroup(Group, Template, bool)
Renders single group.
public void RenderGroup(Group group, Template template, bool renderSubGroups)
Parameters
groupGroup- Group to render.
templateTemplate- The Template.
renderSubGroupsbool- Indicates whether to render sub-groups (if the corresponding loop is defined in a template).
RenderGroupCategory(Group, Template)
Renders group categories.
public void RenderGroupCategory(Group group, Template template)
Parameters
RenderGroups(GroupCollection)
Renders the groups.
[Obsolete("Use overload with IEnumerable groups instead.")]
public string RenderGroups(GroupCollection groups)
Parameters
groupsGroupCollection- The groups.
Returns
- string
- The HTML.
RenderGroups(GroupCollection, Template, string)
Renders the groups.
[Obsolete("Use overload with IEnumerable groups instead.")]
public void RenderGroups(GroupCollection groups, Template parentTemplate, string loopName)
Parameters
groupsGroupCollection- The groups.
parentTemplateTemplate- The Template.
loopNamestring- The loop name.
RenderGroups(IEnumerable<Group>)
Renders the groups.
public string RenderGroups(IEnumerable<Group> groups)
Parameters
groupsIEnumerable<Group>- The groups.
Returns
- string
- The HTML.
RenderGroups(IEnumerable<Group>, Template, string)
Renders the groups.
public void RenderGroups(IEnumerable<Group> groups, Template parentTemplate, string loopName)
Parameters
groupsIEnumerable<Group>- The groups.
parentTemplateTemplate- The Template.
loopNamestring- The loop name.
RenderGroupTemplateExtenders(Group, Template)
Extends a Group template with TemplateExtenders
public void RenderGroupTemplateExtenders(Group group, Template template)
Parameters
RenderOrder(Order, Template)
Renders the order.
public void RenderOrder(Order order, Template template)
Parameters
RenderOrder(Order, Template, bool, int)
Renders the order.
public void RenderOrder(Order order, Template template, bool extendedProperties, int stepNumber)
Parameters
orderOrder- The order.
templateTemplate- The Template.
extendedPropertiesbool- If set to
true, renders with the extended properties. stepNumberint- The step number.
RenderOrderContext(OrderContext, Template, string)
Renders the orderContext.
public static void RenderOrderContext(OrderContext orderContext, Template template, string tagName)
Parameters
orderContextOrderContext- The orderContext.
templateTemplate- The Template.
tagNamestring- Name of the prefix of the tag, i.e. 'OrderContext' in the tag OrderContext.Name.
RenderOrderContexts(Template)
Renders all order contexts on the site.
public static void RenderOrderContexts(Template template)
Parameters
RenderOrderDetails(Template, Order, bool)
Renders the order detail.
public void RenderOrderDetails(Template template, Order order, bool extendedProperties)
Parameters
templateTemplate- The Template.
orderOrder- The order.
extendedPropertiesbool- If set to
true, renders with the extended properties.
RenderOrderDetails(Template, Order, bool, OrderTemplateExtenderContext)
Renders the order details.
public void RenderOrderDetails(Template template, Order order, bool extendedProperties, OrderTemplateExtenderContext orderContext)
Parameters
templateTemplate- The Template.
orderOrder- The order.
extendedPropertiesbool- If set to
true, renders with the extended properties. orderContextOrderTemplateExtenderContext- The order context.
RenderOrderFieldValues(Order, ref Template)
Renders the order fields.
public static void RenderOrderFieldValues(Order order, ref Template template)
Parameters
RenderOrderLine(OrderLine, Template)
Renders the order line.
public void RenderOrderLine(OrderLine orderLine, Template template)
Parameters
RenderOrderLines(OrderLineCollection, Template, string)
Renders the order lines.
public void RenderOrderLines(OrderLineCollection orderLines, Template parentTemplate, string loopName)
Parameters
orderLinesOrderLineCollection- The order lines.
parentTemplateTemplate- The Template.
loopNamestring- The loop name.
RenderOrderLineTemplateExtenders(Order, OrderLine, Template, TemplateExtenderRenderingState)
Extends a Cart template with TemplateExtenders
public void RenderOrderLineTemplateExtenders(Order order, OrderLine orderLine, Template template, TemplateExtenderRenderingState renderingState)
Parameters
orderOrder- The currently rendered Order
orderLineOrderLine- The currently rendered OrderLine
templateTemplate- The Template.
renderingStateTemplateExtenderRenderingState
RenderOrderTaxes(OrderLineCollection, Template)
Render order taxes.
public void RenderOrderTaxes(OrderLineCollection orderLines, Template template)
Parameters
orderLinesOrderLineCollection- The order lines.
templateTemplate- The Template.
RenderOrderTemplateExtenders(Order, Template, TemplateExtenderRenderingState)
Extends a Order template with TemplateExtenders.
public static void RenderOrderTemplateExtenders(Order order, Template template, TemplateExtenderRenderingState renderingState)
Parameters
orderOrder- The currently rendered Order.
templateTemplate- The Template.
renderingStateTemplateExtenderRenderingState
RenderOrderTemplateExtenders(Order, Template, TemplateExtenderRenderingState, int)
Extends an Order with TemplateExtenders.
public static void RenderOrderTemplateExtenders(Order order, Template template, TemplateExtenderRenderingState renderingState, int paragraphId)
Parameters
orderOrder- The order.
templateTemplate- The Template.
renderingStateTemplateExtenderRenderingState- The rendering state.
paragraphIdint- The paragraph id.
RenderPriceInfo(IPriceInfo, Template, string)
Renders the price information.
public static void RenderPriceInfo(IPriceInfo price, Template template, string tagName)
Parameters
priceIPriceInfo- The price.
templateTemplate- The Template.
tagNamestring- The template tag name.
RenderProduct(Product, bool)
Renders the product.
public string RenderProduct(Product product, bool extendedProperties)
Parameters
productProduct- The product.
extendedPropertiesbool- If set to
true, renders with the extended properties.
Returns
- string
- The HTML.
RenderProduct(Product, bool, Template)
Renders the product.
public void RenderProduct(Product product, bool extendedProperties, Template template)
Parameters
productProduct- The product.
extendedPropertiesbool- If set to
true, renders with the extended properties. templateTemplate- The Template.
RenderProduct(Product, bool, Template, int)
Renders the product.
public void RenderProduct(Product product, bool extendedProperties, Template template, int loopCounter)
Parameters
productProduct- The product.
extendedPropertiesbool- If set to
true, renders with the extended properties. templateTemplate- The Template.
loopCounterint- The loop counter.
RenderProduct(Product, bool, Template, int, bool, int)
Renders the product.
public void RenderProduct(Product product, bool extendedProperties, Template template, int loopCounter, bool renderRelated, int orderLineOfProductCount = 0)
Parameters
productProduct- The product.
extendedPropertiesbool- If set to
true, renders with the extended properties. templateTemplate- The Template.
loopCounterint- The loop counter.
renderRelatedbool- Is set to
true, renders related products. orderLineOfProductCountint- The order line.
RenderProduct(Product, bool, Template, int, bool, string)
Renders the product.
public void RenderProduct(Product product, bool extendedProperties, Template template, int loopCounter, bool renderRelated, string productUrl)
Parameters
productProduct- The product.
extendedPropertiesbool- If set to
true, renders with the extended properties. templateTemplate- The Template.
loopCounterint- The loop counter.
renderRelatedbool- Is set to
true, renders related products. productUrlstring- The product URL.
RenderProduct(Product, bool, Template, int, bool, string, int, int)
Renders the product.
public void RenderProduct(Product product, bool extendedProperties, Template template, int loopCounter, bool renderRelated, string productUrl, int quantity, int wishListId)
Parameters
productProduct- The product.
extendedPropertiesbool- If set to
true, renders with the extended properties. templateTemplate- The Template.
loopCounterint- The loop counter.
renderRelatedbool- Is set to
true, renders related products. productUrlstring- The product URL.
quantityint- The quantity.
wishListIdint- The wishlist id.
RenderProduct(Product, bool, Template, int, bool, string, int, int, bool, int)
Renders the product.
public void RenderProduct(Product product, bool extendedProperties, Template template, int loopCounter, bool renderRelated, string productUrl, int quantity, int wishListId, bool renderPublicList, int orderLineOfProductCount = 0)
Parameters
productProduct- The product.
extendedPropertiesbool- If set to
true, renders with the extended properties. templateTemplate- The Template.
loopCounterint- The loop counter.
renderRelatedbool- Is set to
true, renders related products. productUrlstring- The product URL.
quantityint- The quantity.
wishListIdint- The wishlist id.
renderPublicListbool- If set to
trueit is public list. orderLineOfProductCountint- The order line.
RenderProduct(Product, bool, string)
Renders the product.
public string RenderProduct(Product product, bool extendedProperties, string unitId)
Parameters
productProduct- The product.
extendedPropertiesbool- If set to
true, renders with the extended properties. unitIdstring
Returns
- string
- The HTML.
RenderProductCategories(Product, Template, string)
Renders product categories.
public void RenderProductCategories(Product product, Template template, string loopName)
Parameters
productProduct- Product whose categories shold be rendered.
templateTemplate- The Template.
loopNamestring- The name of the template loop.
RenderProductCategoryFields(Product, Category, Template, string)
Renders product category field values from the specified category.
public void RenderProductCategoryFields(Product product, Category category, Template template, string loopName)
Parameters
productProduct- Product whose category field values needs to be rendered.
categoryCategory- Product category.
templateTemplate- The Template.
loopNamestring- The name of the loop within the template.
RenderProductCustomFields(ProductFieldValueCollection, Template, string)
Renders the custom fields.
public void RenderProductCustomFields(ProductFieldValueCollection productFieldValues, Template parentTemplate, string loopName)
Parameters
productFieldValuesProductFieldValueCollection- The custom fields.
parentTemplateTemplate- The Template.
loopNamestring- The loop name.
RenderProductCustomFieldValues(ProductFieldValueCollection, Template, string)
Renders the custom fields.
public void RenderProductCustomFieldValues(ProductFieldValueCollection productFieldValues, Template parentTemplate, string loopName)
Parameters
productFieldValuesProductFieldValueCollection- The custom fields.
parentTemplateTemplate- The Template.
loopNamestring- The loop name.
RenderProductGroupCustomFields(ProductGroupFieldValueCollection, Template, string)
Renders the custom fields.
public void RenderProductGroupCustomFields(ProductGroupFieldValueCollection productGroupFieldValues, Template parentTemplate, string loopName)
Parameters
productGroupFieldValuesProductGroupFieldValueCollection- The custom fields.
parentTemplateTemplate- The Template.
loopNamestring- The loop name.
RenderProductGroupCustomFields(string, ProductGroupFieldValueCollection, Template, string)
Renders the custom fields.
public void RenderProductGroupCustomFields(string languageId, ProductGroupFieldValueCollection productGroupFieldValues, Template parentTemplate, string loopName)
Parameters
languageIdstring- The language id.
productGroupFieldValuesProductGroupFieldValueCollection- The custom fields.
parentTemplateTemplate- The Template.
loopNamestring- The loop name.
RenderProductGroups(Template)
Renders the product groups.
public void RenderProductGroups(Template parentTemplate)
Parameters
RenderProductListTemplateExtenders(ProductCollection, Template)
Extends a ProductList template with TemplateExtenders.
public void RenderProductListTemplateExtenders(ProductCollection products, Template template)
Parameters
productsProductCollection- The currently rendered product.
templateTemplate- The Template.
RenderProductManufacturer(Manufacturer, Template)
Renders the product manufacturer.
public void RenderProductManufacturer(Manufacturer manufacturer, Template template)
Parameters
manufacturerManufacturer- The product manufacturer.
templateTemplate- The Template.
RenderProductRelatedGroups(Product, Template, string)
Renders the related products groups.
public void RenderProductRelatedGroups(Product product, Template parentTemplate, string loopName)
Parameters
RenderProducts(ProductCollection)
Renders the products.
public string RenderProducts(ProductCollection products)
Parameters
productsProductCollection- A collection of the products.
Returns
- string
- The HTML.
RenderProducts(ProductCollection, Template)
Renders the products.
public void RenderProducts(ProductCollection products, Template parentTemplate)
Parameters
productsProductCollection- A collection of the products.
parentTemplateTemplate- The Template.
RenderProducts(ProductCollection, Template, string)
Renders the products.
public void RenderProducts(ProductCollection products, Template parentTemplate, string loopName)
Parameters
productsProductCollection- A collection of the products.
parentTemplateTemplate- The Template.
loopNamestring- The loop name.
RenderProducts(ProductCollection, Template, string, int)
Renders the products.
public void RenderProducts(ProductCollection products, Template parentTemplate, string loopName, int loopCounter)
Parameters
productsProductCollection- A collection of the products.
parentTemplateTemplate- The Template.
loopNamestring- The loop name.
loopCounterint- The loop counter.
RenderProductsSimpleWithQuantity(Dictionary<Product, int>, Template, int)
Renders the products with the quantity.
public void RenderProductsSimpleWithQuantity(Dictionary<Product, int> productDictionary, Template template, int wishListId)
Parameters
productDictionaryDictionary<Product, int>- A dictionary of the products and quantity.
templateTemplate- The Template.
wishListIdint- The wishlist id.
RenderProductTaxes(OrderLineCollection, OrderLine, Template)
Render taxes for product.
public void RenderProductTaxes(OrderLineCollection orderLines, OrderLine orderLine, Template template)
Parameters
orderLinesOrderLineCollection- The order lines.
orderLineOrderLine- The order line.
templateTemplate- The Template.
RenderProductTemplateExtenders(Product, Template)
Extends a product template with TemplateExtenders.
public void RenderProductTemplateExtenders(Product product, Template template)
Parameters
RenderProductTemplateExtenders(Product, Template, bool)
Extends a Product template with TemplateExtenders.
public void RenderProductTemplateExtenders(Product product, Template template, bool extendedProperties)
Parameters
productProduct- The currently rendered product
templateTemplate- The Template.
extendedPropertiesbool- If set to
true, renders with the extended properties.
RenderRma(ReturnMerchandiseAuthorization, Template, string, bool, bool, bool)
Renders the RMA.
public void RenderRma(ReturnMerchandiseAuthorization rma, Template template, string orderId, bool hasAddProductComment, bool hasAddContent, bool hasCancelContent)
Parameters
rmaReturnMerchandiseAuthorization- The rma.
templateTemplate- The Template.
orderIdstring- The order ID.
hasAddProductCommentbool- if set to
truerender the has add product comment. hasAddContentbool- if set to
truehas add content. hasCancelContentbool- if set to
truehas cancel content.
RenderRmaComment(ReturnMerchandiseAuthorizationComment, Template, bool, bool)
Renders the RMA comment.
public void RenderRmaComment(ReturnMerchandiseAuthorizationComment comment, Template template, bool hasAddContent, bool hasCancelContent)
Parameters
commentReturnMerchandiseAuthorizationComment- The comment.
templateTemplate- The Template.
hasAddContentbool- if set to
truehas add content. hasCancelContentbool- if set to
truehas cancel content.
RenderRmaComments(ReturnMerchandiseAuthorizationCommentCollection, Template, string, bool, bool)
Renders the RMA comments.
public void RenderRmaComments(ReturnMerchandiseAuthorizationCommentCollection comments, Template parentTemplate, string loopName, bool hasAddContent, bool hasCancelContent)
Parameters
commentsReturnMerchandiseAuthorizationCommentCollection- The comments.
parentTemplateTemplate- The Template.
loopNamestring- Name of the loop.
hasAddContentbool- if set to
truehas add content. hasCancelContentbool- if set to
truehas cancel content.
RenderRmaDetails(Template, ReturnMerchandiseAuthorization, string, bool, bool, bool)
Renders the RMA details.
public void RenderRmaDetails(Template template, ReturnMerchandiseAuthorization rma, string orderId, bool hasAddProductComment, bool hasAddContent, bool hasCancelContent)
Parameters
templateTemplate- The Template.
rmaReturnMerchandiseAuthorization- The rma.
orderIdstring- The order ID.
hasAddProductCommentbool- if set to
truehas add product comment. hasAddContentbool- if set to
truehas add content. hasCancelContentbool- if set to
truehas cancel content.
RenderRmaHasContent(Template, bool, bool)
Renders the RMA tags HasAddContent and HasCancelContent.
public void RenderRmaHasContent(Template template, bool hasAddContent, bool hasCancelContent)
Parameters
templateTemplate- The Template.
hasAddContentbool- if set to
truerender the HasAddContent tag. hasCancelContentbool- if set to
truerender the HasCancelContent tag.
RenderRmaOrderLine(ReturnMerchandiseAuthorizationOrderLine, int, Template, bool, bool, bool)
Renders the RMA order line.
public void RenderRmaOrderLine(ReturnMerchandiseAuthorizationOrderLine rmaOrderLine, int prefixId, Template template, bool hasAddProductComment, bool hasAddContent, bool hasCancelContent)
Parameters
rmaOrderLineReturnMerchandiseAuthorizationOrderLine- The rma order line.
prefixIdint- The preffix id.
templateTemplate- The Template.
hasAddProductCommentbool- if set to
truehas add product comment. hasAddContentbool- if set to
truehas add content. hasCancelContentbool- if set to
truehas cancel content.
RenderRmaOrderLines(ReturnMerchandiseAuthorizationOrderlineCollection, Template, string, bool, bool, bool)
Renders the RMA order lines.
public void RenderRmaOrderLines(ReturnMerchandiseAuthorizationOrderlineCollection rmaOrderLines, Template parentTemplate, string loopName, bool hasAddProductComment, bool hasAddContent, bool hasCancelContent)
Parameters
rmaOrderLinesReturnMerchandiseAuthorizationOrderlineCollection- The rma order lines.
parentTemplateTemplate- The Template.
loopNamestring- Name of the loop.
hasAddProductCommentbool- if set to
truehas add product comment. hasAddContentbool- if set to
truehas add content. hasCancelContentbool- if set to
truehas cancel content.
RenderRmaTypes(int, List<KeyValuePair<ReturnMerchandiseAuthorizationType, string>>, Template, string)
Renders the RMA types.
public void RenderRmaTypes(int selectedTypeId, List<KeyValuePair<ReturnMerchandiseAuthorizationType, string>> types, Template parentTemplate, string loopName)
Parameters
selectedTypeIdint- The selected type ID.
typesList<KeyValuePair<ReturnMerchandiseAuthorizationType, string>>- The types.
parentTemplateTemplate- The Template.
loopNamestring- Name of the loop.
RenderSearchTemplate()
Renders the search template.
public string RenderSearchTemplate()
Returns
- string
- The HTML.
RenderShippingTaxes(OrderLineCollection, Template)
Render taxes for shipping
public void RenderShippingTaxes(OrderLineCollection orderLines, Template template)
Parameters
orderLinesOrderLineCollection- The order lines.
templateTemplate- The Template.
RenderStockLocations(Product, Template, string, bool)
Renders the stock locations.
public void RenderStockLocations(Product product, Template template, string currentUnitId, bool isRenderInternalLoop)
Parameters
productProduct- The product.
templateTemplate- The Template.
currentUnitIdstring- The unit id.
isRenderInternalLoopbool- If set to
truerenders the internal loop.
RenderStockStateTotals(Product, Template)
Renders the totals for stock state.
public void RenderStockStateTotals(Product product, Template template)
Parameters
RenderStockStatus(StockStatus, Template)
Renders stock status.
[Obsolete("Use RenderStockStatus(StockStatus, Template, string) instead")]
public void RenderStockStatus(StockStatus stockStatus, Template template)
Parameters
stockStatusStockStatus- The stock status.
templateTemplate- The Template.
RenderStockStatus(StockStatus, Template, string)
Renders stock status.
public void RenderStockStatus(StockStatus stockStatus, Template template, string languageId)
Parameters
stockStatusStockStatus- The stock status.
templateTemplate- The Template.
languageIdstring
RenderStockUnits(Product, Template, StockLocation, bool)
Renders stock units.
public void RenderStockUnits(Product product, Template template, StockLocation currentStockLocation, bool isRenderInternalLoop)
Parameters
productProduct- The product.
templateTemplate- The Template.
currentStockLocationStockLocation- The stock location.
isRenderInternalLoopbool- If set to
truerenders the internal loop.
RenderUnits(Product, Template)
Renders units.
public void RenderUnits(Product product, Template template)
Parameters
RenderVariantAvailableOptions(Product, IEnumerable<VariantOption>, Template, string)
Renders the available variant options.
public void RenderVariantAvailableOptions(Product product, IEnumerable<VariantOption> groupVariantOptions, Template parentTemplate, string loopName)
Parameters
productProduct- The product.
groupVariantOptionsIEnumerable<VariantOption>- The variant options.
parentTemplateTemplate- The Template.
loopNamestring- The loop name.
RenderVariantAvailableOptions(Product, IEnumerable<VariantOption>, Template, string, bool)
Renders the available variant options.
public void RenderVariantAvailableOptions(Product product, IEnumerable<VariantOption> groupVariantOptions, Template parentTemplate, string loopName, bool isCalledInsideRecursion)
Parameters
productProduct- The product.
groupVariantOptionsIEnumerable<VariantOption>- The variant options.
parentTemplateTemplate- The Template.
loopNamestring- The loop name.
isCalledInsideRecursionbool
RenderVariantCombinations(Product, Template, string)
Renders the variant combinations.
public void RenderVariantCombinations(Product product, Template parentTemplate, string loopName)
Parameters
RenderVariantGroup(Product, VariantGroup, Template)
Renders the variant groups.
public void RenderVariantGroup(Product product, VariantGroup variantGroup, Template template)
Parameters
productProduct- The product.
variantGroupVariantGroup- The variant group.
templateTemplate- The Template.
RenderVariantGroups(Product, Template, string)
Renders the variant groups.
public void RenderVariantGroups(Product product, Template parentTemplate, string loopName)
Parameters
RenderVariantOption(VariantOption, Template)
Renders the variant option.
public void RenderVariantOption(VariantOption VariantOption, Template Template)
Parameters
VariantOptionVariantOptionTemplateTemplate
RenderVariantOption(VariantOption, Template, string)
Renders the variant option.
public void RenderVariantOption(VariantOption variantOption, Template template, string renderingVariantId)
Parameters
variantOptionVariantOption- The variant option.
templateTemplate- The Template.
renderingVariantIdstring- The rendering variant id.
RenderVariantOptions(IEnumerable<VariantOption>, Template, string)
Renders the variant options.
public void RenderVariantOptions(IEnumerable<VariantOption> variantOptions, Template parentTemplate, string loopName)
Parameters
variantOptionsIEnumerable<VariantOption>- The variant options.
parentTemplateTemplate- The Template.
loopNamestring- The loop name.