Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution] Payement Module Update Default Order Status


elari

Recommended Posts

Hello guys,

 

hope for some support here.. this is a great mod for WU money transfer

 

i got this error:

 

Parse error: parse error in /var/www/html/catalog/checkout_process.php on line 282

 

Here is the code:

 

// load the after_process function from the payment modules

? $payment_modules->after_process();

 

? $cart->reset(true);

 

// unregister session variables used during checkout

? tep_session_unregister('sendto');

? tep_session_unregister('billto');

? tep_session_unregister('shipping');

? tep_session_unregister('payment');

? tep_session_unregister('comments');

 

? tep_redirect(tep_href_link(FILENAME_CHECKOUT_SUCCESS, '', 'SSL'));

 

? require(DIR_WS_INCLUDES . 'application_bottom.php');

? find

// load the before_process function from the payment modules

$payment_modules->before_process(); [Line 282] 

 

? //elari change for hack WU

? $default_orders_status_id = $default_orders_status_id ;

? if (is_object($$payment)) {

? ? $payment_class = $$payment;

? ? if ($payment_class->order_payment_unconf) {

? ? ? $default_orders_status_id = $payment_class->order_payment_unconf;

? ? }

? }

? //end elari change for hack WU

?>

 

Any help would be much appreciated!

Edited by nightgyr

"The difference between genius and stupidity is that genius has its limits"

Link to comment
Share on other sites

  • 1 month later...
  • Replies 52
  • Created
  • Last Reply

Top Posters In This Topic

Hello Elari,

 

Thanks for such a lovely contribution. I am having a problem though, I have properly installed the western union payment module , but when I go to the admin to edit the payment details I get this message on top

Warning: call_user_func(tep_get_order_status_name): First argument is expected to be a valid callback in /home/shauryai/public_html/quickbuy/admin/includes/functions/general.php on line 1232

 

I am not being able to edit the payment information..... :( I am new to OSC and have little very knowledge of PHP.

 

Please tell what I am doing wrong???

 

Regards

 

Yogesh

 

e-mail- [email protected]

Link to comment
Share on other sites

  • 9 months later...

Does anyone know if this Western Union payment module work properly on OSC2 MS2 release? If it doesn't work out of the box, is there any way to adjust it to work properly on this OSC release?

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.

×
×
  • Create New...