Jump to content

How To Add Order Code In Confirmation.


AdityaYadav

Recommended Posts

Hi Guys, 


I want to add the order code in confirmation page during checkouts. I can see the order code getting displayed during Bankwire processing but not during Cash on delivery,


 


I have tried updating the cashondelivery.php using the following code


 

public function hookPaymentReturn($params)

{

if (!$this->active)

return ;

//$smarty->assign('id_order',$params[0]); //changes

 

return $this->display(__FILE__, 'confirmation.tpl');

}

 

and adding

 

{l s='Your order ID is:'} <span class="bold">{$id_order}

in the confirmation.tpl 

 

but it doesnt seem to work.

 

Link to comment
Share on other sites

public function hookPaymentReturn($params)
{
    if (!$this->active)
        return ;
    $smarty->assign('id_order', $params['objOrder']->id);
    return $this->display(__FILE__, 'confirmation.tpl');
}

you can use $params['objOrder'] its the order object, you can access the variables and methods using this object

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...