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.
The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.
Regards,
Straightlight
Programmer / Opencart Tester
Who is online
Users browsing this forum: No registered users and 31 guests