How to modify soy file

Abhishek Mehta, modified 5 Years ago. New Member Posts: 13 Join Date: 11/7/13 Recent Posts
Hello Friends,

I need to modify 'Product Publisher' portlet of the 'Product Detail' page. Currently there are cards of Product items and we need to update UI of these Product Item cards.

I found that it's UI is here in ProductCard.soy. ProductCard.soy file is belongs to 'commerce-theme-minium-impl' module. 

I have few queries as below,

1. Am I correct that I need to update ProductCard.soy file to get change in UI of ProductCards(of Product Publisher Portlet) ?
2. If yes, then please suggest me how I will be able to update that file ? I tried to update it using fragment as we do for jsp but it was not successful attempt. Also, I didn't get any other proper way to modify soy file.
3. If no, then please suggest alternative way emoticon

I am using following version :-
- Liferay Portal CE 7.1 GA4 and Liferay Commerce 2.0.5 (Bundled with Tomcat)
- Source code is taken from here.

Thank you for your kind consideration in this regards !
thumbnail
Jeffrey Handa, modified 5 Years ago. Liferay Master Posts: 541 Join Date: 12/1/08 Recent Posts
Hi Abhishek,You can use the Minium renderer as inspiration, but for future maintainability it is recommended that you create your own product renderer.  Instructions can be found here in the Commerce Developer Guide.  https://help.liferay.com/hc/en-us/articles/360030745471-Creating-a-Custom-Product-Renderer
Regards,
Jeff