Variant configuration example
This example describes how to configure a Create variant operation for the M.PCM.Product entity definition, and how to detach a variant from the original entity:
- Enable variants on the entity definition
- Add a Create product variant operation
- Create a Detach Product variant copy profile
- Create a Detach Product variant operation
- Create a View variants operation
Enable variants on the entity definition
In the M.PCM.Product entity definition detail page:
- Click Actions , and then click Enable/Disable.
- In the Enable/Disable dialog box, turn on the Variants switch .
- Click Done:
- Variant members are added to the definition:
- The Product variants page is created under Manage > Pages > Variants:
- The Create variant and Overwrite values operations are enabled for the Entity operation page components of M.PCM.Product entities:
- The Variants copy profile linked to the M.PCM.Product entity definition is generated:
Add a Create product variant operation
In the M.PCM.Product entity definition detail page:
- Open the Entity operation component.
- Click Add operation.
- Select Create variant and link the Variants copy profile.
- Configure the fields.
- Click Save:
Create a Detach product variant copy profile
- On the menu bar, click Manage , and then click Copy profiles:
- On the Copy profiles page, click + copy profile.
- Enter the Name: Detach Product variant.
- Enter the Definition: M.PCM.Product.
- Click Save:
- Edit the default-generated copy profile Configuration with the following, and then click Save:
Create a Detach product variant operation
In the M.PCM.Product entity definition detail page:
- Open the Entity operation component.
- Click Add operation.
- Select Overwrite values and link the Detach Product variant copy profile.
- Click Save:
Create a View variants operation
In the M.PCM.Product entity definition detail page:
- Open the Entity operation component.
- Click Add operation.
- Select View detail page and link the M.PCM.Product.variants page.
- Click Save:
The Create product variant, Detach Product variant, and View variants operations are now available on the detail pages of M.PCM.Product entities.
Can we improve this article ? Provide feedback