Jump to content

[Solved] How to get id_customer in override ?


cybermad
 Share

Recommended Posts

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 by cybermad (see edit history)

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More