Re: Product Tabs Display
Ok I understand what you want, here's is how I would tackle this issue.
In the product-tabs.tpl you created the new tab called specification, this will be just pseudo code:
1) First check loop through all extra fields for a value.
For each field in extra fields table, check if there is a value (if value ne '')
2) A new boolean variable that will decide to create the tab or not
If value ne '' then showtab (variable - boolean) = False
3) Show tab or not
If showtab = True, use the code to make the tab
Summary:
So basically you will loop through all extra fields and if even one field has a value, this will trigger the showtab variable to equal True. When showtab is equal to true then only the Specifications tab will be shown.
I would set the showtab variable to False before going through the loop and it should only turn to True if an extra field value is not equal to nothing.
I hope this helps, if you need further assistance I can try and code this myself.
|