Woocommerce: Add column to ORDERS admin page with items purchased

I have already manage to create a column thanks to this: // ADDING COLUMN TITLES add_filter( ‘manage_edit-shop_order_columns’, ‘custom_shop_order_column’,11); function custom_shop_order_column($columns) { //add columns $columns[‘my-column1’] = __( ‘Column Title’,’theme_slug’); return $columns; } // adding the data for each orders by column (example) add_action( ‘manage_shop_order_posts_custom_column’ , ‘custom_orders_list_column_content’, 10, 2 ); function custom_orders_list_column_content( $column ) { global $post, … Read more

Woocommerce – Filter Variable Products by Variation Attributes and Variations Regular Price

So, I finally figured out the answer… This may help someone in future. Here is the query that will first filter variable products for attribute Quantity which has term id 75 and then it will further filter result for variations which has price 500 set. $query = array( ‘post_status’ => ‘publish’, ‘post_type’ => array(‘product’, ‘product_variation’), … Read more

Woocommerce – remove sale price field from dashboard [closed]

You cannot remove the field using a code but you can disable using the sale price across the store. To disable sale price function custom_wc_get_sale_price( $sale_price, $product ) { return $product->get_regular_price(); return $sale_price; } add_filter( ‘woocommerce_get_sale_price’, ‘custom_wc_get_sale_price’, 50, 2 ); add_filter( ‘woocommerce_get_price’, ‘custom_wc_get_sale_price’, 50, 2 ); To hide this field, you can use a CSS … Read more