Reneetje:
@mc12345678
Thank you! The description now is OPEN! The details tab always shows...is there a way of completely hiding this box if there is no info.
I changed the code you mentioned above but tha t visually didn't change anything....
The thing is that the box won't be displayed if all of the conditions to display content are not met, therefore assuming that other things like the cache has been cleared from the browser, then there is "something" that is true about that one product causing something to be fed for display. I also just realized that it is possible that some will look at the directions I provided and modify too much of their code. Basically the first set of code does a check of what will be displayed, if nothing would be displayed then don't show that object. If something would be expected to be displayed, then carry forward. An additional admin switch could be incorporated with a few different options/types of message, but how manymore settings does one want in the admin panel. (Ie, never show details, always show details as is in package, or as is above show details when they are available to show.) I am not sure at moment how best to proceed troubleshooting your issue. Whether to take it to a new thread and report back here, or try to carry on here.
Now I didn't make this statement when I posted the above code. I don't think that Anne needs to defend her code and choice of how the data is presented. This template is sleek and compact. There are plenty of opportunities leading you to the product page for the description to be shown if desired. Also I believe that if the above code is incorporated in the original code for this template rather than an add on feature that there would be more questioning about how to make it appear, or why it's different than the demo site. For some, having the detail tab appear on some pages and not others is considered a no-no, for others, having it appear and have no content, etc... One argument would be why not populate each product with the data to display on the details page? I don't need an answer to that question, but it should be considered. It is also why I made it a conditional non-display, some products have that info some don't, never know in the future when such would be added, and don't want to have to figure out why the data isn't being displayed at all.
Okay, sorry just don't want anyone to think that there is something wrong with the templaate related to the above. It's perfectly fine for the general use in functionality and I think a sharp, sleek looking design graphically.