Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Call to undefined function:


skint

Recommended Posts

Posted

I created a new function in includes/functions to add a rollover effect to my merchandise, but I am getting a Fatal error: Call to undefined function: tep_rollover_image() in index.php. Do I have to define this copied tep_image function (with rollover borders) somewhere else? I'm at a loss... thanks

Posted

Is the function in a particular file eg general.php? or is it in a new file of its own?

 

If its a new file you need to add an require call in application_top.php like

 

// include the rollover function file

 require(DIR_WS_INCLUDES . 'functions/rollover.php');

 

Hope this works!?

Reddy to Rumble

 

Thank you osCommerce and all who Contribute to her!

Posted

I took an exact copy of the tep_image () function and created a function called tep_rollover_image () that changes one of the variables to create a rollover border around the pictures. I made the changes to includes/functions/html_output.php, but it still does not seem to call to it.

Posted

Please post the code for the function :shock:

 

I would say you are calling the function *before* html_output.php is called.

Archived

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

×
×
  • Create New...