NopCommerce 3.5 Nivo Slider more than 5 images

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
8 years ago
Hi

How can I add extra image field on Nivo slider widget programmatically? presently it is limited to 5 image in the slider in NopCommerce 3.5.


Thanks in advanced.

Cheers
8 years ago
prabirchoudhury wrote:
Hi

How can I add extra extra image field on Nivo slider widget programmatically? presently it is limited to 5 image in the slider in NopCommerce 3.5.


Thanks in advanced.

Cheers


Please see this: https://www.nopcommerce.com/boards/t/21785/nivoslider-5-images.aspx
8 years ago
I have made the changes and it is bit different from the older post

Made the changes on the listed files on NopCommerce3.5

copy the last image script section associated with slider image and copy & paste and then change the image number

sample: copy script section of Picture5Id, Text5, Link5, Picture5, Picture5Url and paste it just next to the last image section follow the pattern and increment picture number to Picture6Id, Text6, Link6, Picture6, Picture6Url

  e.g.
       // last image section
       public int Picture5Id { get; set; }
        public string Text5 { get; set; }
        public string Link5 { get; set; }


        // added one more image
        public int Picture6Id { get; set; }
        public string Text6 { get; set; }
        public string Link6 { get; set; }




Make the associated changes on the following files (Note: don't forget to make a backup)

1. Changes in Plugin files

Plugins/Nop.Plugin.Widgets.NivoSlider/NivoSliderPlugin.cs
Plugins/Nop.Plugin.Widgets.NivoSlider/NivoSliderSettings.cs


Plugins/Nop.Plugin.Widgets.NivoSlider/Models/ConfigurationModel.cs
Plugins/Nop.Plugin.Widgets.NivoSlider/Models/PublicInfoModel.cs


Plugins/Nop.Plugin.Widgets.NivoSlider/Controllers/WidgetsNivoSliderController.cs



2. Changes in Presention files

Presentation/Nop.Web/Plugins/Widgets.NivoSlider/Views/WidgetsNivoSlider/Configure.cshtml
Presentation/Nop.Web/Plugins/Widgets.NivoSlider/Views/WidgetsNivoSlider/PublicInfo.cshtml


Good luck
3 years ago
prabirchoudhury wrote:
Hi

How can I add extra image field on Nivo slider widget programmatically? presently it is limited to 5 image in the slider in NopCommerce 3.5.


Thanks in advanced.

Cheers
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.