View Single Post
  #7  
Old 04-11-2016, 10:45 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default 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.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote