Post by Keira75 » Wed Apr 08, 2020 8:25 pm

I want to add the customer first name on the Journal theme top menu module. I am adding {{ text_logged }} in top-menu.twig but it can not get text_logged from controller. How can I get text_logged from catalog/controller/common/header.php?

Code: Select all

{% if logged %}
   {{ text_logged }}
{% endif %}

$data['text_logged'] = sprintf($this->language->get('text_logged'), $this->url->link('account/account', '', true), $this->customer->getFirstName(), $this->url->link('account/logout', '', true));
I want to see "Hello John Do" on the Journal theme top menu $ US Dollar instead.

Official Website


Newbie

Posts

Joined
Wed Apr 08, 2020 8:20 pm

Post by straightlight » Wed Apr 08, 2020 8:39 pm

This topic has now been moved to the OpenCart 3.0 Support > General Support section of the forum.

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 paulfeakins » Thu Apr 09, 2020 6:59 pm

Keira75 wrote:
Wed Apr 08, 2020 8:25 pm
How can I get text_logged from catalog/controller/common/header.php
Journal has its own controllers, look in the journal folder.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom
Who is online

Users browsing this forum: No registered users and 11 guests