Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Where to add javascript in header?


taffs

Recommended Posts

I have a very old version of OSC heavily modded, it works fine and has been secured :-)

 

I have signed up for an ad-serving software platform and set up all of the banners, when I select the invocation code there is some to go in the page where I want the banner to display and some javascript to place in the header.

 

I'm ok with the ad placement code but cannot for the life of me find the file that contains the header tags.

 

I expect this is very basic question.

 

Thanks for your help.

 

Taff.

Link to comment
Share on other sites

The code can go whereve you want it as long as the script works. But if you want to stay with convention, you probably mean head instead of header and, in that case, that is in the top of each file in the shop of the root that is used for display. But if this is only for one page, then just add the code to that one file. Look for the </head> line and place it right before that.

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

index.php, product_info.php, etc. See the files in the root. Anyone that has </head> will most likely need to be changed. Or you can put the code in the includes/header.php file and not bother with all of those changes.

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...