Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: How to modify soy file
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
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 !
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

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 !
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
Regards,
Jeff
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™