• Resolved ginpresso

    (@ginpresso)


    Hello,

    Congratulations on this plugin.
    I use woocommerce and astra theme. I’m facing 2 issues with your plugin in my account page order table of woocommere.

    1) Translation issue
    I can’t change the word “completed” assigned to the order status with “shipped”.

    I have tried the following solutions with no success:

    1) Use hooks to ‘wc_order_is_editable’ and ‘bulk_actions-edit-shop_order’ filter: this changes the word in admin > orders
    2) Use hooks to ‘gettext’ filter: , this changes also the word in admin > reviewX > WC settings
    3) Translated with “loco translate” as indicated in your guide https://reviewx.io/docs/how-to-update-reviewx-translation-using-loco-translate/
    4) Traslate with poEdit and upload mo. and po. file to wp-content/languages/plugins
    5) Edit your order-table.php changing all “completed” words with “shipped” words

    2) In the action column of order table I can see only the “view” button and not the “submit review” button.

    Would it be possible to solve this problem? Thank you

    Alberto

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Arifur Rahman Naim

    (@arnaim)

    You are the man, dear.?? Tried so many things. Very impressive ??
    I hope you are safe, and thanks for your nice words.

    Alberto,
    1. You are right. The status is displaying from the order-table.php
    But on this page, we print the order status from WooCommerce. Sample screenshot: https://prnt.sc/vn2rvw Which means whatever the status of an order we just printing here.

    Can you please confirm that you have changed the order name ‘Completed’ to ‘Shipped’ globally for all over the WooCommerce? Your response will help us to understand the scenario more clearly.

    2. To see the ‘Submit Review’ button, please ensure you enabled the correct order status to allow the review submission from the settings (screenshot: https://prnt.sc/vn2zi5)

    I would love to hear back from your side. Thank you ??
    – Naim

    Thread Starter ginpresso

    (@ginpresso)

    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

    Plugin Author Arifur Rahman Naim

    (@arnaim)

    Great, thank you so much, Alberto, for your detailed explanations. ??

    As long as the WooCommerce my-account order list shows the modified status label, we’ll follow the WooCommerce style.

    Please allow us some time. We are about to release an update, and we’ll make sure these changes are also being released. As soon as the update is available, we’ll let you know right away.

    Thanks for being with ReviewX ??

    Thread Starter ginpresso

    (@ginpresso)

    Thank you for your answer Naim. Can’t wait for the update to come out!

    Plugin Author Arifur Rahman Naim

    (@arnaim)

    Hi @ginpresso
    I hope you are doing great. ??

    Have news for you:
    We just released an update, ‘ReviewX-v1.2.3‘. In this release, we have fixed the status renaming issue from the My-account order table. Now it’ll display the same status names as shown over ‘Dashboard > WooCommerce > Orders’

    Note: quick links to see the latest updates.
    ?? Change-logs
    ?? Documentation
    ??Join Our Facebook Community

    Thank you,
    Naim

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Woocommerce My account order table problem’ is closed to new replies.