Re: Adding a field to the banner slide
By decorating the \XLite\Model\BannerRotationSlide you add the custom columns to the database table. This also lets you read data from these columns in your templates.
You also tried to decorate \XLite\View\Model\BannerRotationSlide. As I said there is no such a class, that's why you code doesn't work - you modify something that doesn't exist. There would be such a class if X-Cart had a page for editing a single banner. But there is no such a page and all banners are managed on a single page.
I suggest you to look into decorating this class: \XLite\View\ItemsList\BannerRotationImages. I'm not sure 100%, but I believe that this is the class that controls what fields should be shown in the table of banner slides when you edit them.
|