Hi - anyone know how to move the Specification Tab before the Description Tab in the product view in the default template 2.3.0.2. Lots of spec my products and this would be better.
So it would show Specification/Description/Review
instead of Description/Specification/Review.
Appreciate any help.
Thanks.
catalog/view/theme/YOUR_THEME/template/product/product.tpl and find
And change it to
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><a href="#tab-specification" data-toggle="tab"><?php echo $tab_attribute; ?></a></li>
<?php } ?>
<li class="active"><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>
Thanks cyclops. You are the man. This worked. The Specification tab is now first. The only thing is that it still "lands" on the description when you load the product page. I would like it to set on the specification tab instead. How would I do that?
Thanks again for your help. Im nearly there with the upgrade. If you are ever in Dublin let me know, Ill owe ya a few pints!
Thanks again for your help. Im nearly there with the upgrade. If you are ever in Dublin let me know, Ill owe ya a few pints!
You just need to change the "active li"
So it would now be
And if i pop over to dublin in the near future i'll take you up on your offer of a few pints of the black stuff
So it would now be
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>
Hi i try the same thing and clear cache but still the same thing. When i click on tab od "specifications" first showing me description text but when i click again to second and back to specifications button then show correct info. What seems to be a problem ? Using latest version. Thank you
What exact version are you using ?Peter55 wrote: ↑Tue Dec 12, 2017 1:13 amHi i try the same thing and clear cache but still the same thing. When i click on tab od "specifications" first showing me description text but when i click again to second and back to specifications button then show correct info. What seems to be a problem ? Using latest version. Thank you
i was wondering the same thing. i got the specs tab as the default tab that shows on page load. but then the page loads the specs tab is blank. but if i click on description then on specs tab. content will show. im using v. 3.0.2.0.
thank you
thank you
You will need to change which tab content is active, but i have just had a look and its best to incorporate it into the IF statement otherwise if you set the Specification Tab to Active then it will not show the Description content if no specs are assigned to the product.
You could try this vqmod
You could try this vqmod
Last edited by cyclops12 on Sat Feb 03, 2018 6:00 pm, edited 1 time in total.
i tried this xml. and the specs tab shows as default. but its still blank unless i click desc. them specs again.
anything ideas
anything ideas
Who is online
Users browsing this forum: No registered users and 143 guests