Forum Replies Created

Viewing 15 replies - 1 through 15 (of 32 total)
  • Thread Starter eavinu

    (@eavinu)

    I managed to figure out the problem and fixed it.
    Actually because the new website had changes added to it, there was a conflict in the post ID’s so I changed the ID’s for all the orders to start after the last post of the bew website, I didn’t realize that I also have to match the ID to the wt_import_key column.
    Everything looks okay now, thanks for this great plugin!

    Thread Starter eavinu

    (@eavinu)

    Thank you for the fast answer Vladimir!

    Thread Starter eavinu

    (@eavinu)

    Hi bcworkz,
    Thank you for the fast answer.

    Actually, using Capability Manager Enhanced I was able to create a role for the group admins which allows them to only have the specified sections shown in Dashboard. (Woocommerce orders and Users).
    Sorry if I didn’t mention this before.
    Now what I need to achieve is that when a group admin enters the dashboard and goes into Users, he should be able to only see and edit the users which are members of his group. All the users which are not registered to his group should be hidden to him.
    Same goes for viewing and editing Woocommerce orders.
    To clarify, by groups I always refer to Buddypress groups.

    Any idea on how I can limit this specific role from visibility to the other BP group members info?

    Hi Alex,
    I didn’t see a reply to your last question and worked on the same thing just now.

    The path for html emails you pointed is correct and should work…
    The path for plain emails should be:
    public_html/wp-content/themes/twentysixteen-child/woocommerce/emails/plain/email-order-details.php

    If you mistyped here and actually did put it in the correct folder it should work fine.

    Thread Starter eavinu

    (@eavinu)

    Thank you very much!
    You have been very helpful as it is.
    Really appreciated.

    I still didn’t manage to get this field to be sortable under woocommerce orders but will update here if i do manage to do it.

    Meanwhile I also purchased (to extend the managing capabilities of the site admin) the plugin Users Insight and it gives great filtering capabilities for users info.

    Thanks Again for your time and assistance.

    Thread Starter eavinu

    (@eavinu)

    First of all thank you very much for all of your help!

    I will check with them and if they ask me too I will buy the pro version in order to be able to sort in the users list.

    For Woocommerce, I found this:

    add_filter( 'manage_edit-shop_order_columns', 'MY_COLUMNS_FUNCTION' );
    function MY_COLUMNS_FUNCTION($columns){
        $new_columns = (is_array($columns)) ? $columns : array();
        unset( $new_columns['order_actions'] );
    
        //edit this for you column(s)
        //all of your columns will be added before the actions column
        $new_columns['MY_COLUMN_ID_1'] = 'MY_COLUMN_1_TITLE';
        $new_columns['MY_COLUMN_ID_2'] = 'MY_COLUMN_2_TITLE';
        //stop editing
    
        $new_columns['order_actions'] = $columns['order_actions'];
        return $new_columns;
    }
    
    add_action( 'manage_shop_order_posts_custom_column', 'MY_COLUMNS_VALUES_FUNCTION', 2 );
    function MY_COLUMNS_VALUES_FUNCTION($column){
        global $post;
        $data = get_post_meta( $post->ID );
    
        //start editing, I was saving my fields for the orders as custom post meta
        //if you did the same, follow this code
        if ( $column == 'MY_COLUMN_ID_1' ) {    
            echo (isset($data['MY_COLUMN_1_POST_META_ID']) ? $data['MY_COLUMN_1_POST_META_ID'] : '');
        }
        if ( $column == 'MY_COLUMN_ID_2' ) {    
            echo (isset($data['MY_COLUMN_2_POST_META_ID']) ? $data['MY_COLUMN_2_POST_META_ID'] : '');
        }
        //stop editing
    }
    
    add_filter( "manage_edit-shop_order_sortable_columns", 'MY_COLUMNS_SORT_FUNCTION' );
    function MY_COLUMNS_SORT_FUNCTION( $columns ) {
        $custom = array(
            //start editing
    
            'MY_COLUMN_ID_1'    => 'MY_COLUMN_1_POST_META_ID',
            'MY_COLUMN_ID_2'    => 'MY_COLUMN_2_POST_META_ID'
    
            //stop editing
        );
        return wp_parse_args( $custom, $columns );
    }

    What I am missing is the column ID to use instead of ‘MY_COLUMN_ID_1’ and the value I should use for ‘MY_COLUMN_1_POST_META_ID’.
    As well I am sure there is something that I need to add to the function/s in order to be able to get the values…
    Any chance to get any help with this?
    Even paid help if it is complicated…

    And again thank you very much!

    Thread Starter eavinu

    (@eavinu)

    Actually what they want more is the ability to filter, they need it more then sorting…

    Thread Starter eavinu

    (@eavinu)

    Perfect!!!

    Now I have 2 main issues with the site owner.. I need to make the column sortable + I need to have the groups column also in the Woocommerce orders page and make it sortable.

    If you are able to help, or even have some one that would be able to help with the 2 issues I will be greatful and will be happy to donate or pay for the time it should take to you or someone else to code this.

    Hope to achieve this soon.. Until I get a reply here I will continue break my fingers trying to get it to sort.. Found some posts with suggestions that I still didn’t manage to customize for my column:

    // Make these columns sortable
    function sortable_columns() {
      return array(
        'YOURCOLUMNNAME'      => 'YOURCOLUMNNAME'
      );
    }
    
    add_filter( "manage_edit-YOURPOSTTYPENAME_sortable_columns", "sortable_columns" );
    Thread Starter eavinu

    (@eavinu)

    Thank you for the fast reply and interest to help with this issue!

    Actually the custom field name in order to show the group ID is “field_reg_groups”.
    So I changed the field type to ‘post_title’ and it shows nothing…
    I did make sure that the ID’s that I see when field type is default are indeed the ID’s for the groups…
    Any ideas?
    Perhaps you might have an idea after reading this post:
    https://buddypress.org/support/topic/getting-group-name-from-id/

    About the woocommerce orders page, I will check the link that you sent, hope that I am skilled enough to handle writing it ??

    Okay I disabled the auto account activation plugin and still nothing, so I reactivated it.
    I returned the plugin to the original code without the dropdown and now it works perfectly.

    Would still appreciate a new version or a bit of code to be able to have it as drop down…

    Thanks for a great plugin!

    Hello,
    This plugin came like sun-ray in a cloudy day ??

    I revised the code according to infectedman since we have 85 groups and I must have the students assigned to their group once they register and it can’t look good with 85 radio buttons…
    85 check boxes are also not a good option especially since each student can only belong to one group in this website.

    So dropdown is the ideal solution for me but for some reason the students are not being assigned to the groups.

    Info:
    Buddypress latest version 2.7.2.
    Wordpress 4.4.2.

    Also have the BP Disable Activation Reloaded plugin installed since I don’t want the users to have to activate the account and need it activated automatically.
    Could this cause the problem or is it the fact that I changed to the dropdown?

    Please help, the website owner gives me hard time over this..
    Thanks!

    Following, need to be able to have a profile for the parent and then add sub profiles for the kid/kids.

    Thread Starter eavinu

    (@eavinu)

    I only now noticed the widgets of CUAR, maybe you should write about it in the documentation or highlight it better, when I read the documentation I didn’t see anything about it…

    Thread Starter eavinu

    (@eavinu)

    Chouby one thing that I forgot to mention is that there is no problem in Explorer!
    I only see this problem in Firefox and Chrome which is very strsnge…

    Thread Starter eavinu

    (@eavinu)

    Just like magic!
    Perfect!

    You can look now in the 2 links and now we can actually match the body classes in both languages and also the is_serach is working as it should for woocommerce ??

    I am happy to have been able to raise an issue which promoted your code closer to perfection…

    Thank you thank you thank you and again thank you!

Viewing 15 replies - 1 through 15 (of 32 total)