cybermad Posted December 29, 2020 Share Posted December 29, 2020 (edited) Bonjour, J'ai fait un remplacement classique "la classe AdminCustomersController étend AdminCustomersControllerCore" qui ajoute n'importe quelle colonne, qui contient un lien. Le lien a besoin de l'id_customer pour fonctionner mais je ne sais pas comment l'obtenir. Je cherche depuis plus de 5 heures ... L'élément "contexte" ne fonctionne pas. C'est tout ce dont j'ai besoin. Obtenez customer_id ... false, 'prefix' => '<a href="?controller=AdminMemberPlanDetail&token=' .$token . '&id_customer=' . $this->context->customer->id .'">', 'suffix' => '</a>' ) ) ); $this->_select .= ', ( SELECT abo.expir_on FROM ' . _DB_PREFIX_ . 'ps_member_plan_detail abo WHERE abo.id_customer = a.id_customer) as abonnement '; Merci de votre aide. MODIFICATEUR: Prestashop 1.7.3 Edited December 30, 2020 by cybermad (see edit history) Link to comment Share on other sites More sharing options...
ventura Posted December 30, 2020 Share Posted December 30, 2020 try with $customer->id Link to comment Share on other sites More sharing options...
cybermad Posted December 30, 2020 Author Share Posted December 30, 2020 yes but it does not work 😥 Link to comment Share on other sites More sharing options...
cybermad Posted December 30, 2020 Author Share Posted December 30, 2020 I have a solution: 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