Jump to content

Module Perso invisible


Recommended Posts

Bonsoir,

 

j'ai commencé à développer un module pour mon site prestashop 1.6.

Celui-ci est installé sans erreurs, je l'ai même greffé au hook voulu.

Cependant, le module n'affiche pas le TPL que je lui demande d'afficher. 

voici mon code: 

<?php   

if (!defined('_PS_VERSION_'))
  exit;

class CarteBancaire extends Module
{
  public function __construct()
  {
    $this->name = 'cartebancaire';
    $this->tab = 'perso';
    $this->version = '1.0';
    $this->author = 'Adrien QUINT';
    $this->need_instance = 0;
    $this->ps_versions_compliancy = array('min' => '1.5', 'max' => '1.6');
    $this->bootstrap = true;
 
    parent::__construct();
 
    $this->displayName = $this->l('Carte Bancaire -B\' COMM');
    $this->description = $this->l('Module B\'Comm de paiement par carte bancaire');
 
    $this->confirmUninstall = $this->l('etes-vous sur(e)? vous ne pourrez-plus payer par carte bancaire !!');
 
    if (!Configuration::get('CARTEBANCAIRE_NAME'))      
      $this->warning = $this->l('Pas de nom defini');
  }

  public function install()
  {
   if (!parent::install() || !$this->registerHook('payment'))
      return false;
    return true;
  }


  public function hookPayment($params)
  {
    
    return $this->display(__FILE__, 'cartebancaire.tpl');
  }

  
}

Pourtant, le fichier /modules/cartebancaire/views/templates/hook/cartebancaire.tpl
existe bel et bien !

Je suis perdu :/

Merci d'avance !

Edited by Glowned (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...