Hide the priceHide the pricehttps://liferay.dev/c/message_boards/find_thread?p_l_id=119785333&threadId=1214129352024-03-29T14:38:17Z2024-03-29T14:38:17ZRE: RE: Hide the priceGennaro Lippiellohttps://liferay.dev/c/message_boards/find_message?p_l_id=119785333&messageId=1214154182022-05-05T07:30:19Z2022-05-05T07:30:18Z<p>Thanks for all information. I started to watch that issue, if you get
more info about it then let me know</p>Gennaro Lippiello2022-05-05T07:30:18ZRE: RE: Hide the priceJeffrey Handahttps://liferay.dev/c/message_boards/find_message?p_l_id=119785333&messageId=1214150442022-05-04T18:27:30Z2022-05-04T18:27:29Z<p>Hi Gennaro, </p>
<p>I am trying to find out if the work being done on <a
href="https://issues.liferay.com/browse/COMMERCE-5603">COMMERCE-5603</a> will
support your use case. If not, I think this would be a great
candidate for a Feature Request. If you do not have access to create
Jira issues, let me know and I can create the issue for you. </p>
<p>Also, I wanted to be sure that you were aware that if you implement
your commerce search result template as an OSGi module that implents
the CPContentListRenderer (e.g.
https://github.com/jhanda/plan-renderer) you can create a single
renderer that can be used by Product Publisher and Commerce Search
Results widgets. (It could even be used by the Product Comparison
Table widget too). You would just need to be sure to include the
"commerce.product.content.list.renderer.portlet.name="
property in your Component annotation as seen here: https://github.com/jhanda/plan-renderer/blob/main/src/main/java/com/liferay/commerce/demo/plan/renderer/list/PlanCPContentListRenderer.java#L35-L37</p>
<p> </p>Jeffrey Handa2022-05-04T18:27:29ZRE: RE: Hide the priceGennaro Lippiellohttps://liferay.dev/c/message_boards/find_message?p_l_id=119785333&messageId=1214132372022-05-02T14:58:52Z2022-05-02T14:58:51Z<p>Hello Jeffrey</p>
<ol>
<li>I don't want to hide the products completely, so I exclude point one.</li>
<li>I have public pages, option 2 doesn't fit too </li>
<li>I implemented already a custom commerce search result template,
and with it I'm able to hide the price to not logged users. But I
should hide the price also in product publisher widget and in the
product page. So before to implement other custom solutions I was
wondering if there was a fast solution, like a system setting.</li></ol>Gennaro Lippiello2022-05-02T14:58:51ZRE: Hide the priceJeffrey Handahttps://liferay.dev/c/message_boards/find_message?p_l_id=119785333&messageId=1214132732022-05-02T14:22:55Z2022-05-02T14:22:54Z<p>Hi Gennaro, there are a few options that come to mind. </p>
<ol>
<li>If you want to hide the products completely, you can adjust the <a
href="https://learn.liferay.com/commerce/latest/en/product-management/creating-and-managing-products/products/configuring-product-visibility-using-account-groups.html">Product
Visiblity for that Account Group</a> and have some logic (possibly
in a model listener) that moves inactive accounts into a specific
Account Group. </li>
<li>If the Channel (Site) is built with a private pages, you could
remove access to those pages if the Account is inactive. This would
probably require a model listener on the Account object. </li>
<li>You could implement some logic in a product renderer that hides
prices on those products (e.g. <a
href="https://github.com/jhanda/member-pricing-renderer">Member
Pricing Renderer</a> is an example of hiding for guests, you could
do something similar that also checks for Account status).</li></ol>
<p>The first approach would cover the UI and the headless APIs, the 2nd
and 3rd would only cover the UI. </p>Jeffrey Handa2022-05-02T14:22:54ZHide the priceGennaro Lippiellohttps://liferay.dev/c/message_boards/find_message?p_l_id=119785333&messageId=1214129342022-05-02T10:39:12Z2022-05-02T08:39:57Z<p>Hello, is there a way to hide products price for all users which are
in an ina