Enabling Commerce Products as Related Assets¶
Commerce Products can be connected to other assets in Liferay Commerce by using the Related Assets relationship.
Liferay DXP 7.4+ does not support Commerce Products as Related Assets.
Configure the Asset Browser to Search the Database¶
[Liferay Home]\osgi\marketplace\. For more information about
Liferay Homefolder, see Liferay Home.
Liferay Web Experience - Liferay Asset - Impl.lpkgthen open it with an archive manager.
In the archive manager window, open the
Using a text editor, open the
search.with.database=trueand update the jar.
Restart the application server.
Performing a search reindex may be necessary for Commerce Products to appear as a Related Asset option when editing content.
Execute a Reindex¶
Execute a reindex to ensure that the Related Assets are populated in the filter.
Navigate to the Control Panel → Configuration → Search.
Click Execute next to Reindex all search indexes.
Verify the Availability of Commerce Products¶
Commerce Products are available on all Liferay DXP sites by default, so you must change the Filter to Global.
Click on Site Administration → Content → Web Content.
Click the () icon then Basic Web Content.
Scroll down to the Related Assets section.
Click Commerce Product.
Click Filter and Order then Global.
Click the product.
Commerce Products are now available as Related Assets.
Not finding what you're looking for?
Pardon our dust as we revamp and transition our product documentation to this site. If something seems missing, please check Liferay Help Center documentation for Liferay DXP 7.2 and previous versions.Try Liferay's Help Center