Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Insert html code snippet in php


hagopk

Recommended Posts

I would like to insert html code (a table with ssl seal image) on the login page and other checkout pages.

 

I tried using <?php include("filename.html"); ?> , but it inserts the contents on top above the header. I want to insert the code in the footer. How do I do that?

Link to comment
Share on other sites

You have 2 choices.

 

1. Edit includes/footer.php.

2. Edit languages/english.php.

 

I suggest looking into both files to see how the footer text is being called from the english.php file. It's really simple and I'm sure when you see the code you will figure it out.

Link to comment
Share on other sites

I would like to insert html code (a table with ssl seal image) on the login page and other checkout pages.

 

I tried using <?php include("filename.html"); ?> , but it inserts the contents on top above the header. I want to insert the code in the footer. How do I do that?

You need to enclode it in a table row so the html knows where to place it.
<tr><td><?php include("filename.html"); ?></td></tr>

That may not be enough to format it correctly for you but that would vary with your code so you just have to play with it.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...