How do I add a new Listbox like the Information one?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 years ago
I'm trying to add a new section like the information listbox but i cant figure out how to do it.. I need to add a couple more of them.  If anybody can help me out with this I would really appreciate it... Thanks
13 years ago
a quick way using visual studio:


right click modules/infoblock.ascx   click copy  

right click modules  - click paste


rename copy of infoblock.ascx   to    InfoBlockTwo.ascx

in  InfoBlockTwo.ascx change  Inherits="NopSolutions.NopCommerce.Web.Modules.InfoBlockControl"  to
Inherits="NopSolutions.NopCommerce.Web.Modules.InfoBlockControlTwo"


open the codebehind of InfoBlockTwo.ascx  and change    InfoBlockControl
to
InfoBlockControlTwo


you will need to rebuild the solution after this change

register and insert the new control where you need it eg ThreeColumn.master
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.