Timeline for How to hide the empty product-collateral tab in details page?
Current License: CC BY-SA 3.0
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 20, 2017 at 11:31 | comment | added | Indian | Why this ans is accepted? Its not working at all. | |
May 27, 2016 at 11:44 | comment | added | Ramya | I have done mapping for each value of an attribute with an image. So even when I didnt select any attribute value, a broken image is getting displayed. Do you have any idea of resolving this issue. any help will be appreciated. | |
May 27, 2016 at 11:33 | comment | added | Anil Suthar |
debug $html variable, and do add conditions accordingly
|
|
May 27, 2016 at 11:31 | comment | added | Ramya | hey it is working only for description attribute. When other attribute value is empty it is still displaying. | |
May 27, 2016 at 7:08 | history | edited | Anil Suthar | CC BY-SA 3.0 |
added 46 characters in body
|
May 27, 2016 at 7:06 | vote | accept | Ramya | ||
May 27, 2016 at 6:58 | comment | added | Anil Suthar |
use if(trim($html)=="") continue;
|
|
May 27, 2016 at 6:56 | comment | added | Ramya | yes. When No value is entered in that attribute field it should be hidden. | |
May 27, 2016 at 6:55 | comment | added | Anil Suthar | you want to hide tab, if whole description content OR HTML is empty, right ? | |
May 27, 2016 at 6:53 | comment | added | Ramya |
when I included this code <?php //ADD YOUR CONDITION HERE if($alias=="description") continue; ?> it is hiding the tab even when there is value.
|
|
May 27, 2016 at 6:42 | history | answered | Anil Suthar | CC BY-SA 3.0 |