logo
logo

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:

  1. Enable variants on the entity definition
  2. Add a Create product variant operation
  3. Create a Detach Product variant copy profile
  4. Create a Detach Product variant operation
  5. Create a View variants operation

Enable variants on the entity definition

In the M.PCM.Product entity definition detail page:

  1. Click Actions , and then click Enable/Disable.
  2. In the Enable/Disable dialog box, turn on the Variants switch .
  3. 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:

  1. Open the Entity operation component.
  2. Click Add operation.
  3. Select Create variant and link the Variants copy profile.
  4. Configure the fields.
  5. Click Save:

Create a Detach product variant copy profile

  1. On the menu bar, click Manage , and then click Copy profiles:
  2. On the Copy profiles page, click + copy profile.
  3. Enter the Name: Detach Product variant.
  4. Enter the Definition: M.PCM.Product.
  5. Click Save:
  6. 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:

  1. Open the Entity operation component.
  2. Click Add operation.
  3. Select Overwrite values and link the Detach Product variant copy profile.
  4. Click Save:

Create a View variants operation

In the M.PCM.Product entity definition detail page:

  1. Open the Entity operation component.
  2. Click Add operation.
  3. Select View detail page and link the M.PCM.Product.variants page.
  4. 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