Jump to content

herve25

Members
  • Posts

    181
  • Joined

  • Last visited

  • Days Won

    2

herve25 last won the day on December 22 2015

herve25 had the most liked content!

Contact Methods

Profile Information

  • Activity
    Developer

Recent Profile Visitors

6,915,030 profile views

herve25's Achievements

Newbie

Newbie (1/14)

34

Reputation

11

Community Answers

  1. Hello, As your class is in the override directory rename it "QuickpayAPI" instead of QuickpayAPICore. It may works. Regards,
  2. Hello, You can read more about this module on my blog post : http://www.h-hennes.fr/blog/2015/11/10/prestashop-ajouter-automatiquement-les-clients-a-un-groupe-lors-de-linscription/ It's in french but you can translate it using chrome. When the module is installed a new link appears in the customer menu, in which you can create your specific rules. Regards,
  3. Bonjour, J'ai resté mon code, mais impossible de le faire fonctionner, malgré différents tests et modifications Je ne sais pas si quelque chose à changé depuis, mais il faudra du coup chercher une autre piste.
  4. Bonjour, Essayez plutot avec le code du dernier message : $this->fields_list['a!available_for_order'] = array( 'title' => $this->l('Dispo'), 'active' => 'a!available_for_order', 'filter_key' => 'a!available_for_order', 'align' => 'text-center', 'type' => 'bool', 'class' => 'fixed-width-sm', 'orderby' => 'false' ); Lorsque vous faites une surcharge d'une classe inutile d'en reprendre tout le contenu. Commencez uniquement avec ce code. class AdminProductsController extends AdminProductsControllerCore { } Cordialement,
  5. Hello, I've updated the module to version 0.2.0 It should works as you expect, but only for rule that stop processing. https://github.com/nenes25/prestashop_customerautogroups Regards,
  6. Hello you can try the folowing code if (!$this->context->customer->isLogged() && $id_cms == 6) { $cms = new Cms($id_cms , $this->context->language->id); $cmsLink = $this->context->link->getCMSLink($cms); Tools::redirect('index.php?controller=authentication?back='.$cmsLink); }
  7. It should be done in the next version, with also the possibility of cleans all others groups. But i don't know when i'll have time to do this. Regards,
  8. Sorry i give you a wrong path... In fact you juste have to add this file in the customerautogroups directory. modules/customerautogroups/updateGroups.php But to be clear this page won't be called automaticaly, as it's not really linked to the module. You have to call it with a cron task.
  9. Hello, This kind of behaviour is not applicable with the module way of working. As an user can be related to n groups, the default code cannot assign default group otherwise it will be a great mess. So in order to correct your problem i sugget you to use a specific script like this one which will automaticaly change the user's default group. You can put for example in file updateGroups.php in the customerautogroups module. So you can call it with an url like : http://yoursite.com/customerautogroups/updateGroups.php Like this : <?php include_once(dirname(__FILE__).'/../../config/config.php'); //Put here the ids of the groups for which you want to change the default groups $idGroupsDefaults = array(5,8); foreach ( $idGroupsDefaults as $idGroup ) { $group = new Group($idGroup); $customers = $group->getCustomers(); foreach ( $customers as $customer ) { $customer = new Customer($customer['id_customer'); $customer->id_default_group = $idGroup; $customer->save(); } } ?>
  10. Bonjour, J'ai récemment fait un module (gratuit) qui assigne automatiquement les groupes aux clients en fonction des paramètres d'inscriptions. Si ça peut vous intéresser : http://www.h-hennes.fr/blog/2015/11/10/prestashop-ajouter-automatiquement-les-clients-a-un-groupe-lors-de-linscription/
  11. OK great you have found from where the issue comes from :-) ! I've forget to speak about it .
  12. Hello, I've tested again, and in my case in works. Please note that the customer is also added on the default customer group. You can see my results on a new base prestashop in the followings screenshots :
  13. Hello, In fact it was only a display issue of the condition in administration. The data are well entered in the database. I've corrected it in the version 0.1.2 I've use it with success with the data you've entered, that's weird. Could you try again ? Regards,
  14. Hello, I've quickly updated the module in order to make it works under prestashop 1.5 I've not tested all the possibility , i let you try and let me know if everything is ok.
  15. Hello, I've done a module which is doing this. Unfortunately it works only under prestashop 1.6 for now. But you can try to fork it on github in order to make it work on your version . https://github.com/nenes25/prestashop_customerautogroups http://www.h-hennes.fr/blog/2015/11/10/prestashop-ajouter-automatiquement-les-clients-a-un-groupe-lors-de-linscription/ (FR) Regards,
×
×
  • Create New...