Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Remove the "Powered By"

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 03-19-2014, 05:29 AM
 
kevinrm kevinrm is offline
 

X-Wizard
  
Join Date: Aug 2003
Posts: 1,003
 

Default Remove the "Powered By"

Just diving into this, it's quite different that 4.x, that's for sure. For starters, can't figure out how to remove the "Powered by" X-Cart link at the footer, looked all over for a template. My competitors scour over my site so I don't want them knowing what I use, at least without a lot of effort.

Any ideas?
__________________
X-Cart 5.4.1.39 Live
PHP 7.4.33
5.5.5-10.3.38-MariaDB MariaDB
Apache 2.4
CENTOS 7.8 64Bit Single Quad-Core E3-1241v3 3.4Ghz 8M 1600 w/ HT
32GB RAM 2x 512GB Samsung 850 Pro SSD RAID 1
Reply With Quote
  #2  
Old 03-19-2014, 09:46 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

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

Default Re: Remove the "Powered By"

You are to create a custom module (it is really easy!) and "decorate" the \XLite\View\PoweredBy class as follows:

PHP Code:
<?php

namespace XLite\Module\[YourDevID]\[YourModuleID]\View;

class 
PoweredBy extends \XLite\View\PoweredBy implements \XLite\Base\IDecorator

{
    protected function 
isVisible()
    {
        return 
false;
    }
}

This should disable the "Powered By" widget. Or you can customize other class methods to replace the line with your message.
__________________
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
  #3  
Old 03-20-2014, 03:52 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: Remove the "Powered By"

You can also hide it with CSS rules, which might be easier.
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:53 PM.

   

 
X-Cart forums © 2001-2020