How to remove Powered By OpenCart

Powered By OpenCart is a language variable located in footer.php language file. Edit the file /catalog/language/-yourlang-/common/footer.php and remove the text before the first %s in the variable $_[‘text_powered’] That’s it 😉

OpenCart: How to move search field to top menu (content_top.tpl)

Please read this article to learn how to easy move search field to another part of your page. In my case I will move it to my custom menu. First you need to copy the code for the search form from: /catalog/view/theme/-yourtheme-/template/common/header.tpl Code: <div id=”search”> <div class=”button-search”></div> <?php if ($filter_name) { ?> <input type=”text” name=”filter_name” … Read more

Make username field active when entering the admin login page

OpenCart already uses jquery so all you need to is to pass focus() function to input username to make it focus on the username field. Here is how to do it. Open the following file in your favorite php editor: /admin/view/template/common/login.tpl and copy/paste this code: Code: $(document).ready(function() { $(“input[name=username]”).focus(); });