Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Money Order Error...........


Recommended Posts

Posted

I'm reinstalling my store using STS. Basically doing it all again to make sure that I don't have conflicts with already installed mods. I have just tried to buy a product (to see if money order comes up as Personal Cheque which I changed it to) and got the following error:

 

 

Fatal error: Call to a member function call_api() on a non-object in /home/spidersm/public_html/store/checkout_process.php on line 102

 

 

Anyone know what it's about? No order appears in admin when the error occurs.

Posted

Any ideas guys? I don't know what could have gone wrong apart from it being something to do with STS (which I had never used before). I haven't messed with the payment module apart from turn it on and change the ''make payment to' bit and make it say 'Personal Cheque - UK Only' instead of 'Money Order'.

Posted
Any ideas guys? I don't know what could have gone wrong apart from it being something to do with STS (which I had never used before). I haven't messed with the payment module apart from turn it on and change the ''make payment to' bit and make it say 'Personal Cheque - UK Only' instead of 'Money Order'.

Hi Joanne,

 

I had the same problem and this solved it:

 

Find this code in checkout_process.php

// {{ buySAFE Module
 $buysafe_cart_id = MODULE_BUYSAFE_BUYSAFE_CART_PREFIX . '-' . tep_session_id() . (tep_count_customer_orders()-1);
 $checkout_params = array('WantsBond' => ($WantsBond ? $WantsBond : 'false'), 'orders_id' => $insert_id, 'buysafe_cart_id' => $buysafe_cart_id);
 $checkout_result = $buysafe_module->call_api('SetShoppingCartCheckout', $checkout_params);
 if (is_array($checkout_result) && $checkout_result['IsBuySafeEnabled'] == 'true')
 {
$update_data_array = array('buysafe_cart_id' => $buysafe_cart_id,
						   'buysafe_client_ip' => getenv('REMOTE_ADDR'),
						   'buysafe_session_id' => tep_session_id());
tep_db_perform(TABLE_ORDERS, $update_data_array, 'update', "orders_id = '" . (int)$insert_id . "'");
 }
// }}

And comment it out like this (by wrapping the code with /* and */:

// {{ buySAFE Module
/*   $buysafe_cart_id = MODULE_BUYSAFE_BUYSAFE_CART_PREFIX . '-' . tep_session_id() . (tep_count_customer_orders()-1);
 $checkout_params = array('WantsBond' => ($WantsBond ? $WantsBond : 'false'), 'orders_id' => $insert_id, 'buysafe_cart_id' => $buysafe_cart_id);
 $checkout_result = $buysafe_module->call_api('SetShoppingCartCheckout', $checkout_params);
 if (is_array($checkout_result) && $checkout_result['IsBuySafeEnabled'] == 'true')
 {
$update_data_array = array('buysafe_cart_id' => $buysafe_cart_id,
						   'buysafe_client_ip' => getenv('REMOTE_ADDR'),
						   'buysafe_session_id' => tep_session_id());
tep_db_perform(TABLE_ORDERS, $update_data_array, 'update', "orders_id = '" . (int)$insert_id . "'");
 }
*/// }}

Hope it helps.

Jade

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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.

×
×
  • Create New...