Post by KarimIO » Thu Jul 18, 2019 5:59 am

Hey there! I can't update my admin dashboard for some reason. I want to add a feature to search by phone number but no updates are occuring. I'm changing:
admin/view/template/sale/order_form.twig
admin/controller/customer/customer.php (autocomplete)
admin/model/customer/customer.php (getCustomers)

I also tried removing and re-adding cache as well as refreshing in the admin dashboard, and removing the cache manually in /system/storage/cache, to no avail. Can someone help?

Newbie

Posts

Joined
Thu Jul 18, 2019 5:05 am

Post by paulfeakins » Thu Jul 18, 2019 5:47 pm

Something very strange is going on if the route in admin you're browsing to is customer/customer and you're not seeing the controller customer/customer.php

Are you definitely editing the right files in the right place?

Put a test.txt file in the admin root and see if you can browse to it?

For quick, professional OpenCart support please email info@antropy.co.uk


User avatar
Expert Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - Reigate, Surrey, United Kingdom

Post by KarimIO » Thu Jul 18, 2019 8:34 pm

I've tried editing admin/index.html and could see the changes. I could also edit catalog/ just fine. the problem is with all the files in admin and I don't know why.

Newbie

Posts

Joined
Thu Jul 18, 2019 5:05 am

Post by letxobnav » Thu Jul 18, 2019 9:59 pm

admin/controller/customer/customer.php
admin/model/customer/customer.php
admin/view/template/customer/customer_list.twig

in those files do exactly with phone number as is done with filter_name.

Crystal Light Centrum Taiwan
“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.


Active Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by KarimIO » Thu Jul 18, 2019 11:02 pm

letxobnav wrote:
Thu Jul 18, 2019 9:59 pm
admin/controller/customer/customer.php
admin/model/customer/customer.php
admin/view/template/customer/customer_list.twig

in those files do exactly with phone number as is done with filter_name.
Well I've tried editing the first two. Also the form I wanted to change was Admin->Sales->Orders->New Order, not a customer list.

Newbie

Posts

Joined
Thu Jul 18, 2019 5:05 am

Post by xxvirusxx » Fri Jul 19, 2019 12:39 am

You want something like this extension?

https://www.opencart.com/index.php?rout ... n_id=30498

My Extensions | OC 3.0.3.1, 3.0.2.0, 2.3.0.2 with bugs fixed | 2.3.0.2 Custom version | Buy me a beer or coffee


Active Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm

Post by KarimIO » Fri Jul 19, 2019 2:12 am

Yeah like that. But this doesn't support 3.0

Newbie

Posts

Joined
Thu Jul 18, 2019 5:05 am

Post by xxvirusxx » Fri Jul 19, 2019 2:21 am

Small updates:

- removed red color
- added option to sort ASC or DSC by phone numbers

Attachments

Screenshot_2019-07-19_13-33-31.png

Screenshot_2019-07-19_13-33-31.png (42.47 KiB) Viewed 174 times

Last edited by xxvirusxx on Fri Jul 19, 2019 6:34 pm, edited 3 times in total.

My Extensions | OC 3.0.3.1, 3.0.2.0, 2.3.0.2 with bugs fixed | 2.3.0.2 Custom version | Buy me a beer or coffee


Active Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm

Post by KarimIO » Fri Jul 19, 2019 2:31 am

Doesn't seem to work? No changes.

Newbie

Posts

Joined
Thu Jul 18, 2019 5:05 am

Post by xxvirusxx » Fri Jul 19, 2019 2:37 am

File update. Download again.
Should work now.
Tested on 3.0.3.1.

Attachments

Screenshot_2019-07-18_21-39-50.png

Screenshot_2019-07-18_21-39-50.png (31.57 KiB) Viewed 219 times

Screenshot_2019-07-18_21-37-58.png

Screenshot_2019-07-18_21-37-58.png (66.11 KiB) Viewed 220 times


My Extensions | OC 3.0.3.1, 3.0.2.0, 2.3.0.2 with bugs fixed | 2.3.0.2 Custom version | Buy me a beer or coffee


Active Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm

Post by ostechnologies » Fri Jul 19, 2019 3:27 pm

The above mention extension is working fine. You can also go for this extension https://www.opencart.com/index.php?rout ... n_id=35648

Opencart Expert | sales[at]ost.agency
Skype - manish.osuniverse | Gtalk - manishmt

Extensions for Opencart @ https://www.ost.agency/product/product- ... extensions
ost.agency - ecommerce website design, development and digital company


User avatar
Active Member

Posts

Joined
Mon Apr 06, 2015 1:30 pm
Who is online

Users browsing this forum: No registered users and 35 guests