The website im working on has a custom banner for each category. This banner is simply an image.
Is it possible to add a field to categories? The changes I think I would need to make are:
Administration/Modules/CategoryAdd.ascx Administration/Modules/CategoryInfo.ascx (add an input field) NopSolutions.NopCommerce.BusinessLogic.Categories.Category.cs (add a property)
Database Nop_Category
Is this the right way to go around it? Are there any other changes I need to consider?
its the right way to add a field to category, however u can do it without changing nop code. Name the banners with one name and add the categoryId to each of the banners name. Then u will have a matching banner to a category according to the category id
Yes I could, but what I failed to mention is that I need the website administrators to be able to select the banner themselves - which might be a bit confusing for them if I have to teach them how to extract the category ID and upload the files using FTP!
Can you think of any other areas of the code base I need to consider?