Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to add a post office logo?


snowrabbit

Recommended Posts

I was trying to add a post office logo at the bottom of my site above the copyright symbol. I don't know much about php, I added html coding at the bottom of:Includes/footer.php

 

<div align="center">

<a href="#" onclick="javascript:window.open('http://www.canadapost.ca/cpo/mc/default.jsf?LOCALE=en','','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=400, height=350');"><img src="URL/Canada_Post_logo.jpg" border="0" alt="Track your shipment!" style="text-align: center; margin-right: 13px; border: 0px">

</div>

 

But the logo was showed below the copyright symbol!

 

 

I added the same coding at includes/languages/english.php, ahead of copyright define:

define('FOOTER_TEXT_BODY', 'Copyright © '……….

 

It did not work.

 

Can anyone tell me where the coding should be added and what the php code is? Thanks.

Edited by snowrabbit
Link to comment
Share on other sites

Can you post a larger section of footer.php including the copyright section and your addition?

Copyright section is in includes/languages/english.php NOT in the includes/footer.php

 

I added the html code in includes/languages/english.php, just before: define('FOOTER_TEXT_BODY', 'Copyright © '……….

 

It did not work!

 

I added the html code in includes/footer.php at the bottom of the original footer.php, the logo went to below the copyrigh symbol.

 

I want it goes to above the copyright!

Edited by snowrabbit
Link to comment
Share on other sites

Copyright section is in includes/languages/english.php NOT in the includes/footer.php

 

I added the html code in includes/languages/english.php, just before: define('FOOTER_TEXT_BODY', 'Copyright © '……….

 

It did not work!

 

I added the html code in includes/footer.php at the bottom of the original footer.php, the logo went to below the copyrigh symbol.

 

I want it goes to above the copyright!

 

I think you are a little confused about how things work.

 

Go to file footer.php and find this line

    <td align="center" class="smallText"><?php echo FOOTER_TEXT_BODY; ?></td>

 

Exactly THIS is the copyright section that I mean. It is just calling the text from the language file (english.php) it could be any hardcoded text

 

The position of a define in a laguage file (upper or lower) does not matter for the positioning in the actual php file.

 

Your footer.php has a html structure inside, you need to find the place where you want your addition to have in this structure, not in the language file. If you want to have it above the footer, then you need to place it earlier in the html of footer.php, before the "copyright section"

 

So, ok, post your complete footer.php INCLUDING the addition you made

Edited by multimixer
Link to comment
Share on other sites

I think you are a little confused about how things work.

 

Go to file footer.php and find this line

    <td align="center" class="smallText"><?php echo FOOTER_TEXT_BODY; ?></td>

 

Exactly THIS is the copyright section that I mean. It is just calling the text from the language file (english.php) it could be any hardcoded text

 

The position of a define in a laguage file (upper or lower) does not matter for the positioning in the actual php file.

 

Your footer.php has a html structure inside, you need to find the place where you want your addition to have in this structure, not in the language file. If you want to have it above the footer, then you need to place it earlier in the html of footer.php, before the "copyright section"

 

So, ok, post your complete footer.php INCLUDING the addition you made

 

Thank you very much for your help, you are so patient! I am quite new in OS, and don't know about php. I did what you told and it worked! Thanks again!

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...