How to modify ADT of Product Detail pageHow to modify ADT of Product Detail pagehttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1116927082024-03-28T17:17:01Z2024-03-28T17:17:01ZRE: How to modify ADT of Product Detail pageAdel HELLALhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1117360612018-12-05T08:23:09Z2018-12-05T08:23:09Z<p>Thank you Alessio !</p>
<p> </p>
<p>Adel</p>Adel HELLAL2018-12-05T08:23:09ZRE: How to modify ADT of Product Detail pageAlessio Rendinahttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1117274472018-12-04T11:08:08Z2018-12-04T11:08:08Z<p>Hi Adel and Dhaval,</p>
<p> </p>
<p>The bug related to the grouped products is already been solved and it
is available in the commerce repo (<a href="https://github.com/liferay/com-liferay-commerce">HERE</a>).</p>
<p> </p>
<p>Alessio</p>Alessio Rendina2018-12-04T11:08:08ZRE: How to modify ADT of Product Detail pageAdel HELLALhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1117247102018-12-04T09:14:38Z2018-12-04T09:14:38Z<p>
<br /> Hello,</p>
<p>I already saw this bug in the products grouped.</p>
<p>unfortunately I did not solve it.</p>
<p>Do not hesitate to share it if you can solve it.</p>Adel HELLAL2018-12-04T09:14:38ZRE: How to modify ADT of Product Detail pagePrakash Rathodhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1117157602018-12-02T13:05:38Z2018-12-02T13:05:38Z<p>Thank you so much Adel. Your advice worked for me.</p>
<p>One more thing, I want to display related products on product detail
page but it seems 'Product Relation' functionality is not working. I
have already attached screenshot in my above post.<br /> Do you
have any idea how to display related product on product detail page ?
Is there any other way ?</p>
<p>Thank you in advance for your help !</p>Prakash Rathod2018-12-02T13:05:38ZRE: How to modify ADT of Product Detail pageAdel HELLALhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1117116702018-11-30T13:17:41Z2018-11-30T13:17:41Z<p>
<br /> Hello,</p>
<p>I advise you to use jsp. you can create your own view with the
CPContentRenderer servce.</p>
<p>it's more flexible.</p>
<p>here is the code that can help you:</p>
<p>
<a href="https://github.com/liferay/com-liferay-commerce/blob/1.0.1/commerce-initializer-breccia/src/main/resources/META-INF/resources/render/view.jsp">https://github.com/liferay/com-liferay-commerce/blob/1.0.1/commerce-initializer-breccia/src/main/resources/META-INF/resources/render/view.jsp</a></p>
<p>
<a href="https://github.com/liferay/com-liferay-commerce/blob/1.0.1/commerce-initializer-breccia/src/main/java/com/liferay/commerce/initializer/breccia/internal/product/renderer/BrecciaCPContentRenderer.java">https://github.com/liferay/com-liferay-commerce/blob/1.0.1/commerce-initializer-breccia/src/main/java/com/liferay/commerce/initializer/breccia/internal/product/renderer/BrecciaCPContentRenderer.java</a></p>
<p> </p>
<p>Good luck</p>Adel HELLAL2018-11-30T13:17:41ZRE: How to modify ADT of Product Detail pagePrakash Rathodhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1117112942018-11-30T12:52:58Z2018-11-30T12:52:58Z<p>Hi Alessandro, </p>
<p> </p>
<p>Are we able to add & display related products ? I get following
message while adding related products to existing product. </p>
<p> </p>
<p>
<span style="color: inherit;font-family: inherit;font-size: 14.0px;">
<img src="/documents/14/110203810/ecommerce.png/2729edd0-c093-165b-beff-7789f2f2b321?t=1543582351697" /></span></p>
<p> </p>
<p>Thank you !!!</p>Prakash Rathod2018-11-30T12:52:58ZRE: How to modify ADT of Product Detail pagePrakash Rathodhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1117033062018-11-30T05:59:29Z2018-11-30T05:59:29Z<blockquote>
<div class="quote-title">Harsh Soni:</div>
<div class="quote">
<div class="quote-content">Can you please share the ADT?</div></div></blockquote>
<p>
<br />
<br /> https://github.com/liferay/com-liferay-commerce/blob/7.1.x/commerce-theme-breccia/src/commerce-adts/commerce-product-detail/BRECCIA_COMMERCE_PRODUCT_DETAIL.ftl</p>
<p> </p>
<p>However, it is not updated with latest code. Team will update it.</p>Prakash Rathod2018-11-30T05:59:29ZRE: How to modify ADT of Product Detail pageHarsh Sonihttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1117000062018-11-29T14:18:52Z2018-11-29T14:18:52Z<blockquote>
<div class="quote-title">Dhaval Patel:</div>
<div class="quote">
<div class="quote-content">
<p>Hi Friends,</p>
<p> </p>
<p>I need to update look and feel of product detail page and for
that I need to update existing ADT and apply it on product
detail page from configuration section.</p>
<p>I added following ADT,</p>
<p>${commerce_source}\com-liferay-commerce-7.1.x\commerce-theme-breccia\src\commerce-adts\commerce-product-detail\BRECCIA_COMMERCE_PRODUCT_DETAIL.ftl</p>
<p> </p>
<p>but after adding code from given ADT and applying on page, I
get following error,</p>
<p> </p>
<pre>
The following has evaluated to null or missing:
==> simpleCPTypeDisplayContext [in template "20099#20135#46605" at line 2, column 24]
----
Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----
----
FTL stack trace ("~" means nesting-related):
- Failed at: cpDefinition = simpleCPTypeDisplayCon... [in template "20099#20135#46605" at line 2, column 9]
- Reached through: #assign-container [in template "20099#20135#46605" at line 1, column 1]
----</pre>
<p> </p>
<p>Please can you tell me what is correct way to customize any
page ? specially Product detail page.</p>
<p>Please let me know the steps for it.</p>
<p> </p>
<p>Thank you in advance !!!</p></div></div></blockquote>
Can you please share the ADT?<br />
<br />
Harsh Soni2018-11-29T14:18:52ZRE: How to modify ADT of Product Detail pageAlessandro Iovanehttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1116975532018-11-29T09:19:16Z2018-11-29T09:19:16Z<p>Hi Dhaval,</p>
<p>the steps you executed are correct, being possible to create custom
ADTs. So you should not get any errors but in this particular case the
breccia ADT you used turns out being unusable because it needs to be updated.</p>
<p> </p>
<p>Thanks for pointing this out and please follow <a
href="https://issues.liferay.com/browse/EMP-6">this</a> ticket to be
updated on this issue.</p>Alessandro Iovane2018-11-29T09:19:16ZRE: How to modify ADT of Product Detail pagePrakash Rathodhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1116952172018-11-29T05:34:46Z2018-11-29T05:34:46Z<p>Any help will be really appreciable !!!</p>
<p>You can suggest also if steps are incorrect !!</p>Prakash Rathod2018-11-29T05:34:46ZHow to modify ADT of Product Detail pagePrakash Rathodhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1116927072018-11-28T17:34:18Z2018-11-28T17:34:18Z<p>Hi Friends,</p>
<p> </p>
<p>I need to update look and feel of product detail page and for that I
need to update existing ADT and apply it on product detail page from
configuration section.</p>
<p>I added following ADT,</p>
<p>${commerce_source}\com-liferay-commerce-7.1.x\commerce-theme-breccia\src\commerce-adts\commerce-product-detail\BRECCIA_COMMERCE_PRODUCT_DETAIL.ftl</p>
<p> </p>
<p>but after adding code from given ADT and applying on page, I get
following error,</p>
<p> </p>
<pre>
The following has evaluated to null or missing:
==> simpleCPTypeDisplayContext [in template "20099#20135#46605" at line 2, column 24]
----
Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use pa