Product page - Features tab is not set active when description is empty
Posted by:
skaloudis
Mar 14, 2016 at 08:24 (9 year ago)
Hi,
I found an error in product.tpl template.
When a product has no description but has some features set, then the product features tab is not set as active although it is the only one being displayed.
The following code is the one you have in the template:
if !isset($product->description)}class="active"{/if}
but variable $product->description is set even if it is empty so the condition will never be set as true.
Please check this and reply with the appropriate code patch.
Thanks
I found an error in product.tpl template.
When a product has no description but has some features set, then the product features tab is not set as active although it is the only one being displayed.
The following code is the one you have in the template:
if !isset($product->description)}class="active"{/if}
but variable $product->description is set even if it is empty so the condition will never be set as true.
Please check this and reply with the appropriate code patch.
Thanks