Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

a problem by Contribution:Seperate Pricing Per Customer


wei

Recommended Posts

Posted

Hello!

I have installed the Contributiono: Seperate Pricing Per Customer Version 4.2.0.

On shopping_cart.php I get this error:

 

Fatal error: Call to undefined method payment::checkout_initialization_methods() in /mnt/web3/10/75/51708175/htdocs/shop/catalog/shopping_cart.php on line 210

 

I've checked the shopping_cart.php. It seems no problem.

Can anyone tell me please, how i can fix it?

 

 

Thanks.

 

Wei

Posted
Hello!

I have installed the Contributiono: Seperate Pricing Per Customer Version 4.2.0.

On shopping_cart.php I get this error:

 

Fatal error: Call to undefined method payment::checkout_initialization_methods() in /mnt/web3/10/75/51708175/htdocs/shop/catalog/shopping_cart.php on line 210

 

I've checked the shopping_cart.php. It seems no problem.

Can anyone tell me please, how i can fix it?

Thanks.

 

Wei

 

 

Look in your catalog\includes\classes\payment.php file for the following funciton:

 

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;

}

 

If it's not in there. Then add it. This should fix it.

  • 1 month later...
Posted
Look in your catalog\includes\classes\payment.php file for the following funciton:

 

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;

}

 

If it's not in there. Then add it. This should fix it.

 

 

Thanks I had the same problem. I added code to bottom of file just above the last

 

  }
?>

Posted

I have the same problem as you,

 

Fatal error: Call to undefined function: checkout_initialization_method() in /home/vantage2/public_html/cms/shopping_cart.php on line 210

 

And i added the code as suggested on above in cms/includes/classes/payment.php

 

But it doesnt work still.

 

http://www.vantage2u.com.my/cms/shopping_cart.php?sort=2a

 

Please help.

Posted
I have the same problem as you,

 

Fatal error: Call to undefined function: checkout_initialization_method() in /home/vantage2/public_html/cms/shopping_cart.php on line 210

 

And i added the code as suggested on above in cms/includes/classes/payment.php

 

But it doesnt work still.

 

http://www.vantage2u.com.my/cms/shopping_cart.php?sort=2a

 

Please help.

 

Could someone help, i have add in the function

 

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;

}

 

to ..includes/classes/payment.php

 

but it doesnt work still.

 

pleaes help

Posted

I am having this problem since adding the Downloads Controller contribution today (which includes Free Shipping and Free Payment add-ons). I have tried about 4 different versions of it, including oldest one with the free add-ons and haven't been able to get it working.

 

I haven't had luck finding anyone with similar problems either.

Posted

Wish I had read this entire thread yesterday. Heh. Had to figure this one out on my own. And as it turns out, it's exactly what isuelt mentioned. Seen everyone saying it didn't work, and I never looked it over. Though I didn't add it to the bottom. I compared my current files dealing with checkout, shopping cart, and payments and finally came across that file mentioned above. The current payment.php I had came from the download controller contribution). Compared it to my backup to see it was missing, and inserted it right where it was in the origional install of OSC2.2RC2

 

Worked like a charm. Heh.

  • 1 year later...

Archived

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

×
×
  • Create New...