wei Posted February 21, 2008 Posted February 21, 2008 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
isuelt Posted February 26, 2008 Posted February 26, 2008 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.
wescosa Posted March 28, 2008 Posted March 28, 2008 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 } ?>
Guest Posted April 4, 2008 Posted April 4, 2008 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.
Guest Posted April 6, 2008 Posted April 6, 2008 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
desiredin Posted April 7, 2008 Posted April 7, 2008 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.
desiredin Posted April 9, 2008 Posted April 9, 2008 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.