Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Surely this can be done?


sheringham

Recommended Posts

Does the javascript require you place some code inside the <head></head> tags....

 

because the header.php doesnt actually contain these tags heres the way the page displayers:

 

<Head></Head>

<Body>

Header.php

 

So you would need to see the javascript into the header tags for every page.

Link to comment
Share on other sites

Does the javascript require you place some code inside the <head></head> tags....

 

because the header.php doesnt actually contain these tags heres the way the page displayers:

 

<Head></Head>

<Body>

Header.php

 

So you would need to see the javascript into the header tags for every page.

 

Yep, that's the problem, no header tags within which to embed the Javascript initially. Is there no way round this?

Link to comment
Share on other sites

Yep, that's the problem, no header tags within which to embed the Javascript initially. Is there no way round this?

 

My guess... Make those tags in the header.php and see if it works

?,???`???,?? God must love stupid people, he made so many ??,???`???,?

Link to comment
Share on other sites

this is the closest post that I have come to solving what I am trying to do. sorry if i'm using this post inappropriately and misunderstood. I was thinking that if I can get it to work for me I might be able to add some suggestions. Hope this is what you guys were meaning....

 

I am trying to add links at the top of my page. On my non oscommerce pages that use html it has dhtml menus.

If i understand you right dave111 it sounds like i can probably include this if i go in and edit each page within the oscommerce. I have seen the headers so I'm guessing i can post my javascript in the header. then i must put the links in the body of each page. At least that is how I have done it on my other pages. If this sounds like a possibility i would love to hear that. I plan on trying it this weekend to see if that works. If i'm way off base here though I would appreciate a heads up.

 

Thanks!

 

ps if you need to see what i'm talking about the site is sunsethilljewelry.com

 

 

 

I can be done, i told you how, you need to edit each page and add the javascript between the <head> tags

 

And yes, the pages do have head tags.

Link to comment
Share on other sites

Yeah, you have the right idea.

 

Heres a tip: if you want to stick code into the header on every page this could take along time.

So use the find feature in dreamweaver (or similar program) put all the files in a folder, and then do a find and replace on the folder.

 

Example: Find: </head>

Replace with: <yourcode></head>

 

This will take about 2 seconds, and save you a ton of time....obviously backup first.

Link to comment
Share on other sites

Thanks for the tip. I was actually able to put the links in the header.php and they showed up. However, I pasted the javascript into each page though so that would have saved me time. Next time I will try doing that.

 

Yeah, you have the right idea.

 

Heres a tip: if you want to stick code into the header on every page this could take along time.

So use the find feature in dreamweaver (or similar program) put all the files in a folder, and then do a find and replace on the folder.

 

Example: Find: </head>

Replace with: <yourcode></head>

 

This will take about 2 seconds, and save you a ton of time....obviously backup first.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...