Find Jobs
Hire Freelancers

Update a Custom WordPress WooCommerce Class

$10-30 USD

Cancelled
Posted over 7 years ago

$10-30 USD

Paid on delivery
I need to display a custom user meta field on the "Add New Order" page of woocommerce when an admin is searching for a customer it needs to display their "DealerID" Here is the current code. class dealer_id_search_customers{ static function init(){ add_filter('woocommerce_json_search_found_customers', array(__class__, 'search'), 10, 1); } // search for user on Order Details page static function search($found_customers){ // code copied and adapted from woocommerce/includes/[login to view URL] json_search_customers() $term = wc_clean(stripslashes($_GET['term'])); $exclude = array(); if(!empty($_GET['exclude'])){ $exclude = array_map('intval', explode(',', $_GET['exclude'])); } $query = array(); $query['role'] = 'wholesale'; $query['meta_key'] = 'dealer_id'; $query['meta_value'] = $_GET['term']; $query['meta_compare'] = 'LIKE'; $customers_query = new WP_User_Query($query); $customers = $customers_query->get_results(); if(!empty($customers)){ // if query has results foreach($customers as $customer){ // split results into individuals if(!in_array($customer->ID, $exclude)){ $found_customers[$customer->ID] = $customer->display_name . ' (DealerID: ' . $customer->dealer_id . ' – ' . sanitize_email($customer->user_email) . ')'; } } } return $found_customers; } }
Project ID: 12259239

About the project

18 proposals
Remote project
Active 7 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Hey there! Welcome to Akkas Technologies! Hope you are doing well. This is Awais, I have worked on similar projects to what you are looking for, and I am confident I can exceed your expectations. Why do I say that? It is because it’s not only I who will work on your project. We are a group of talented web developers with a strong conceptual and practical knowledge of Information Technology. Our focus ranges from game development (IOS, Android) to complex software and web development and everything in between. We have worked on several international projects. We look forward to hear from you as our developers and designers strive to do the best they can. If you award it to us the project we promise to dedicate ourselves to it as if it’s our own. We strive to understand the clients’ requirements to serve them in the best possible way. Our dedication is to do quality work. For a sample project that includes software development please view: [login to view URL]
$25 USD in 1 day
4.9 (64 reviews)
8.1
8.1
18 freelancers are bidding on average $36 USD for this job
User Avatar
A proposal has not yet been provided
$55 USD in 1 day
5.0 (172 reviews)
6.9
6.9
User Avatar
I am a professional web designer and developer. Experience in with HTML, CSS, JS, jQuery, PHP, MySQL. Very familiar with WordPress , MAgento , wooCommerce , Bootstrap ,Plugins ,API's and its customization. I have a lot of experience in designing and development works. We can discuss any details over chat, Thanks :)
$50 USD in 1 day
4.9 (89 reviews)
6.3
6.3
User Avatar
I have been in this industry for 2 years and such jobs are my daily practice. This is my first time on this site and hence you can see that I do not have any ratings/testimonials to show you. I can assure you that if you work with me once, you will always work with me for these kind of projects. Feel free to contact me, Thanks!
$30 USD in 1 day
5.0 (33 reviews)
4.9
4.9
User Avatar
Hello, I believe, I have very competitive profile, skills and expertise to win your project. Rest, I assure you that I will not disappoint you. I would love to build long term business relationship with you. So, let me know if I've any good luck or if you have any further questions. Regards, Uzma Shaheen Saif
$40 USD in 1 day
5.0 (2 reviews)
3.4
3.4
User Avatar
We have read your requirements on your project & we are sure that we can accomplish this project. We have completed over 20 exams in Freelancer to prove our skills. You can see that we have excelled to the top with the grades. Kindly browse our portfolio to know us better. Our Profile: www.freelancer.com/u/websitepro.html Regarding your project: We do have few questions on your project. It would be great if you can come over chat to clear our doubts. We will be ready to start work on your project within 2 days.
$15 USD in 5 days
5.0 (6 reviews)
2.7
2.7
User Avatar
Hi, I have an intensive 8 years experience in website design and development. I am very versed in the design and development of websites using php, joomla, drupal, html, magento, wordpress, open cart, shopify, prestashop and ecommerce enabled CMS packages.I am also very good at customization and adjustments. I am very good at the resolution of errors, malwares and outright hack of the entire CMS. I will fix it and set it right. I am also very good at upgrading of entire themes, plugins and CMS packages without any hitch and increasing the loading speed of any website. I am a strong proponent of ecommerce CMS packages like Bigcommerce, Oscommerce, woocommerce,etc and i have designed and setup so many websites with them and I am also very good at design and development of mobile apps. I have read through the requirements of your offer and i can get that done within limited time. Thank you in anticipation of your favourable response
$30 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Portland, United States
5.0
27
Payment method verified
Member since Dec 3, 2015

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.