Hello, i`m using OpenCart 2.1.0.1.
I have a question, how can i set the website to automatically move to specification tab if no description for a product is entered?
I don`t want my clients to enter a product page and see the description tab but with no words after it, i want to automatically enter the product page and appears the specifications tab BUT ONLY if description misses.
This can be done by changing the code in product.tpl
Change this code:
you have to change it for this:
Change this code:
Code: Select all
<ul class="nav nav-tabs">
<li class="active"><a href="#tab-description" data-toggle="tab"><?php echo $tab_description; ?></a></li>
<?php if ($attribute_groups) { ?>
<li><a href="#tab-specification" data-toggle="tab"><?php echo $tab_attribute; ?></a></li>
<?php } ?>
<?php if ($review_status) { ?>
<li><a href="#tab-review" data-toggle="tab"><?php echo $tab_review; ?></a></li>
<?php } ?>
</ul>
Code: Select all
<ul class="nav nav-tabs">
<?php if ($attribute_groups) { ?>
<li class="active"><a href="#tab-specification" data-toggle="tab"><?php echo $tab_attribute; ?></a></li>
<?php } ?>
<li><a href="#tab-description" data-toggle="tab"><?php echo $tab_description; ?></a></li>
<?php if ($review_status) { ?>
<li><a href="#tab-review" data-toggle="tab"><?php echo $tab_review; ?></a></li>
<?php } ?>
</ul>
Who is online
Users browsing this forum: Semrush [Bot] and 102 guests