Jump to content

how can i change the order state in v1.6


langziyang

Recommended Posts

you have to find where the module calls the validateOrder function.  Search through the module code for that function and then provide that line of code to us

 

It is going to look something like this...

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

 

Link to comment
Share on other sites

 

you have to find where the module calls the validateOrder function.  Search through the module code for that function and then provide that line of code to us

 

It is going to look something like this...

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

there is my peyment module: hookpayment function is display the payments_gateways, when select this gateways,will display order summary and display {$link->getModuleLink('chinabank', 'validation', [], true)|escape:'html'}。when click to this link(from),build order to sql and have button link to gateway(online payment),when checkout success,the gateway will return getModuleLink('chinabank','return_page'), this return_page will receive payment state。if success, change order state is Configuration::get("PS_OS_PAYMENT").

there is problem:when use validateOrder function befor ,return_page can get the cart id。 use validateOrder after(checkout success return to return_page) the cart id is empty。so how i need do it?

 

ps:chinese people, english is so bad^-^

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...