Page 2 of 2

Re: [How-to] Add information info links in footer

Posted: Wed Oct 13, 2010 12:51 am
by TAC
Ah, so I did miss something - I didn't read your thread title properly - sorry. Looking forward to the new how-to's. How will I know where you've posted them?

Thanks

Re: [How-to] Add information info links in footer

Posted: Wed Oct 13, 2010 4:50 am
by celestial
Maansy Please :choke:

Re: [How-to] Add information info links in footer

Posted: Wed Oct 27, 2010 7:21 am
by xentrix
Thank you very much Maansy

Re: [How-to] Add information info links in footer

Posted: Thu Oct 28, 2010 7:46 am
by Maansy
xentrix wrote:Thank you very much Maansy
My pleasure xentrix :)

Re: [How-to] Add information info links in footer

Posted: Thu Oct 28, 2010 7:50 am
by Maansy
celestial wrote:Maansy Please :choke:
Celesial sorry for my late replay
Curruntly I am working on 17 custom design templates + few logo projects + giving supports to my existing customers :crazy:
I will post the how to as soon as I find time.
Sorry again but don't worry, I will :)

Re: [How-to] Add information info links in footer

Posted: Thu Oct 28, 2010 8:25 am
by imaginetech
You can actually do this without editing anything but the footer.tpl file.

What I did was edit the structure of the footer.tpl file:-

Code: Select all

<div id="footer">  
  <div id="links"></div> 
  <div class="div1">Powered By <a href="http://www.opencart.com">OpenCart</a><br /> Your Store &copy; 2010</div> 
  <div class="div2"><a onclick="window.open('https://www.paypal.com/uk/mrb/pal=W9TBB5DTD6QJW');"><img src="catalog/view/theme/ProShop2/image/payment.png" alt="" /></a></div> 
  </div> 
</div> 
</body>
</html> 
And then use some javascript like this:-

Code: Select all

$(function () {
$('#information a').clone().removeAttr('id').removeAttr('class').prependTo($('#footer #links'));
$('#nav a').clone().removeAttr('id').removeAttr('class').prependTo($('#footer #links'));
$('#footer a span').parent().remove();});
});
Of course I have renamed my information and categories boxes but the same could be achieved by using the first element in say a $('.box') result object.

I haven't styled it like you have but styling it is really the easy part.

I'm posting this alternative method because as template developers the less we have to touch anything outside of the template/ directory the better, for us and our clients.

If theres enough interest in this way of doing things I'll write up a full tutorial.

Re: [How-to] Add information info links in footer

Posted: Thu Oct 28, 2010 6:27 pm
by fili
two thumbs up maansy ImageImage

this tutorial will make opencart growth rapidly

sie sie

Re: [How-to] Add information info links in footer

Posted: Tue Nov 16, 2010 2:53 am
by TAC
If theres enough interest in this way of doing things I'll write up a full tutorial.
Would you be able to put more than just info in the footer? Can Categories go in there too? If so please do a tutorial.
Thank you :)

Re: [How-to] Add information info links in footer

Posted: Thu Nov 25, 2010 7:43 am
by davykeenan
You can get the Categories in the custom footer extension at:

http://www.opencart.com/index.php?route ... ion_id=331

Sorry Maansy, I know its another plug but just trying to help users...

Cheers

Davy K

Re: [How-to] Add information info links in footer

Posted: Sat Nov 27, 2010 10:51 pm
by TAC
I considered the commercial mod but as it is only a single website license I will hang on for Maansy's tutorial ;)
Or it might even be in 1.5?
:)

Re: [How-to] Add information info links in footer

Posted: Sat Nov 27, 2010 11:04 pm
by Maansy
davykeenan wrote:You can get the Categories in the custom footer extension at:

http://www.opencart.com/index.php?route ... ion_id=331

Sorry Maansy, I know its another plug but just trying to help users...

Cheers

Davy K
Be my guest bro, or anyone would like to share their own way of reaching the same goal. I don't mind at all.

Regarding my tutorials, I will try to find time soon to do a nice write up.
If you guys can't wait, there are few commercial add ons it does the same thing I believe.

Cheers

Re: [How-to] Add information info links in footer

Posted: Sat Nov 27, 2010 11:36 pm
by davykeenan
TAC wrote:I considered the commercial mod but as it is only a single website license I will hang on for Maansy's tutorial ;)
Or it might even be in 1.5?
:)
If its my mod you want, don't worry about the single license as the only thing I ever ask is not to sell my mods on, if you want to use it for a number of sites that's fine with me. (the opencart guys might not agree with my view, but unless there are safeguards placed by the developer then it's to hard to control)

If you are a developer and make money from the sites you sell that's a bit different, but even at that, just as long as your not selling the mods individually as your own, I don't think think this is a bad thing as you have already bought the code. Only my opinion.

As a developer myself I don't mind buying other developers mods, I have done so quite a few times, but I tend to butcher them and add/remove features when required, so is that then still the code you bought, Mmm I feel a debate coming on...

Or am I wrong???

Re: [How-to] Add information info links in footer

Posted: Sun Nov 28, 2010 7:59 pm
by i2Paq
You can also have a look at: Links in Footer.

Re: [How-to] Add information info links in footer

Posted: Wed Feb 29, 2012 1:59 am
by Vicki
HELP URGENTLY REQUIRED,

i added this code into my root files as above but for some reason it did not work so i removed the code i added and now when i try load my page in a browser i get 'Oops! Internet Explorer could not find http://www.ilovesweetsandcakes.co.uk
' whats happened im totally gutted and i dont know how to fix it :(

Cant access my opencart admin either

please help me someone, thanks