| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Extra Fields displayed in the Product Details pages (solved) | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() 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?
|
|||||||||
#2
|
|||||||||
|
|||||||||
![]() |
|||||||||
#3
|
|||||||||
|
|||||||||
![]() 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... |
|||||||||
#4
|
|||||||
|
|||||||
![]() 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
__________________
Following the signature guidelines ![]() |
|||||||
#5
|
|||||||||
|
|||||||||
![]() 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:
|
|||||||||
#6
|
|||||||
|
|||||||
![]() 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:
__________________
Following the signature guidelines ![]() |
|||||||
|
|||
X-Cart forums © 2001-2020
|