Adding Options

In the first module, you created three products all having a single SKU, or Stock Keeping Unit. Often, products have multiple SKUs. For instance, a product that has different quantities. In this lesson, you’ll learn how to edit an existing product and add multiple SKUs using options.

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

  2. Click Add (Add) and enter the following information:

    Name: Lens Type

    Option Field Type: Select from List

    Create a new option for quantity.

  3. Click Submit.

  4. Select the created option.

  5. Enable all three toggles: Use in Faceted Navigation, Required, SKU Contributor.

  6. In the Values section, click Add (Add).

  7. Enter name as Single Vision and position as 0.

  8. Click Submit.

  9. Repeat the same for two more values: Progressive with position 1 and Bifocal with position 2.

    Enter selectable values for the option.

  10. Click Save.

This creates an option template called Lens Type that you can add to multiple products. You can also create options directly from the product configuration page. Repeat the steps for another option, Lens Coating, with the following values:

  • Blue Light Filter
  • Blue Light Filter + UV Protection

Adding Options to a Product

When adding an SKU-contributing option to a product, it renders the existing SKU inactive. After adding the option to a product, you can generate all SKU combinations based on the available options. Since you’ve created two options, one with three values and one with two values, it adds six SKUs for a single product.

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

  2. Select Maliyah.

  3. Go to the SKUs tab and delete the CLA-FR-EYE-001 sku.

  4. Go to the Options tab and search for Lens Type.

  5. Click Select. Repeat the same for lens coating.

  6. Click Save.

  7. Go to the SKUs tab and click Add (Add).

  8. Select Generate All SKU Combinations.

    Select the option to generate all SKU combinations based on the added options.

  9. Click on each SKU option and change the name as follows:

    SKUName
    SINGLE VISIONBLUE LIGHT FILTERCLA-EYE-FR-0001A
    SINGLE VISIONBLUE LIGHT FILTER + UV PROTECTIONCLA-EYE-FR-0001B
    BIFOCALBLUE LIGHT FILTERCLA-EYE-FR-0001C
    BIFOCALBLUE LIGHT FILTER + UV PROTECTIONCLA-EYE-FR-0001D
    PROGRESSIVEBLUE LIGHT FILTERCLA-EYE-FR-0001E
    PROGRESSIVEBLUE LIGHT FILTER + UV PROTECTIONCLA-EYE-FR-0001F

    Enter new names for all the created SKUs.

  10. Repeat the above steps for the other two products with the following information.

    ProductSKUs
    FleuretteCLA-EYE-FR-0002A, CLA-EYE-FR-0002B, CLA-EYE-FR-0002C, CLA-EYE-FR-0002D, CLA-EYE-FR-0002E, CLA-EYE-FR-0002F
    LateefahCLA-EYE-FR-0003A, CLA-EYE-FR-0003B, CLA-EYE-FR-0003C, CLA-EYE-FR-0003D, CLA-EYE-FR-0003E, CLA-EYE-FR-0003F
  11. Click Publish.

This creates six SKUs each for the three products in the catalog giving a total of 18 SKUs. In the next exercise, you’ll add product images for each of the created products.

Next: Adding Media

Capabilities

Product

Contact Us

Connect

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