Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fatal error - Undefined method payment


Guest
 Share

Recommended Posts

Help is needed asap!

 

I am testing my site.

 

It appears that when my products are in the shopping cart I get a message below the continue shopping and checkout stating:

 

Fatal error: Call to undefined method payment: checkout_initialization_method() site information shoping_cart.php on line 211.

How do I correct this error?

 

Thanks much!!

Link to comment
Share on other sites

  • 4 months later...
Help is needed asap!

 

I am testing my site.

 

It appears that when my products are in the shopping cart I get a message below the continue shopping and checkout stating:

 

Fatal error: Call to undefined method payment: checkout_initialization_method() site information shoping_cart.php on line 211.

How do I correct this error?

 

Thanks much!!

 

replace catalog/includes/classes/payment.php with a good backup file it will work.

 

it this does not solve the problem, open payment.php file and check if you have following function within it, if not add it.

 

function checkout_initialization_method() {

$initialize_array = array();

 

if (is_array($this->modules)) {

reset($this->modules);

while (list(, $value) = each($this->modules)) {

$class = substr($value, 0, strrpos($value, '.'));

if ($GLOBALS[$class]->enabled && method_exists($GLOBALS[$class], 'checkout_initialization_method')) {

$initialize_array[] = $GLOBALS[$class]->checkout_initialization_method();

}

}

}

 

return $initialize_array;

}

Edited by h1bjump
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...