X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Remove the "Powered By" (https://forum.x-cart.com/showthread.php?t=68887)

kevinrm 03-19-2014 05:29 AM

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?

qualiteam 03-19-2014 09:46 PM

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.

tony_sologubov 03-20-2014 03:52 AM

Re: Remove the "Powered By"
 
You can also hide it with CSS rules, which might be easier.


All times are GMT -8. The time now is 02:28 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.