Page 1 of 1
Customizing Powered by
Posted: Mon Sep 19, 2011 11:32 pm
by dannyfoo
Based on the search, I could find how-to remove the Powered by - I don't mind keeping it.
What I'd like to know is, how do I change the order of this:
Powered by OpenCart
Store name (C) Year
TO
Store name (C) Year
Powered by OpenCart
So I can even wrap the Powered by OpenCart with a div to customize it accordingly.
Help will be much appreciated.

Re: Customizing Powered by
Posted: Tue Sep 20, 2011 12:04 am
by Clipper
Edit: /catalog/view/theme/YOURTHEME/template/common/footer.tpl
Re: Customizing Powered by
Posted: Tue Sep 20, 2011 11:47 pm
by dannyfoo
The mentioned file has this line:
Code: Select all
<div class="test"><?php echo $text_powered_by; ?></div>
And if I'm not mistaken, this generates the following information:
Powered by OpenCart
Store name (C) Year
But, how do I rearrange the order of that information to this:
Store name (C) Year
Powered by OpenCart
Re: Customizing Powered by
Posted: Wed Sep 21, 2011 12:15 am
by uksitebuilder
OpenCart uses MVC+L architecture.
For most files there is an associated model, controller, view and language file
So, for what you need, you should look at:
Model ~no model file for footer because it does not get data from the database~
View catalog/view/theme/default/template/common/footer.tpl
Controller catalog/controller/common/footer.php
+Language catalog/language/english/common/footer.php
Re: Customizing Powered by
Posted: Wed Sep 21, 2011 8:04 am
by Clipper
Replace:
Code: Select all
<div class="test"><?php echo $text_powered_by; ?></div>
with:
Code: Select all
<div class="test">Store name © Year<br />Powered by OpenCart</div>
Re: Customizing Powered by
Posted: Wed Sep 21, 2011 12:35 pm
by dannyfoo
uksitebuilder wrote:OpenCart uses MVC+L architecture.
For most files there is an associated model, controller, view and language file
So, for what you need, you should look at:
Model ~no model file for footer because it does not get data from the database~
View catalog/view/theme/default/template/common/footer.tpl
Controller catalog/controller/common/footer.php
+Language catalog/language/english/common/footer.php
Thanks for explaining that. Helps me to understand the OC structure.
I'll have a look at the files again. This was something I'd like to know if it was doable.