Find Jobs
Hire Freelancers

Update a Custom WordPress WooCommerce Class

$10-30 USD

Törölve
Kiadva ekkor: több mint 7 évvel ezelőtt

$10-30 USD

Teljesítéskor fizetve
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; } }
Projektazonosító: 12259239

A projektről

18 ajánlat
Távolról teljesíthető projekt
Aktiválva: 7 évvel ezelőtt

Szeretne pénzt keresni?

A Freelancer oldalán történő árajánlatadás előnyei

Határozzon meg költségvetést és időkeretet
Kapja meg fizetését a munkáért
Vázolja ajánlatát
Ingyen regisztrálhat és adhat árajánlatot munkákra
Neki odaítélve:
Felhasználó avatár
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 1 napon belül
4,9 (64 értékelés)
8,1
8,1
18 szabadúszó adott átlagosan $36 USD összegű árajánlatot erre a munkára
Felhasználó avatár
A proposal has not yet been provided
$55 USD 1 napon belül
5,0 (172 értékelés)
6,9
6,9
Felhasználó avatár
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 1 napon belül
4,9 (89 értékelés)
6,3
6,3
Felhasználó avatár
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 1 napon belül
5,0 (33 értékelés)
4,9
4,9
Felhasználó avatár
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 1 napon belül
5,0 (2 értékelés)
3,4
3,4
Felhasználó avatár
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 5 napon belül
5,0 (6 értékelés)
2,7
2,7
Felhasználó avatár
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 1 napon belül
0,0 (0 értékelés)
0,0
0,0

Az ügyfélről

UNITED STATES zászlója
Portland, United States
5,0
27
Fizetési mód hitelesítve
Tagság kezdete: dec. 3, 2015

Ügyfél-hitelesítés

Köszönjük! E-mailben elküldtük a linket, melyen átveheti ajándék egyenlegét.
E-mailje elküldése során valami hiba történt. Kérjük, próbálja újra.
Regisztrált Felhasználók Összes Közzétett Munka
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Előnézet betöltése
Hozzáférést adott a helymeghatározáshoz.
Belépési munkamenete lejárt, és kijelentkeztettük. Kérjük, lépjen be újra.