This is one of many basic changes which you will have to after installing osCommerce.
Powered by osCommerce appears in the footer of osCommerce store and there is a very easy way to remove it.
Method 1: Remove “Powered by osCommerce” in the footer.php file
Open /includes/footer.php and search for following code which you can find in line no. 16-18.
[sourcecode language=”php”]
<div class="grid_24 footer">
<p align="center"><?php echo FOOTER_TEXT_BODY; ?></p>
</div>
[/sourcecode]
Comment out all of the above 3 lines as below
[sourcecode language=”php”]
<!–<div class="grid_24 footer">
<p align="center"><?php //echo FOOTER_TEXT_BODY; ?></p>
</div>–>
[/sourcecode]
Viola! the “Powered by osCommerce” will no longer be visible any more on your osCommerce store.
So far so good. Just look carefully and you will find that the copyright text is also gone. So if you want to keep copyright line then add it back using following simple code.
[sourcecode language=”php”]
<div class="grid_24 footer">
Copyright © 2011 <a href="/">My Store</a>
<p align="center"><?php //echo FOOTER_TEXT_BODY; ?></p>
</div>
[/sourcecode]
Above is not a clean solution. There is another very simple solution to remove “Powered by osCommerce” text.
Method 2: Remove “Powered by osCommerce” from english.php file
Open /includes/languages/english.php file and search for following code which is in the last of the file:
[sourcecode language=”php”]
define(‘FOOTER_TEXT_BODY’, ‘Copyright © ‘ . date(‘Y’) . ‘ <a href="’ . tep_href_link(FILENAME_DEFAULT) . ‘">’ . STORE_NAME . ‘</a><br />Powered by <a href="http://www.oscommerce.com" target="_blank">osCommerce</a>’);
[/sourcecode]
Remove following from that code:
[sourcecode language=”php”]
<br />Powered by <a href="http://www.oscommerce.com" target="_blank">osCommerce</a>
[/sourcecode]
[sourcecode language=”php”]
After removal the code will look like this:
define(‘FOOTER_TEXT_BODY’, ‘Copyright © ‘ . date(‘Y’) . ‘ <a href="’ . tep_href_link(FILENAME_DEFAULT) . ‘">’ . STORE_NAME . ‘</a>’);
[/sourcecode]
Leave a Reply