Issue
- The Related Assets section in web content editor screen does not show Commerce Products despite following the steps in Enabling Commerce Products as Related Assets documentation
Environment
- DXP 7.4
Resolution
- The following instructions contain additional steps not explicitly stated in the article that may help configure so that Commerce Products properly show in the Related Assets section:
-
Configure the Asset Browser to Search the Database¶
-
Navigate to
[LiferayHome]\osgi\marketplace\.
(For more information aboutLiferayHomefolder, see Liferay Home.) -
Find the
LiferayWebExperience-LiferayAsset-Impl.lpkgthen open it with an archive manager. - Extract
com.liferay.asset.browser.web-2.0.19.jarfrom theLiferay Web Experience - Liferay Asset - Impl.lpkg - Modify the portlet.properties file within
com.liferay.asset.browser.web-2.0.19.jarto setsearch.with.database=true - Rename
com.liferay.asset.browser.web-2.0.19.jartocom.liferay.asset.browser.web.jar - Copy modified
com.liferay.asset.browser.web.jartoosgi/marketplace/overridefolder -
In the archive manager window, open the
com.liferay.asset.browser.web.jar. -
Using a text editor, open the
portlet.propertiesfile. -
Set
search.with.database=trueand update the jar. -
Restart the application server.
-