Add Search Field Dropdown in Woocommerce Order Search via functions file
₹600-1500 INR
완료함
게시됨 5년 이상 전
₹600-1500 INR
제출할때 지불됩니다
I am using the following code to limit the fields that woocommerce searches in when you search for an order - [login to view URL]
This limits the search fields to Order ID, company and email only, speeding up order search.
1. I need to have a dropdown along with the search field which will have Order ID, Billing Company, Billing Email as values. If we select Order ID, then the search should happen in Order IDs(_order_key) only, if we select Billing Company, then the search should happen in Billing Company(_billing_company) field only and so on.
2. This needs to be done via function only - I don't want to edit core wordpress/woocommerce files.
Hi,
I have been customising WP themes and plugins since 2012. I will use javascript to add a dropdown with the values 'Order ID', 'Billing Company', and 'Billing Email' and modify your code to limit the search fields based on the selected value.
Please note that I may be slow to reply the next couple of days.
With regards,
A. Sengupta
?? Customer's satisfaction is my goal ??
?? Also 100% Completion is happy of me and client. ??
?? Rest 1% is my creative idea and honest effort. ??
Looking to be your Good Venture along with your project!
Best Regards.