ghourbanian
Forum Replies Created
-
I make it progress now I have all of my shop orders but there is a new problem
it shows the shop orders that has no paid date between the other orders! they should go on the bottom of list.function action_parse_query( $query ) { global $pagenow; // Initialize $query_vars = &$query->query_vars; // Only on WooCommerce admin order list if ( is_admin() && $query->is_main_query() && $pagenow == 'edit.php' && $query_vars['post_type'] == 'shop_order' ) { // Your meta key $meta_key = '_date_paid'; // Define an additional meta query $meta_query[] = array( 'relation' => 'OR', array( 'key' => $meta_key, 'compare' => 'EXISTS', ), array( 'key' => $meta_key, 'compare' => 'NOT EXISTS', ) ); // Set $query->set( 'orderby', 'meta_value_num' ); $query->set( 'order', 'DESC' ); $query->set( 'meta_query', $meta_query ); } } add_action( 'parse_query', 'action_parse_query', 10, 1 );
I wrote this code it doesn’t show any order but paid orders.
after applying this code nothing shows in my orders list except the orders that have paid successfully actually only posts that have paid_date meta data. here is my codes:` function sp_41964737_custom_shop_orders_order( $query ){
global $typenow;if( is_admin() && $query->is_main_query() && $typenow == ‘shop_order’ ){
$query->set( ‘meta_key’, ‘_date_paid’ );
$query->set( ‘orderby’, ‘meta_value_num’ );
$query->set( ‘order’, ‘DESC’ );
}
}
add_action( ‘parse_query’, ‘sp_41964737_custom_shop_orders_order’ );`- This reply was modified 2 years, 11 months ago by ghourbanian.
Forum: Plugins
In reply to: [Gravity PDF] Html Blocks are printed in PDF as Code not complied resultI’m sorry maybe didn’t ask question correctly let me explain more:
I tried to populate an HTML filed with “gform_pre_render” hook it’s work fine and the filed are populate correct but after submit form all this data are gone and nothing printed in PDF file form that HTML field.
???? ?? ??? ????? ???? ???? ?? ???? ?? ?? ??????? ???? ?????? ??? ??? ??
???? ?????? ???? ?? ???? ??????? :Redux User Role Editor WooCommerce Group Attributes Woodmart Core WP Rocket ??????? ?????? ???????
????? ?? ??????? ???
- This reply was modified 3 years, 2 months ago by ghourbanian.
is there any chance to find solution?
thank you for your answer but as I think you know this solution makes effet all the wordpress fonctionality and I don’t want this, I nedd to just make a limitation for upload fileld, not whole of my web site!
i did updated to 1.2.4.2 free version here is my website link :
bidopin.comI was update to 1.2.4.2 but it’s not working at all, I try to clear cache many times but still not working!
I’ve same problem, is there any solution?
Forum: Plugins
In reply to: [WooCommerce] how to set default my account page to register new accountplease let me explain more
here is my-account page(it’s Persian you need to translate to English) :
https://bidopin.com/my-account/
as you can see login action is default action I need to set register as default.