Jump to content

[SOLVED] How to change the automated status of awaiting for bankwire payment?


Recommended Posts

Hello.Can somebody help me show where to edit the status of the automated result of AWAITING FOR BANKWIRE PAYMENT whenever the customer confirmed the order through bankwire?I want to change it to other status.Please spare me with the answer of manually changing it in the admin page :) ,what i want is to automatically give the result.

 

Thank you for whoever will help

Link to comment
Share on other sites

go modules bankwire bankwire.php

 

line 115

 

$this->_html .= '<img src="../modules/bankwire/bankwire.jpg" style="float:left; margin-right:15px;"><b>'.$this->l('This module allows you to accept secure payments by bank wire.').'</b><br /><br />

'.$this->l('If the client chooses to pay by bank wire, the order\'s status will change to "Waiting for Payment."').'<br />

'.$this->l('That said, you must manually confirm the order upon receiving the bank wire. ').'<br /><br /><br />';

}

Link to comment
Share on other sites

go modules bankwire bankwire.php

 

line 115

 

$this->_html .= '<img src="../modules/bankwire/bankwire.jpg" style="float:left; margin-right:15px;"><b>'.$this->l('This module allows you to accept secure payments by bank wire.').'</b><br /><br />

'.$this->l('If the client chooses to pay by bank wire, the order\'s status will change to "Waiting for Payment."').'<br />

'.$this->l('That said, you must manually confirm the order upon receiving the bank wire. ').'<br /><br /><br />';

}

 

Jiten i think that this is not what rico666 looking for. He want to change status of the order in back office, not the text that you suggested above.

 

the main problem in this case is this function:

$this->module->validateOrder($cart->id, Configuration::get('PS_OS_BANKWIRE'), $total, $this->module->displayName, NULL, $mailVars, (int)$currency->id, false, $customer->secure_key);

this is a part of the file: modules/bankwire/controllers/front/validation.php

 

where the Configuration::get('PS_OS_BANKWIRE') is and number of ORDER STATE. you need to change it.

Link to comment
Share on other sites

go modules bankwire bankwire.php

 

line 115

 

$this->_html .= '<img src="../modules/bankwire/bankwire.jpg" style="float:left; margin-right:15px;"><b>'.$this->l('This module allows you to accept secure payments by bank wire.').'</b><br /><br />

'.$this->l('If the client chooses to pay by bank wire, the order\'s status will change to "Waiting for Payment."').'<br />

'.$this->l('That said, you must manually confirm the order upon receiving the bank wire. ').'<br /><br /><br />';

}

 

thank you brother for your reply,i really appreciate it but vekia is right about the solution of my problem,and it is already solve now.

 

Jiten i think that this is not what rico666 looking for. He want to change status of the order in back office, not the text that you suggested above.

 

the main problem in this case is this function:

$this->module->validateOrder($cart->id, Configuration::get('PS_OS_BANKWIRE'), $total, $this->module->displayName, NULL, $mailVars, (int)$currency->id, false, $customer->secure_key);

this is a part of the file: modules/bankwire/controllers/front/validation.php

 

where the Configuration::get('PS_OS_BANKWIRE') is and number of ORDER STATE. you need to change it.

 

thank you for this information.It solved my problem.Keep it up brother

Link to comment
Share on other sites

  • 1 month later...
  • 1 month later...

In PS 1.5.6 there are 3 places where

Configuration::get('PS_OS_BANKWIRE')

should be replaced by ID of ORDER STATE:

  • \modules\bankwire\validation.php
  • \modules\bankwire\controllers\front\validation.php
  • \modules\bankwire\bankwire.php
Link to comment
Share on other sites

Ehm, I am interested, too.

And thanks again Vekia for being so heplful!

 

I am in the process of altering a module for the 1st time and my goil is plain and simple:

Altering the bankwire module into a custom invoice module.

 

I only need one so I can write invoices with Prestashop and have them have the proper IDs and all the other data.

Otherwise I would have to buy a 'custom invoice' module or write invoices with an external tool...

 

I stumbled upon the given line too and wonder how to use it:

validateOrder($cart->id, Configuration::get('PS_OS_

Can we just add, e.g., PS_OS_custom_invoice since this is the name/variable I choose to replace 'bankwire' in the php's.

 

I would check and try it my self via trial and error but after confirming the buy via invoice I am getting the famous
white page and so I can't check at the moment myself :)

Link to comment
Share on other sites

  • 2 months later...

Hello,

 

I am kinda posting for the first time so please excuse me if I break some forum rules. I installed prestashop for one of my clients. They got this PayU India module which I installed to their site. But when someone clicks Checkout with PayU, as soon as the customer is redirected to the payment gateway, s/he receives two emails!

 

One email states that the customer has paid the amount in full (though he didn't) and the other stating Awaiting Bank Wire Payment. Upon investigation of their code, I found the line in the hookPayment part of the code:

$payu->validateOrder((int)$cart->id, Configuration::get('PS_OS_BANKWIRE'), $total, $payu->displayName, NULL, NULL, (int)$currency->id, false, $customer->secure_key);

Here $payu is an instance of the Payu module object. I think Configuration::get('PS_OS_BANKWIRE') is setting the order status to Awaiting Bank Wire Payment and $total (being the total amount of the order) is setting the order as paid in full. Are my guesses correct? All I need to confirm is if this is an error on the part of the PayU module (cause if it is, I will get them to correct it for me).

Link to comment
Share on other sites

  • 1 year later...

Hi Jigar,

 

were you able to resolve the payu issue ? I too have the same problem. The thing is once the payu checkout is clicked, customer receives 2 emails about order confirmation, even though he closed the payment page. I believe the only way is to capture the success message and then order status to be changed accordingly.

Link to comment
Share on other sites

×
×
  • Create New...