Post by midotaha » Mon Apr 06, 2020 10:43 pm

Hi My Dears
Greetings!!
*i'm using OpenCart Version 3.0.3.2 .
i'm trying to add a new column at "Latest Orders" on admin dashboard , for example "column Phone"
this column should shown customer phone , to contact with him very fast , as screenshot 001 check on it
Image

how did i added that column ?! what is the code i used it ?!And what is the path ?!!
path :- .............\admin\language\en-gb\extension\dashboard\recent.php
Code:- $_['column_telephone'] = 'phone';
Image

path:-......\admin\controller\extension\dashboard\recent.php
Code:- 'telephone' => $result['customer_telephone'],
Image

path:- ..........\admin\view\template\extension\dashboard\recent_info.twig
code:- {{ column_telephone }}
Image

that is all i already added it , to get another column at "Latest Orders" but not working , or there is something i didn't do it , can you help me ;D ;D ?
Many Thanks for you

Newbie

Posts

Joined
Tue Nov 13, 2018 4:27 pm

Post by cyclops12 » Mon Apr 06, 2020 11:50 pm

Have you tried in the <td> {{ customer_telephone }} instead of column_telephone

Expert Member

Posts

Joined
Sun Sep 27, 2015 1:10 am

Post by midotaha » Tue Apr 07, 2020 12:30 am

Yes , I tried that and it didn't work

Newbie

Posts

Joined
Tue Nov 13, 2018 4:27 pm

Post by OSWorX » Tue Apr 07, 2020 12:48 am

Shoundn't be:

Code: Select all

order.customer_telephone 
Because you are assigning this value into the order array.

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by midotaha » Tue Apr 07, 2020 1:01 am

You mean sir , this wouldn't success ?! because this section or this area for Order details only !!
I thinks i take data from some table or something else

Newbie

Posts

Joined
Tue Nov 13, 2018 4:27 pm

Post by OSWorX » Tue Apr 07, 2020 1:59 am

No reason to write everything in bold!
And what you think is one, what is real another thing.

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria
Who is online

Users browsing this forum: No registered users and 5 guests