Hello,
You can add custom quick tabs but that will require some code customization. You will have to edit the
~/Plugins/SevenSpikes.Nop.Plugins.NopQuickTabs/Views/Components/ProductTabs/_ProductTabsWithoutAjax.cshtml (~/Plugins/SevenSpikes.Nop.Plugins.NopQuickTabs/YourThemeName/Views/Components/ProductTabs/_ProductTabsWithoutAjax.cshtml, where
YourThemeName is your active theme name if you are using one of our themes).
You will have to uncomment lines 12:
<li><a href="#quickTab-ShippingInfo">@T("ShippingReturns")</a> </li>
and line 23-25:
<div id="quickTab-ShippingInfo">
@await Component.InvokeAsync("TopicBlock", new { systemName = "ShippingInfo" })
</div>
That will display the Shipping Info topic as a tab. If you want to display your own information in your tab you will need to change a couple of things.
Firstly, from line 12 you will need to change the resource that is displayed as the tab name. Change
@T("ShippingReturns") to show any other return by changing the string inside the
@T() or just write your title in plain text.
After that, you will need to change line 24.
Now the code calls the
TopicBlock view component. You will need create your own view component that will return the information from your new products table. The Invoke method of your component can have an
int productId parameter so it knows for which product it is invoked.
After that you can change the code on line 24 like this:
@await Component.InvokeAsync("YourComponentName", new { productId = Model.ProductId })
where the
YourComponentName is your newly created view components name.
Note: If you want your custom tab to show on your public store you will need to uncheck the
Enable Ajax setting in
Administration -> Nop-Templates -> Plugins -> Quick Tabs -> Settings.
Note: This guide is written for nopCommerce versions 4.00 and above.
Hope that helps!