arm15 Posted May 22, 2017 Share Posted May 22, 2017 Prestasop: 1.6.1.12 Mon site: https://locomotif-shop.com/ Bonjour, je souhaiterai enlever définitivement la case à cocher "Recevoir des offres de nos partenaires" Evidemment, en passant pas le B.O-> Préférences-> Clients-> Activer l'Opt-in, j'ai cliqué sur "Non".....Mais ça ne fonctionne pas. Merci de m'expliquer ou et comment faire avec mon ftp Link to comment Share on other sites More sharing options...
arm15 Posted May 25, 2017 Author Share Posted May 25, 2017 Je reviens vers vous, car je n'ai toujours pas trouvé de solutions. Je sais qu'il faut que j'aille dans les fichiers Authentification.tpl , Identity.tpl et je pense aussi dans leurs css respectifs, mais je n'y connais pas grand chose en code et j'ai franchement peur de faire des conneries. Link to comment Share on other sites More sharing options...
Alexandre Carette Posted May 25, 2017 Share Posted May 25, 2017 Salut, ligne 161 de ton iddentity.tpl de ton theme tu as ca ? {if isset($optin) && $optin} <div class="checkbox"> <label for="optin"> <input type="checkbox" name="optin" id="optin" value="1" {if isset($smarty.post.optin) && $smarty.post.optin == 1} checked="checked"{/if}/> {l s='Receive special offers from our partners!'} {if isset($required_fields) && array_key_exists('optin', $field_required)} <sup> *</sup> {/if} </label> </div> {/if} Link to comment Share on other sites More sharing options...
arm15 Posted May 25, 2017 Author Share Posted May 25, 2017 (edited) Bonjour, oui, j'ai exactement ça {if isset($optin) && $optin} <div class="checkbox"> <label for="optin"> <input type="checkbox" name="optin" id="optin" value="1" {if isset($smarty.post.optin) && $smarty.post.optin == 1} checked="checked"{/if}/> {l s='Receive special offers from our partners!'} {if isset($required_fields) && array_key_exists('optin', $field_required)} <sup> *</sup> {/if} Edited May 25, 2017 by arm15 (see edit history) Link to comment Share on other sites More sharing options...
Alexandre Carette Posted May 25, 2017 Share Posted May 25, 2017 (edited) Il y a un pb donc dans ton prestashop au niveau de la variable $optin car il ne prend pas en compte la condition. la solution la plus rapide est d'effacer ce morceau de code ou de le commenter... voir commentaire en smarty: https://www.prestashop.com/forums/topic/272396-fichiers-tpl-commentaires-smarty-ou-html/ {* {if isset($optin) && $optin} <div class="checkbox"> <label for="optin"> <input type="checkbox" name="optin" id="optin" value="1" {if isset($smarty.post.optin) && $smarty.post.optin == 1} checked="checked"{/if}/> {l s='Receive special offers from our partners!'} {if isset($required_fields) && array_key_exists('optin', $field_required)} <sup> *</sup> {/if} </label> </div> {/if} *} cordialement Edited May 25, 2017 by Alexandre Carette (see edit history) Link to comment Share on other sites More sharing options...
arm15 Posted May 25, 2017 Author Share Posted May 25, 2017 Je vais voir en essayant de le commenter. Link to comment Share on other sites More sharing options...
arm15 Posted May 25, 2017 Author Share Posted May 25, 2017 (edited) Ça marche pas, j'ai mis l'option sur "non" dans le BO, vider le cache et cela me donne toujours cette satanée fenêtre: Edited May 25, 2017 by arm15 (see edit history) Link to comment Share on other sites More sharing options...
arm15 Posted June 1, 2017 Author Share Posted June 1, 2017 Je fais un p'tit up, car je n'ai toujours pas trouvé de solution à mon problème Link to comment Share on other sites More sharing options...
arm15 Posted June 1, 2017 Author Share Posted June 1, 2017 Je ne sais même pas ce que c'est.....!!! Link to comment Share on other sites More sharing options...
arm15 Posted June 2, 2017 Author Share Posted June 2, 2017 Bonjour, C'est bien joli tout ça, mais je n'ai personnellement jamais changé le comportement par défaut de mes modules et autres, je ne m'y connais pas assez pour aller traficoter là dedans. As tu une idée de ce que je pourrai éventuellement faire? Link to comment Share on other sites More sharing options...
Alexandre Carette Posted June 2, 2017 Share Posted June 2, 2017 Hello, tu peux éventuellement regarder dans ton dossier overrides et nous dire si tu vois des fichiers comme proposé ci dessus.... cdt Link to comment Share on other sites More sharing options...
arm15 Posted June 2, 2017 Author Share Posted June 2, 2017 Bonjour, dans le dossier overrides, il y a des dossiers, comme, classes, controllers, modules et ensuite je fais quoi?, car ceux-ci comportent d'autres dossiers et fichiers... Link to comment Share on other sites More sharing options...
Alexandre Carette Posted June 2, 2017 Share Posted June 2, 2017 ben liste nous les fichiers... Link to comment Share on other sites More sharing options...
arm15 Posted June 2, 2017 Author Share Posted June 2, 2017 voila ce qu'il y a dans les fichiers (en images), je précise qu'il n'y a rien dans le dossier "modules->blocklayered": Link to comment Share on other sites More sharing options...
Alexandre Carette Posted June 2, 2017 Share Posted June 2, 2017 dommage de ne pas avoir les controllers front Link to comment Share on other sites More sharing options...
arm15 Posted June 2, 2017 Author Share Posted June 2, 2017 (edited) Ben, y a qu'a demander! Edited June 2, 2017 by arm15 (see edit history) Link to comment Share on other sites More sharing options...
Alexandre Carette Posted June 2, 2017 Share Posted June 2, 2017 Merci peut tu donner le code de l'override Classes / Customer.php stp Link to comment Share on other sites More sharing options...
arm15 Posted June 2, 2017 Author Share Posted June 2, 2017 <?php /** * Page Cache powered by Jpresta (jpresta . com) * * @author Jpresta * @copyright Jpresta * @license You are just allowed to modify this copy for your own use. You must not redistribute it. License * is permitted for one Prestashop instance only but you can install it on your test instances. */ class Customer extends CustomerCore { /* * module: pagecache * date: 2017-03-30 22:40:06 * version: 4.00 */ public static function getDefaultGroupId($id_customer) { $context = Context::getContext(); if (!$id_customer && isset($context->cookie) && isset($context->cookie->pc_group_default)) { $id_group = (int) $context->cookie->pc_group_default; if ($id_group > 0) { return $context->cookie->pc_group_default; } } return parent::getDefaultGroupId($id_customer); } /* * module: pagecache * date: 2017-03-30 22:40:06 * version: 4.00 */ public static function getGroupsStatic($id_customer) { $context = Context::getContext(); if (!$id_customer && isset($context->cookie) && isset($context->cookie->pc_groups)) { $groups = explode(',', $context->cookie->pc_groups); if ($groups !== false && count($groups) > 0) { return $groups; } } return parent::getGroupsStatic($id_customer); } /* * module: pagecache * date: 2017-03-30 22:40:06 * version: 4.00 */ public function isLogged($with_guest = false) { $context = Context::getContext(); $caller = $this->getCallerMethod(); if (strcmp($caller,'getHookModuleExecList') === 0 || strcmp($caller,'privateProcess') === 0) { if ((!isset($context->customer) || !$context->customer->id) && isset($context->cookie) && isset($context->cookie->pc_is_logged)) { if ($with_guest) { return $context->cookie->pc_is_logged; } else { return $context->cookie->pc_is_logged_guest; } } } return parent::isLogged($with_guest); } /* * module: pagecache * date: 2017-03-30 22:40:06 * version: 4.00 */ private function getCallerMethod() { $traces = debug_backtrace(); if (isset($traces[2])) { return $traces[2]['function']; } return null; } } Link to comment Share on other sites More sharing options...
arm15 Posted June 2, 2017 Author Share Posted June 2, 2017 C'est le module "page-cache" apparemment... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now