Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Using Custome Javascripts


aashen

Recommended Posts

Posted

there seems to be a problem in the online manual to add a mouse over graphic to the catalog.

 

osCOMMERCE manual for inserting mouse over graphic links

 

The header.php file does not have any <head> tags, and actually starts below the body tag. This means that I have to go into every page to include the script for navigation, which is on every page.

 

There must be or have been a better solution than this. This also applies to other custom js I want to add.

 

HELP

Posted

This will put it in the body of the page and is not standard coding. One of my big problems is that the manual has an example and solution that are outdated with how the system is CURRENTLY set up.

 

Alternatives??

Posted

Go in the <head> section of each page and insert something like:

 

<script src="custom.js"></script>

Then put this script (and any future scripts) in it.

 

This way you edit all the files ONCE, and if/when you have more scripts to add you only edit ONE file.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

importing the custom js page is probably the best way to go. I wonder why osCOMMERCE used to have the head method but go rid of it.

 

At the least the manual should be amended to delete that section.

 

Thanks.

Archived

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

×
×
  • Create New...