I would like some assistance in displaying the date the customer joined the website on the account page. For example, Member since May 1, 2020.
OC 3.0.3.2, Default Theme
Thanks
Regards,
Nightwing
Access to my Free Extensions: https://www.opencart.com/index.php?rout ... =nightwing
before:
Code: Select all
$data['column_left'] = $this->load->controller('common/column_left');
Code: Select all
$customer_info = $this->model_account_customer->getCustomer($this->customer->getId());
$data['member'] = $customer_info['firstname'].' '.$customer_info['lastname'];
$data['member_since'] = substr($customer_info['date_added'],0,10);
before:
Code: Select all
<h2>{{ text_my_account }}</h2>
Code: Select all
<h3>{{ member }}</h3>
<p>{{ member_since }}</p>
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
For v.1.5.6.x Versions, it requires only one Line in the 'controller' account.php File, just to mention it.
---
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
letxobnav wrote: ↑Thu Oct 08, 2020 9:42 amin catalog/controller/account/account.php
before:add:Code: Select all
$data['column_left'] = $this->load->controller('common/column_left');
in catalog/view/theme/default/template/account/account.twigCode: Select all
$customer_info = $this->model_account_customer->getCustomer($this->customer->getId()); $data['member'] = $customer_info['firstname'].' '.$customer_info['lastname']; $data['member_since'] = substr($customer_info['date_added'],0,10);
before:add:Code: Select all
<h2>{{ text_my_account }}</h2>
clear your caches.Code: Select all
<h3>{{ member }}</h3> <p>{{ member_since }}</p>
Regards,
Nightwing
Access to my Free Extensions: https://www.opencart.com/index.php?rout ... =nightwing
So if it's fixed please write [SOLVED] at the start of the post title.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk