HomeHome Product Discus... Product Discus...SmithCartSmithCartDefault tab on Product Details - 4.0?Default tab on Product Details - 4.0?
Previous
 
Next
New Post
2/1/2011 1:42 PM
 

Prior to 4.0, you could specify the "Default" tab to show with the product details. How would I do that in 4.0? I want the Related Products to show (tab6) by default, if there are related products.

 
New Post
2/1/2011 9:30 PM
 

Hey Greg,

You can make a tab the default by editing ProductDetails.ascx on lines 98-101 change the following code:


//When page loads...

$(".tab_content").hide(); //Hide all content

$("ul.tabs li:first").addClass("active").show(); //Activate first tab

$(".tab_content:first").show(); //Show first tab content


to this, change the highlighted 3 to whichever tab you want to display as default, make sure to change both 3's.


//When page loads...

$(".tab_content").hide(); //Hide all content

$("ul.tabs li:nth-child(3)").addClass("active").show(); //Activate second tab

$(".tab_content:nth-child(3)").show(); //Show second tab content


Christian

 
New Post
2/2/2011 6:45 AM
 

Thanks, Christian. I also copied this into a "How-To" post.

--Greg

 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartDefault tab on Product Details - 4.0?Default tab on Product Details - 4.0?