Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

"Fatal error: Call to undefined function" when i tried to write my own function in zones.php file


g_p_java

Recommended Posts

Posted

Hello,

 

i'm trying to add a new function in file includes/modules/shipping/zones.php

but i get this error: Fatal error: Call to undefined function shipping_add().

 

What is wrong?

How am i supposed to fix this error?

 

Thanks, in advance

Posted

Solved it,

i had included the function inside the class zones {

 

Now i did:

 

class zones {
etc
}
//added new function outside class zones
function shipping_add() {
}

Archived

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

×
×
  • Create New...