ginpresso
Forum Replies Created
-
Thank you for your answer Naim. Can’t wait for the update to come out!
Dear Naim,
thanks for your quick and accurate reply.
1) I confirm you that I have changed the word “completed” using the following hooks:
// rename order status in the dashboard > woocommerce > orders, table and details:
add_filter( 'wc_order_statuses', 'wc_renaming_order_status' ); function wc_renaming_order_status( $order_statuses ) { foreach ( $order_statuses as $key => $status ) { if ( 'wc-completed' === $key ) $order_statuses['wc-completed'] = _x( 'Shipped', 'Order status', 'woocommerce' ); } return $order_statuses; }
screenshots:
https://prnt.sc/vn4y8y
https://prnt.sc/vn4xqx// rename order status in the bulk edit order list dropdown
add_filter( 'bulk_actions-edit-shop_order', 'custom_dropdown_bulk_actions_shop_order', 20, 1 ); function custom_dropdown_bulk_actions_shop_order( $actions ) { $actions['mark_completed'] = __( 'Shipped', 'woocommerce' ); return $actions; }
screenshots: https://prnt.sc/vn4ylm
// rename order status in the top menu:
foreach( array( 'post', 'shop_order' ) as $hook ) { add_filter( "views_edit-$hook", 'shop_order_modified_views' ); } function shop_order_modified_views( $views ){ if( isset( $views['wc-completed'] ) ) $views['wc-completed'] = str_replace( 'Completed', __( 'Shipped', 'woocommerce'), $views['wc-completed'] ); return $views; }
screenshot: https://prnt.sc/vn4ytl
// Change text strings
function my_text_strings( $translated_text, $text, $domain ) { switch ( $translated_text ) { case 'Completed' : $translated_text = __( 'Shipped', 'woocommerce' ); break; case 'completed' : $translated_text = __( 'shipped', 'woocommerce' ); break; } return $translated_text; } add_filter( 'gettext', 'my_text_strings', 20, 3 );
This hook changed the word also in the admin > reviewX > WC settings
screenshot: https://prnt.sc/vn4z2y
If I deactivate ReviewX i can see the status “shipped” in the my account page order table of woocommere.
screenshot: https://prnt.sc/vn4z8u
But with your plugin activated the status is “completed”
screenshot: https://prnt.sc/vn4zxd
2) I have enabled the order status in reviewX > WC settings and now I can see the ‘Submit Review’ button in the order table column. Thank you!
I can’t wait to find a solution to this problem!
Thank you