ItemControl

ItemControl is a CyberStore base control for controls that provide functionality for one catalog item. It extends CyberStoreBaseControl with item-type visibility conditions.

Item-type visibility

Use these properties when the configured control should not process or render for a particular item type.

Property Default Valid values or format Effect
IgnoreWhenModel
Not specified
Not specified   Prevents the control from processing or rendering when the item is a model.
IgnoreWhenSKU
Not specified
Not specified   Prevents the control from processing or rendering when the item is an SKU.
IgnoreWhenStockCode
Not specified
Not specified   Prevents the control from processing or rendering when the item is a stock-code item.

SitePages.config example

The following example loads ItemControl.ascx and applies the documented literal defaults. The following properties are omitted because they do not have documented literal defaults: IgnoreWhenModel, IgnoreWhenSKU, IgnoreWhenStockCode.

<Control src="ItemControl.ascx" />

Add this <Control> element to the appropriate page placeholder as described in The SitePages.config File.

This reference does not document defaults, supported combinations, or precedence for these properties. Validate the selected item-type condition on the target item page.

Inherited properties

ItemControl inherits the shared visibility and shopper-access conditions from CyberStoreBaseControl. Configure those shared properties from the base-control reference; do not duplicate them on concrete item-control pages unless the concrete control changes their behavior.

Validate the control

  1. Add the target item control through SitePages.config.
  2. Configure one item-type visibility condition.
  3. Open pages for the relevant item types.
  4. Confirm the control renders only for the intended item types.

This site uses Just the Docs, a documentation theme for Jekyll.