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
- Website
Profile Information
-
Activity
Developer
herve25's Achievements
-
Hello, As your class is in the override directory rename it "QuickpayAPI" instead of QuickpayAPICore. It may works. Regards,
-
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,
-
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.
- 21 replies
-
- back office
- ajout filtre
-
(and 1 more)
Tagged with:
-
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,
- 21 replies
-
- back office
- ajout filtre
-
(and 1 more)
Tagged with:
-
How To Redirect From Login Page To My Custom Cms Page?
herve25 replied to revv83's topic in Core developers
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); } -
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(); } } ?>
-
Fonction en sortie d'inscription
herve25 replied to vermich's topic in PrestaShop pour les développeurs
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/ -
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,
.png.022b5452a8f28f552bc9430097a16da2.png)