oo

Managing Product Status

When editing products, you can schedule them to expire or unpublish them manually to remove them from your store catalog.

Setting Product Expiration Dates

Set expiration dates for products or individual SKUs. While expired, the product SKUs are removed from your store catalog and are no longer available for purchase or visible in search results.

note

Setting an expiration date at the product level applies it to all of the product’s SKUs.

Follow these steps:

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

  2. Click a product.

  3. Under Schedule, uncheck Never Expire. This configuration affects all of the product’s SKUs.

  4. Enter an expiration date and time.

    Set the product's expiration date.

    tip

    Expiration dates and times are based on the Liferay instance’s time zone. To view or change the time zone, open the Global Menu (Global Menu) and go to Control PanelInstance Settings. Then, navigate to LocalizationTime Zone.

  5. Click Publish.

Once a product reaches its expiration date and time, it remains active until Liferay’s next check interval. The default interval is 15 minutes, but you can configure this via system settings. Open the Global Menu (Global Menu) and navigate to Control PanelSystem Settings. Once there, navigate to CatalogProducts. Change the Check Interval value and click Save.

warning

If you require this feature to be disabled, blacklist the component. Do not enter zero or a negative number for the interval.

After expiring, the product’s SKUs no longer appear in the store’s catalog and cannot be purchased. To learn how to set expiration dates for individual SKUs along with replacements, see Replacement Products.

The product has a status of Expired after passing the expiration date.

You can change the product visibility by entering a new expiration date and republishing the product.

Setting a Product as Draft

If desired, you can unpublish a product manually to set its status to draft. While a draft, the product’s SKUs no longer appear in the store’s catalog and cannot be purchased. This is useful when you want to edit a product without making your changes immediately available to end users. You can also unpublish products based on inventory levels using a low stock action. See Low Stock Action for more information .

Follow these steps to manually unpublish a product:

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

  2. Click a product.

  3. Click the Actions button (Actions Button) next to the Publish button and select Convert to Draft.

    Select Save as Draft to convert the product into draft status.

  4. Click OK to confirm.

This removes the product from your store’s catalog page so customers cannot view, purchase, or search for it.

The product has a status of Draft after converting it.

If you have an approval workflow in place to publish products, you must go through it to publish the product again. If you want to remove the product from the storefront and publish it back again without going through the approval workflow, you can uncheck the Published checkbox and click Publish.

Unchecking the published checkbox to remove the product from the storefront.

Commerce 2.1 and Below

Setting a Product as Expired

To expire a product,

  1. Navigate to Control PanelCommerceProducts.

  2. Click on a product.

  3. Uncheck the Never Expire checkbox on the Products Details tab. This configuration affects all the SKUs of the product.

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

    Set the Product's Expiration Date.

  5. Click Publish.

After making the changes, it may take some time to remove the product from the catalog, because the default check interval is 15 minutes. You change this by opening the Global Menu (Global Menu) and navigating to Control PanelSystem Settings. Once there, go to CatalogProducts. Change the Check Interval value and click Save.

The product has a status of Expired after passing the expiration date.

You can change the product visibility by entering a new expiration date and republishing the product.

Setting a Product as Draft

  1. Navigate to Control PanelCommerceProducts.

  2. Click a product.

  3. Click on Save as Draft.

You cannot search for the product or view it in the storefront after setting it to the draft status.

The product has a status of Draft after converting it.

If you have an approval workflow in place to publish products, you must go through it to publish the product again. If you want to remove the product from the storefront and publish it back again without going through the approval workflow, you can uncheck the Published checkbox and click Publish.

Unchecking the published checkbox to remove the product from the storefront.

Capability: