Jump to content

order-confirmation.tpl in new module


jnlanoue

Recommended Posts

Hi,

 

I have a new module for which I put an order-confirmation.tpl file in the views/templates/hook but for some reason that file is not beeing used by my store instead it is the default one.

 

I've put this line in the php file of the module :

return $this->display(__FILE__, 'views/templates/hook/order-confirmation.tpl');

 

I am wondering if it would be this condition that cause this situation:

 

public function hookOrderConfirmation($params)
    {
        if (!Tools::getIsset($params['objOrder']) || ($params['objOrder']->module != $this->name))
                return false;

 

How can I validate it?

 

Any help...?

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