(Developer)

Create Commerce Composer widgets

We can create a custom Commerce Composer widget that Management Center users can use to compose store pages. We must define your widget functionality, content, and presentation. Then, we must register your widget in the Commerce Composer framework, and subscribe one or more stores to use the widget.


Before beginning

Ensure that we are familiar with the terms and concepts that are described in the following topics:

Ensure that you complete the following prerequisite tasks:

Best Practices

When we are creating a widget, ensure that you follow the best practices for creating a Commerce Composer widget. For more information about these tips and guidelines, see Best practices for developing Commerce Composer assets.

Note: If you need to copy a Commerce Composer widget from one instance to another instance, we can use the Data Extract and Data Load utilities. Use the Data Extract utility to extract the widget registration and subscription data and then use the Data Load utility to load the extracted data into the target instance. See Extracting Commerce Composer data with the Data Extract utility.


Procedure


Related concepts
Commerce Composer overview
Widgets for Commerce Composer
Commerce Composer widget library
Commerce Composer widget caching and invalidation


Related tasks
Creating Commerce Composer widget groups


Related reference
registerWidgetdef input file
subscribeWidgetdef input file
registerWidgetdefdesc input file
widgetnvp input file
layoutWidgetRelationship input file