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

Newbie

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.

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
Opencart.com Administrator / Quality Assurance Analyst / Programmer


Legendary Member
Online

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

Newbie

Posts

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

Users browsing this forum: No registered users and 18 guests