Documentation

Managing Product Publication

Liferay Commerce offers two different ways for store managers to manage the publication status of their products by either expiring or unpublishing a product.

When a product is expired, there is a set expiration date in the future so that a product is no longer available for sale after that date. The product is placed in an Expired status and is not visible in search results for the store. A store manager can configure the expiration process for the entire product (all SKUs) or for just one particular SKU.

Unpublishing a product sets the product to a Draft status and removes the product from search results. Unpublishing a product can be configured to happen automatically if the product’s inventory falls below a minimum threshold; for more information, see the article on Low Stock Action.

Scheduling Product’s Expiration

To schedule product expiration:

  1. Go to the Global Applications menu → CommerceProducts.

  2. Click on a product (for example, U-Joint).

  3. Uncheck the Never Expire checkbox on the Products Details tab. In this example, this configuration will affect all SKUs.

  4. Enter an expiration date and time in the future. All times are set using the GMT time zone.

    Setting a Product's Expiration Date

  5. Click Publish.

Once the changes are made, it may take some time for the product to be removed from the Catalog page because of the check interval. By default, the check interval is set to 15 minutes. After the expiration date, the product will be not returned when searching on the Catalog page. In the search container, the product status is shown as Expired.

Expired Status

The product can be made visible again by entering a new expiration date and republishing the product.

Unpublishing a Product

  1. Navigate to Control PanelCommerceProducts.

  2. Click on a product (for example, U-Joint).

    Expand the Schedule section if necessary.

  3. Uncheck the Published checkbox.

    Unchecked Published box

  4. Click Save as Draft.

  5. Navigate to the store site.

  6. Search for the product (U-Joint in this example).

Unpublished U-Joint

The product is not searchable in the catalog. In the Control Panel, the product’s status is set to Draft.

Unpublished U-Joint

Commerce 2.1 and Below

Settings in Commerce 2.1 and below are found in the Control Panel.

Scheduling Product’s Expiration

To schedule product expiration:

  1. Navigate to Control PanelCommerceProducts.

  2. Click on a product (for example, U-Joint).

  3. Uncheck the Never Expire checkbox on the Products Details tab. In this example, this configuration will affect all SKUs.

  4. Enter an expiration date and time in the future. All times are set using the GMT time zone.

    Setting a Product's Expiration Date

  5. Click Publish.

Once the changes are made, it may take some time for the product to be removed from the Catalog page because of the check interval. By default, the check interval is set to 15 minutes. After the expiration date, the product will be not returned when searching on the Catalog page. In the search container, the product status is shown as Expired.

Expired Status

The product can be made visible again by entering a new expiration date and republishing the product.

Unpublishing a Product

  1. Navigate to Control PanelCommerceProducts.

  2. Click on a product (for example, U-Joint).

    Expand the Schedule section if necessary.

  3. Uncheck the Published checkbox.

    Unchecked Published box

  4. Click Save as Draft.

  5. Navigate to the store site.

  6. Search for the product (U-Joint in this example).

Unpublished U-Joint

The product is not searchable in the catalog. In the Control Panel, the product’s status is set to Draft.

Unpublished U-Joint

Additional Information