Close

Custom Tab Order

LesMc
11 years ago
#1844 Quote
Avatar
  • 7
I see how to arrange the tab order for custom tabs, but is there a way to re-order the default tabs too? I want my custom tabs to the left of the default tabs.
IvanStoyanov
11 years ago
#1853 Quote
Avatar
  • 269
LesMc wrote:
I see how to arrange the tab order for custom tabs, but is there a way to re-order the default tabs too? I want my custom tabs to the left of the default tabs.


Hi LesMc,

To display your custom tab on the left of the default tabs you need to open the _ProductTabs.cshtml view located in Plugins/SevenSpikes.Nop.Plugins.NopQuickTabs/Views/ProductTab.
Go to line 198 and find the following code:
 @foreach (var tab in Model.Tabs)
                {
                    divs.Add(new KeyValuePair<string, string>("tabs-" + tab.Id.ToString(), tab.Description));
                    <li><a href="#[email protected]">@tab.DisplayName</a> </li>                
                }


Cut it and paste it after the  
<ul>
ul on line 174.

NOTE: This will work only when the Enable Ajax setting for the tabs is not checked.

Ivan Stoyanov
Thank you for choosing our products! Your feedback is important to us!