![]() |
Extra Fields displayed in the Product Details pages (solved)
The product details page shows the Extra Field labels even when there is no data in the field. How can I nix the display of the Extra Fields on the product details page if there is no data in the field? Can I do it in the modules/Extra_Fields/product.tpl? How?
|
|
Quote:
Hmmm, that looks like you are just supressing the extra fields regardless of whether they have data in them. I need to supress the fields only if they contain no data. I believe someone else was asking for this as well... |
Quote:
That was me. Here is a link to my other post, maybe it will spark an idea or, dare I say it, a solution. http://forum.x-cart.com/viewtopic.php?t=3147 |
Suppress Extra Fields if they contain no data - Solution
Problem was resolved here: http://forum.x-cart.com/viewtopic.php?p=13867#13867
...but here is the code anyway (modules/Extra_Fields/product.tpl): Code:
{* $Id: product.tpl,v 1.2 2002/04/23 10:38:01 mav Exp $ *} |
Ok, here's the ultimate chunky code, but it tests each extra field and won't print even a blank row if it there' nothing to print - sort of a modified version of the code above.
Code:
{* $Id: product.tpl,v 1.3 2003/04/30 10:38:01 TSC Exp $ *} |
All times are GMT -8. The time now is 10:33 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.