Code samples

Show "Shipment Tracking" in orders history (Pro feature)
add_filter( 'wpo_order_history_customer_table_headers', function($headers) { $new_headers = array(); foreach($headers as $header) { $new_he...
Mon, 7 Oct, 2019 at 9:59 AM
Search product by title and short description
add_filter( "wpo_custom_product_search", function($do_custom_search,$query_args,$term) { //don't do custom search , just set filter add_...
Fri, 11 Oct, 2019 at 9:28 AM
Differentiate the phone orders from orders made on the website
Please, adapt following code to modify order numbers add_filter( 'woocommerce_order_number', function($num,$order){ if( $order->get_meta(...
Tue, 24 Dec, 2019 at 4:48 PM
Use external address lookup APIs(craftyclicks.co.uk)
You must define javascript function wpo_get_address_autocomplete_init Sample  code  , you must replace YOUR_API_KEY with your key add_action(...
Mon, 20 Jan, 2020 at 8:00 PM
Fill delivery date/time for Order Delivery Date Pro for WooCommerce
1. Visit >WooCommerce>Phone Orders>Settings>Custom fields and paste following text to 1st textarea .  Adjust time slots to match yours!! Deli...
Wed, 15 Apr, 2020 at 2:30 PM
Search results show company instead of name of customer
//$customer is https://woocommerce.github.io/code-reference/classes/WC-Customer.html add_filter( "woocommerce_json_search_found_customers", funct...
Tue, 4 May, 2021 at 7:34 AM