View Single Post
  #4  
Old 04-20-2021, 11:44 PM
 
Ed B. Ed B. is offline
 

X-Adept
  
Join Date: Apr 2016
Posts: 446
 

Default Re: delete subscriptions form from before footer

Since you want to move the place of the template, you can override the viewer class
The code responsible of outputting the template where it is, is
Code:
/** * SubscribeBlock * * TODO: Make placeholder for subscribed user/profile * * @ListChild (list="layout.main.footer", weight="50") */
in

classes/XLite/Module/XC/NewsletterSubscriptions/View/SubscribeBlock.php


Now, I am a bit confused on how to override. The code above precedes the line
Code:
class SubscribeBlock extends \XLite\View\AView
which would probably mean that you can't override by writing a class extending
classes/XLite/Module/XC/NewsletterSubscriptions/View/SubscribeBlock.php

If nothing else works, you can always edit by hand the line
Code:
* @ListChild (list="layout.main.footer", weight="50")
(and remember doing it each time you upgrade the newsletter subscription module).
__________________
X-cart 5.2.12, php 5.6
Ed from Grenoble, France
Reply With Quote