CyberStore Ecommerce 2023 Documentation
PricingControl Class
Members 


Dovetail.Ecommerce.ControlBases Namespace : PricingControl Class
A pricing control base class.
Remarks

The PricingControl base class provides shared fields and properties common to child controls used to show prices in the CyberStore Catalog.

Available child controls of the PricingControl are:

 

Note:

While all controls sharing a base control have common properties, these are only a potential subset of available properties as each individual control contains features and functionality specific to its design.

Be sure to review each child control in the Control Library for more information.

 

Property Usage

Properties Specific to PricingControl

The properties contained in the PricingControl base class can be grouped into the following types:

Binding Properties

Binding properties are used to establish the base data definition details about the child control.

The properties Item_ID and StockCode can be used to indicate which Item is being priced.

Behavioral Properties

Behavioral properties are used to control specific features or functions of the child control.

The property AddToCartMinimumQuantity (formerly MinimumRequired) forces the add to cart function to require a certain minimum order quantity in order to be successfully placed into the Shopping Cart.

The SavingsMessageCalcBasis property sets the basis for calculating the dollar and percent off amounts of the Savings Message. Available options are "Default" (default), and "Customer".

Some properties allow for specifying specific file paths for graphics used in a price. These are the AddToCartGraphicPath and OnSaleGraphicPath properties.

Visibility Properties

Visibility properties control whether some part of a child control's output should be shown or hidden.

To set the child control to only display price information (i.e. hide all other elements of the control like add to cart buttons, accessories, quantity price tables, etc.), set the ShowOnlyPricing property to true.

The following properties control the visibility of specific components of the price display: ShowOnSaleGraphicShowPricePerUnit, ShowSavingsMessage, and ShowUOM.

And finally, the ShowWebPrice property allows one to hide the CyberStore discount price from being displayed prior to the shopping cart by setting it to false.

Text Properties

Text properties allow one to change the default text for any of the elements available.

Child pricing controls all share the following properties for altering text: AddToCartButtonText sets the text inside the add to cart button.

Price labels can be altered using the DefaultPriceLabelText, CustomerPriceLabelTextDiscountPriceLabelText, and WebPriceLabelText properties.

Elements of the Savings Message part of a price display can be customized using the SavingsMessageLabelText and SavingsMessage properties.

The PricePerUnitDisplayText property is used to customize the text and form of the Price Per Unit part of pricing when used.

Style Properties

Style properties are used to allow for the adding of additional CSS classes into an element's HTML layout.

Available style properties shared among child pricing controls are:

Properties Inherited from the Base ItemControl 

The properties contained in the ItemControl base class allow for options regarding the type of Item that is in context for the control.

The properties IgnoreWhenModelIgnoreWhenSKU, and IgnoreWhenStockCode properties can be used to case the ItemControl to not process nor render when the appropriate Item type is valid for the Item.

Properties Inherited from the Base CyberStoreBaseControl

Properties specific to the CyberStoreBaseControl can be listed in the following categories:

Override Properties

When the IgnoreControl property is set to true, all processing of a control is skipped, and the control's Visible property is set to false ensuring that it is not rendered in the resulting CyberStore page.

Contextual Properties

Contextual properties define specific details about the current instance of the control based on context. Context can be set by any number of factors including the log in state of the Shopper, the Site being visited, or the properties that have been established for a control.

The AttributesBag property is used internal to control processing and is the collection of attributes, or properties, and their values based on how the control is configured. The attributes in this property are set by processing the SitePages.config file as well as any specific declared property values in any registered sub controls. It allows for the passing down of all properties to a control and any registered sub controls.

The ComConfigUserData and Site_ID properties are read-only values made available to all CyberStore controls to aid in processing and establishing context about the Site and Shopper.

 

Properties Inherited from the Base ItemControl 

The properties contained in the ItemControl base class allow for options regarding the type of Item that is in context for the control.

The properties IgnoreWhenModelIgnoreWhenSKU, and IgnoreWhenStockCode properties can be used to case the ItemControl to not process nor render when the appropriate Item type is valid for the Item.

Properties Inherited from the Base CyberStoreBaseControl

Properties specific to the CyberStoreBaseControl can be listed in the following categories:

Override Properties

When the IgnoreControl property is set to true, all processing of a control is skipped, and the control's Visible property is set to false ensuring that it is not rendered in the resulting CyberStore page.

Contextual Properties

Contextual properties define specific details about the current instance of the control based on context. Context can be set by any number of factors including the log in state of the Shopper, the Site being visited, or the properties that have been established for a control.

The AttributesBag property is used internal to control processing and is the collection of attributes, or properties, and their values based on how the control is configured. The attributes in this property are set by processing the SitePages.config file as well as any specific declared property values in any registered sub controls. It allows for the passing down of all properties to a control and any registered sub controls.

The ComConfigUserData and Site_ID properties are read-only values made available to all CyberStore controls to aid in processing and establishing context about the Site and Shopper.

Inheritance Hierarchy

System.Object
   System.Web.UI.Control
      System.Web.UI.TemplateControl
         System.Web.UI.UserControl
            Dovetail.Ecommerce.ControlBases.CyberStoreBaseControl
               Dovetail.Ecommerce.ControlBases.ItemControl
                  Dovetail.Ecommerce.ControlBases.PricingControl
                     Dovetail.Ecommerce.Controls.CatalogPricingControl
                     Dovetail.Ecommerce.Controls.CatalogSimplePricingControl

See Also

Reference

PricingControl Members
Dovetail.Ecommerce.ControlBases Namespace
CatalogPricingControl
CatalogSimplePricingControl Class