Hi
I would like somehow to echo the email address of a logged in customer, at the customer page.
I think that i have to change account.php to the controller and also the twig file but I am not sure how to do it. Please help me
I think is something very easy for someone who knows
From account.php file, you could simply use:
Then, in your account.twig file, you could output:
Then, apply this FAQ: viewtopic.php?f=176&p=733002#p718325
This should already solved the issue.
Code: Select all
$data['email'] = $this->customer->getEmail();
Code: Select all
{% if email %}
{{ email }}
{% endif %}
This should already solved the issue.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Who is online
Users browsing this forum: JessiesBoutique, pprmkr and 499 guests