Work with entity versions
By default, versioning is enabled for catalogs, categories, and sellable items. If you want to enable versioning for other types of Commerce entities, you can configure the functionality by changing the configuration policy.
Create a new entity version
If you want to make changes to a Commerce item, you must create a new version of the item.
To create a new entity version:
On the Details page of the Commerce entity, in the Entity Versions section, click (to highlight) the existing version upon which to base the new version. The new entity version will be an editable copy of the one you highlight.Note
When you first load the page, the last version is highlighted by default, regardless of its publishing status.
In the Summary section, in the drop-down menu, click Add Entity Version.
A new version is added, modeled on the version you selected in step 1.
In the confirmation dialog box, to confirm your choice, click OK.
To edit the new version, in the Entity Versions section, in the Version field, click the corresponding number.Note
The browser URL also changes to reflect the active entity version.
In the Details section, click the Edit icon, and in the Edit Details dialog box, make the required changes.
Click the check mark to save your changes.
Publish an entity version
When you are ready to publish your changes to the Commerce item, you place the entity version in the publishing workflow.
By default, a new entity version is always in a Draft state until it is promoted to the next state in the workflow. If an entity has already been published, you cannot change or re-publish it.
To publish an entity version:
On the Details page of the Commerce item, in the Summary section, in the drop-down menu, click Promote to next workflow state option.
In the Promote to next workflow state window, the current workflow state is shown as Draft. In the Command field, click Submit and then click the checkmark to confirm.
To move the Commerce item to the next state, in the Summary section, in the drop-down menu, click Promote to next workflow state.
In the Promote to next workflow state window, the current workflow state is shown as Awaiting Approval. In the Command field:
To accept changes to the item, click Approve - Sitecore publishes the new version of the Commerce item and sets the value of the Published field to true.
To reject the changes to the item, click Reject - Sitecore returns the entity version to the Awaiting Approval state ( and the value of the Published field remains false).
As long as you have not published the entity version, you can continue to edit that version of the Commerce item, including when the entity is in the Awaiting Approval state.
View information for different entity versions
You can view different versions of an entity if you want to review the change history on an item.
To view the information associated with a particular entity version:
On the Details page of the Commerce item, in the Summary section, click the relevant version number.
When you display the details for an older entity version, the system displays a message at the top of the page that a newer version exists (if the latest version has not been published), or that a newer version has been published.
When there are multiple versions of an entity with a published status, the newest is the version published on the storefront.