Using Specifications with Picklists

Liferay DXP 2024.Q3+/Portal 7.4 GA125+

You can now use picklists to define specification values and link them to a specification template to use with products. There are two ways to create a picklist:

  • In the Picklists application. See Creating Picklists for more information.
  • In the Specifications application
Important

Currently, this feature is behind a release feature flag. Read Release Feature Flags for more information.

Creating a Picklist in the Specifications Application

If you already have a picklist created, see Linking a Picklist to a Specification. After creating a specification, scroll down to the Picklist section.

  1. Click Add (Add).

  2. Choose Create a New Picklist.

    Creating a new picklist from the Specifications application.

  3. Enter a name and click Save.

  4. To add values, click the created picklist and click Add (Add) in the Items section.

  5. Enter a name and click Save. The key is auto-populated.

  6. Click Save.

    Adding values to the picklist from the Specifications application.

  7. Click Save to save the specification.

The new picklist also appears in the Picklists application.

Linking a Picklist to a Specification

  1. Open the Global Menu (Global Menu) and navigate to CommerceSpecifications.

  2. Select a specification and scroll down to the Picklist section.

  3. Click Add (Add).

  4. Choose Add an Existing Picklist.

    Linking an existing picklist from the Specifications application.

  5. In the modal that appears, search for the existing picklist. It auto-completes the name as you type. Select the picklist.

  6. Click Save.

The picklist values share a bi-directional relationship between the Picklists application and the Specifications application. If you delete a picklist value from a specification, it also deletes the value in the Picklists application and vice-versa. However, removing a picklist from a specification doesn’t delete the picklist; it only removes the link between the specification and the picklist.

Linking a Specification to a Product

Now that you’ve created a specification linked to a picklist, you can associate it with a product.

  1. Open the Global Menu (Global Menu) and navigate to CommerceProducts.

  2. Choose a product and scroll down to the Specifications section.

  3. Click Add (Add).

  4. Choose Add an Existing Specification.

    Adding a specification linked to a picklist to the product.

  5. In the modal that appears, search for the existing specification. It auto-completes the name as you type. Select the specification.

  6. The value drop-down auto-populates the values of the picklist. You can choose a value and click Submit.

Choosing a picklist value for the specification.

Note

For specifications not linked to a picklist, you must enter a value as usual.

Capabilities

Product

Contact Us

Connect

Powered by Liferay
© 2024 Liferay Inc. All Rights Reserved • Privacy Policy