Class Renderer
- Namespace
- Dynamicweb.Ecommerce.Cart
- Assembly
- Dynamicweb.Ecommerce.dll
Renderer class.
public class Renderer
- Inheritance
-
Renderer
- Inherited Members
Methods
RenderEmptyCartStep(ModuleSettings, int, PageView)
Renders a step of the CartV2
public static string RenderEmptyCartStep(ModuleSettings settings, int stepIndex, PageView pageView)
Parameters
settings
ModuleSettings- The paragraph module settings
stepIndex
int- The zero-based index of the step
pageView
PageView- The current PageView object
Returns
- string
- A string containing the rendered order
RenderStep(Order, ModuleSettings, int, PageView, IEnumerable<ValidationError>, IEnumerable<string>)
Renders a step of the CartV2
public static string RenderStep(Order order, ModuleSettings settings, int stepIndex, PageView pageView, IEnumerable<ValidationError> validationErrors, IEnumerable<string> removedProductNames)
Parameters
order
Order- The order to be rendered
settings
ModuleSettings- The paragraph module settings
stepIndex
int- The zero-based index of the step
pageView
PageView- The current PageView object
validationErrors
IEnumerable<ValidationError>- The validation errors
removedProductNames
IEnumerable<string>- Removed product names rendered in a loop
Returns
- string
- A string containing the rendered order
RenderStep(Order, PageView, IEnumerable<ValidationError>, IEnumerable<string>, bool, Template)
Renders the order to the template
public static void RenderStep(Order order, PageView pageView, IEnumerable<ValidationError> validationErrors, IEnumerable<string> removedProductNames, bool useNewsletterSubscription, Template template)
Parameters
order
Order- The order that should be rendered
pageView
PageView- The current pageview object
validationErrors
IEnumerable<ValidationError>- Validation errors or null if no validation errors should be rendered
removedProductNames
IEnumerable<string>- Removed product names or null if no removed product names should be rendered
useNewsletterSubscription
bool- Renders the tag Ecom:Cart.UseNewsletterSubscription to 'true' or the empty string based on the boolean
template
Template- The template to render the order to