Jump to content

Toinou_74

Members
  • Posts

    26
  • Joined

  • Last visited

1 Follower

Profile Information

  • First Name
    Baranzelli
  • Last Name
    74310

Recent Profile Visitors

164 profile views

Toinou_74's Achievements

  1. Bonjour Thierry, Je travail tous les jours pour mes propres clients prestashop, création de module, optimisation, debugage. Nous pouvons peu être trouver un moyen de travailler ensemble. je vous propose de s'appeler si vous êtes d'accord. Antoine [email protected]
  2. class AdminCustomersControllerCore extends AdminController et apres tu ajouts ce que tu veux comme modifs
  3. Salut, Oui effectivement, moi j'ai le meme probleme, donc j'ai overridé AdminCustomer, sauf le constructeur... Impossible.. et pourant j'ai fais un enorme boulot sur prestashop. Une gestion Commercial si ca t'interesse d'ailleur, mais impossble d'overrider correctement AdminCustomer. le mieux je pense, pour toi, c'est de copier coller tout adminCustomer dans l'override et de le modifier comme tu veux... Ps: tu peux me contacter par telephone mon numero est sur mon site. Antoine http://atelier-abz.fr
  4. Bonjour, J'ai developpé un export DE journal de vente, si cela vous interesse nous pouvons nous contacter Bien cordialement Antoine Atelier-@Bz a
  5. Prestashop Power... www.Atelier-abz.fr Mets ton post en RESOLU
  6. Good, That seem i forgot ?> at the end of my file...
  7. On chrome "Ctrl+Maj i" and search the class
  8. themes/default-bootstrap/css/global.css Check here Line 6864 .top-pagination-content ul.pagination li.active > span, .bottom-pagination-content ul.pagination li.active > span { color: #333; border-color: #dfdede #d2d0d0 #b0afaf #d2d0d0;} Line 6793 .top-pagination-content ul.pagination li > a, .top-pagination-content ul.pagination li > span, .bottom-pagination-content ul.pagination li > a, .bottom-pagination-content ul.pagination li > span { margin: 0 2px 0 0px; padding: 0; font-weight: bold; border: 0px solid; border-color: #ffffff #ffffff #ffffff #ffffff; display: block;}
  9. Yes i clear cache... when i override like that: <?php class Customer extends CustomerCore { public $id_employee; public function __construct($id = null) { Customer::$definition['fields']['id_employee'] = array('type' => self::TYPE_STRING, 'validate' => 'isString'); parent::__construct($id); } } id_employee is not registred in db, and when i override all the Customer Class and i add Id_employee, that works, strange...
  10. voila, ca devrais etre bon... (SELECT COUNT(*) FROM '._DB_PREFIX_.'orders o where o.valid =1 AND (o.id_customer = a.id_customer)) AS orders'; attention j'ai changé order par orders ligne 117, car order en sql c'est une commande... ca le fait moyen... J'aime pas trop mettre un "SELECT" comme J'ai fais mais ca marche... je pense que l'on pourait faire ca en LEFT JOIN J'espere que je réponds a ta question... ligne 70 : $this->_select = ' a.date_add, IF (YEAR(`birthday`) = 0, "-", (YEAR(CURRENT_DATE)-YEAR(`birthday`)) - (RIGHT(CURRENT_DATE, 5) < RIGHT(birthday, 5))) AS `age`, ( SELECT c.date_add FROM '._DB_PREFIX_.'guest g LEFT JOIN '._DB_PREFIX_.'connections c ON c.id_guest = g.id_guest WHERE g.id_customer = a.id_customer ORDER BY c.date_add DESC LIMIT 1 ) as connect, (SELECT COUNT(*) FROM '._DB_PREFIX_.'orders o where o.valid =1 AND (o.id_customer = a.id_customer)) AS orders'; $this->fields_list = array( 'id_customer' => array( 'title' => $this->l('ID'), 'align' => 'center', 'width' => 20 ), 'id_gender' => array( 'title' => $this->l('Title'), 'width' => 70, 'align' => 'center', 'icon' => $genders_icon, 'orderby' => false, 'type' => 'select', 'list' => $genders, 'filter_key' => 'a!id_gender', ), 'lastname' => array( 'title' => $this->l('Last name'), 'width' => 'auto' ), 'firstname' => array( 'title' => $this->l('First Name'), 'width' => 'auto' ), 'email' => array( 'title' => $this->l('Email address'), 'width' => 140, ), 'Company' => array( 'title' => $this->l('Company'), 'width' => 140, ), 'SIRET' => array( 'title' => $this->l('SIRET'), 'width' => 140, ), 'orders' => array( 'title' => $this->l('Coms'), 'width' => 60, ),
  11. Pas de probleme.. Avec plaisir... Contact moi si tu as des probleme.... Mets ton post en resolu
  12. Hi, fresh news, when i add 'id_employee' in original Customer.php (override) that works well, so is not my controller but my classes Customer.php is wrong $this->fields_list = array_merge($this->fields_list, array( 'total_spent' => array( 'title' => $this->l('Sales'), 'type' => 'price', 'search' => false, 'havingFilter' => true, 'align' => 'text-right', 'badge_success' => true [ ...] 'id_employee' => array( 'title' => $this->l('employee'), 'width' => 70, 'align' => 'center', 'type' => 'text', 'orderby' => true ) )); if someone can help me...
×
×
  • Create New...