Creating SKUs for Product Variants

With Liferay Commerce, you can add multiple SKUs to a Product to represent Product variants. To do this, the Product must have at least one Option with SKU Contributor enabled. You can then manually or automatically create multiple active SKUs for a Product using the Option’s defined values. Once created, each SKU represents a purchasable version of the Product that’s displayed in the Product Details widget.

Product variants are displayed in the Product Details widget.

note

Without Product Options, only one SKU can be active for a Product at a time.

tip

It’s highly recommended that Product Option values are finalized before using them to create SKUs. See Using Product Options for more information.

Automatically Generating Multiple SKUs

Follow these steps to generate and activate multiple SKUs for a Product:

  1. Open the Global Menu (Global Menu), click on the Commerce tab, and go to Products.

  2. Click on a Product that has at least one Option with SKU Contributor enabled, and go to the SKUs tab.

  3. Click the Add button (Add Button), and select Generate All SKU Combinations.

    Select Generate All SKU Combinations.

    SKUs are automatically generated for each Option value. These SKUs use the value’s name and are created without Base Price or inventory. To configure an SKU, click its Actions button (Actions Button), and select Edit. See SKU Fields Reference for more information.

    Edit the generated SKUs.

  4. When finished, click on Publish.

important

Each product in the inventory must be associated to at least one SKU.

Manually Adding an SKU to a Product

Follow these steps to manually create a Product SKU for individual Option values:

important

While SKU Contributor is enabled, each manually created SKU must be mapped to an Option value.

  1. Open the Global Menu (Global Menu), click on the Commerce tab, and go to Products.

  2. Click on a Product that has at least one Option with SKU Contributor enabled, and go to the SKUs tab.

  3. Click the Add button (Add Button), and select Add SKU.

    Select Add SKU.

  4. Configure the SKU fields. See SKU Fields Reference for more information.

    Configure the SKU.

  5. When finished, click on Publish.

Adding SKU Inventory

If Allow Back Orders is enabled for the product, all published SKUs with a set base price are available to Customers immediately for purchase in the Product Details widget. However, if Allow Back Orders is disabled, you must first add inventory to the SKUs to make them available for purchase. See Inventory Management for more information.

Add inventory for each Product SKU.

note

If all SKU inventory is 0 and Allow Back Orders is disabled, then none of the Product variants are listed in the Product Details widget. However, if only one SKU reaches 0, then all variants are listed.

If Allow Back Orders is enabled, then all Options are listed in the Product Details widget, regardless of inventory.

SKU Fields Reference

Details

FieldDescription
SKU (Required)Enter an SKU for the Product variant
[Option Field] (Required)Used to map the SKU to an Option value when SKU Contributor is enabled
PurchaseableDetermines whether the SKU can be purchased
Global Trade Item NumberSets a GTIN for the SKU
Manufacturer Part NumberSets an MPN for the SKU
UNSPSCSets a United Nations Standard Products and Services Code for the SKU

Pricing

FieldDescription
Base PriceSets a Base Price entry for the SKU
Promotion PriceSets a promotion price for the SKU’s Base Price entry
CostSets the SKU cost used for net calculations
note

Prior to Liferay DXP 7.4 U42/GA42, Promotion Price was called Sale Price.

Shipping Override

These fields override Product-level specifications for individual SKUs and are used for shipping.

FieldDescription
WidthOverrides Product width
HeightOverrides Product height
DepthOverrides Product depth
WeightOverrides Product weight

Schedule

FieldDescription
PublishedMakes the SKU visible and available for purchase
Display DateDetermines when the SKU is first displayed in Site for purchase.
Expiration DateDetermines when the SKU is no longer available for purchase
Never ExpireDetermines whether the SKU can be scheduled to automatically expire

Capabilities

Product

Contact Us

Connect

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