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?

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


User avatar
Guru Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, 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
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.


User avatar
Expert 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

User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

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
Last edited by xxvirusxx on Fri Jul 19, 2019 6:34 pm, edited 3 times in total.

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

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.

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

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 93 guests