Announcement: You can find the guides for Commerce 7.5 and later on the new Elastic Path Documentation site. The Developer Center continues to support Commerce 6.13.0 through 7.4.1.Visit new site

Enabling State Policy awareness in a UI plugin

Enabling State Policy awareness in a UI plugin

A UI Plugin's Dialogs, Editors, Wizards, and Actions can all be made state policies aware. The basic process for this is as follows:

  1. Create a Creating a State Policy extension point and add it to the plugin.xml of the plugin that needs to support State Policies.
  2. Create a State Policy aware Creating a State Policy aware UI plugin class.
  3. Create State Policy aware Creating a State Policy aware dialog and Creating a State Policy aware action.
  4. In your dialogs, Adding State Policy aware UI controls.
  5. Create Creating a State Policy Contribution to map your State Policies to State Policy Targets.