Post by elpidios » Fri Aug 31, 2018 10:24 pm

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

New member

Posts

Joined
Wed Feb 28, 2018 2:26 am

Post by straightlight » Fri Aug 31, 2018 10:49 pm

From account.php file, you could simply use:

Code: Select all

$data['email'] = $this->customer->getEmail();
Then, in your account.twig file, you could output:

Code: Select all

{% if email %}
{{ email }}
{% endif %}
Then, apply this FAQ: viewtopic.php?f=176&p=733002#p718325

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


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by elpidios » Sat Sep 01, 2018 4:20 am

Thanks a lot. Working fine. I also created it on VQMOD :) . opencart is not so difficult as i was thinking in terms of easy plugins

New member

Posts

Joined
Wed Feb 28, 2018 2:26 am
Who is online

Users browsing this forum: JessiesBoutique, pprmkr and 499 guests