skint Posted July 27, 2003 Posted July 27, 2003 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
Rumble Posted July 27, 2003 Posted July 27, 2003 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!
skint Posted July 27, 2003 Author Posted July 27, 2003 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.
Guest Posted July 27, 2003 Posted July 27, 2003 Please post the code for the function :shock: I would say you are calling the function *before* html_output.php is called.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.