Twilli Posted February 18, 2020 Share Posted February 18, 2020 (edited) Prestashop 1.6.1.10 Hallo, ich würde gerne die jeweilige customer id aus der Datenbank ps_customer > id_customer des Kunden in dessen Kundenbereich (identitiy.tpl oder adresses.tpl) anzeigen lassen. Geht das ? Vielen Dank!!!! Edited February 18, 2020 by Twilli (see edit history) Link to comment Share on other sites More sharing options...
0 Twilli Posted February 19, 2020 Author Share Posted February 19, 2020 (edited) Gelöst !! classes/controller/FrontController.php $this->context->smarty->assign(array( 'id_currency_cookie' => (int)$currency->id, 'logged' => $this->context->customer->isLogged(), 'customerNumber' => ($this->context->customer->logged ? $this->context->customer->id : false) )); Das ganze dann in/als override Und in der gewünschten .tpl über {$customerNumber} aufrufen Grüße Edited February 19, 2020 by Twilli (see edit history) Link to comment Share on other sites More sharing options...
Question
Twilli
Prestashop 1.6.1.10
Hallo,
ich würde gerne die jeweilige customer id aus der Datenbank ps_customer > id_customer des Kunden in dessen Kundenbereich (identitiy.tpl oder adresses.tpl) anzeigen lassen.
Geht das ?
Vielen Dank!!!!
Link to comment
Share on other sites
1 answer to this question
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