Enabling Commerce Products as Related Assets

You can connect products to other assets in Liferay by using the related assets relationship.

Note

Liferay DXP 7.4+ does not support products as related assets.

Configure the Asset Browser to Search the Database

  1. Navigate to [Liferay Home]\osgi\marketplace\. For more information about Liferay Home folder, see Liferay Home.

  2. Find the Liferay Web Experience - Liferay Asset - Impl.lpkg then open it with an archive manager.

  3. In the archive manager window, open the com.liferay.asset.browser.web.jar.

  4. Using a text editor, open the portlet.properties file.

  5. Set search.with.database=true and update the jar.

  6. Restart the application server.

Note

Performing a search reindex may be necessary for products to appear as a related asset option when editing content.

Execute a Reindex

Execute a reindex to populate the related assets in the filter.

  1. Open the Global Menu (Applications Menu icon) and navigate to Control PanelSearch.

  2. Click Reindex next to All Search Indexes.

Verify the Availability of Products

Products are available on all Liferay sites by default, so you must change the Filter to Global.

  1. Open the Site Menu (Site Menu) and go to ContentWeb Content.

  2. Click (Add icon) icon → Basic Web Content.

  3. Scroll down to the Related Assets section.

  4. Click Select.

  5. Click Commerce Product.

    Select Commerce Product in the Related Assets section.

  6. Click Filter and Order then Global.

    Select the Global filter to view Commerce products.

  7. Click the product.

Products are now available as related assets.

Capabilities

Product

Contact Us

Connect

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