Jump to content

Klarna order-confirmation.tpl not showing


Recommended Posts

Hello,

 

 

after placing a successful order with Klarna it doesn't display the Klarna's order-confirmation.tpl but rather the themes/default/order-confirmation.tpl. Although it says in the klarnaprestashop.php:

 

public function hookDisplayOrderConfirmation($params)
{
 if ($params['objOrder']->module != $this->name)
  return false;
 if ($params['objOrder'] && Validate::isLoadedObject($params['objOrder']) && isset($params['objOrder']->valid))
 {
  if (isset($params['objOrder']->reference))
$this->smarty->assign('klarna_order', array('reference' => $params['objOrder']->reference, 'valid' => $params['objOrder']->valid));
  return $this->display(__FILE__, 'tpl/order-confirmation.tpl');
 }
}

 

Other modules use the 'hookPaymentReturn' instead of the 'hookDisplayOrderConfirmation' but changing this didn't change the issue.

 

Anybody else having this problem?

Edited by outlet.ee (see edit history)
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...