- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2019
04:01 AM
08-23-2019
04:01 AM
How to hide tab in product detailed page when there is no data?
How to hide tab in product detailed page when there is no data
For Example i had ProductA and ProductB
ProductA has warranty so warranty tab has to display
ProductB has No warranty so warranty tab should not be displayed.
Labels:
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2019
06:43 AM
08-23-2019
06:43 AM
Re: How to hide tab in product detailed page when there is no data?
Hi @sekhar_n ,
Try the below solution.
https://magento.stackexchange.com/a/206615
I hope it will help you.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2019
06:57 AM
08-23-2019
06:57 AM
Re: How to hide tab in product detailed page when there is no data?
Vimal I went to below link and finally they mention like
Add your html code in "if" condition, if html data found in tab content then tab will be display on the product page.
What is this meaning ?
Add your html code in "if" condition, if html data found in tab content then tab will be display on the product page.
What is this meaning ?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2019
07:10 AM
08-23-2019
07:10 AM
Re: How to hide tab in product detailed page when there is no data?
H @sekhar_n ,
It means you need to add if condition in the phtml file where it is rendering.
You can check phtml file after enable template hints for theh frontend.
https://docs.magento.com/m2/ce/user_guide/system/template-path-hints.html