Jump to content

COD (Cashondelivery) module modification


Recommended Posts

Hi, I'm trying to pass order number to last step of COD - to confirmation.tpl
I've added line below to cashondelivery.php to hookPaymentReturn function (line before return;)

$order = new Order($params[0]);



In confirmation.tpl I have something like this:

Your order number: {$order}



but it doesn't work (displays only text, no number). Can You help?

Link to comment
Share on other sites

Unfortunately that doesn't work. I've added line like above and have blank screen on last confirmation after placing an order. I've got Prestashop 1.3.1, my files looks like this:

cashondelivery.php:

...
   public function hookPaymentReturn($params)
   {
       if (!$this->active)
           return ;

       $smarty->assign('order', $params[0]);
       return $this->display(__FILE__, 'confirmation.tpl');
   }



and confirmation.tpl:


{l s='Your order on' mod='cashondelivery'} {$shop_name}{l s='is complete.' mod='cashondelivery'}



   {l s='You have chosen the cash on delivery method.' mod='cashondelivery'}


{l s='Your order will be sent very soon.' mod='cashondelivery'}


Number of Your order: {$order}


{l s='For any questions or for further information, please contact our' mod='cashondelivery'} {l s='customer support' mod='cashondelivery'}.



Any ideas?

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