dantwah

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 203 total)
  • Author
    Posts
  • in reply to: Sync custom registration fields with wordpress #184002
    dantwah
    Spectator
    In the plugin this function is responsible for updating the name fields from buddypress to wordpress profile: add_filter( 'bp_xprofile_set_field_data_pre_validate', array( &$this, 'bp2wp_update_sync_field' ), 1, 3 ); public function bp2wp_update_sync_field( $value, $field, $field_type_obj ) { if ( $field ) {   $childs = $field->get_children(); if (isset($childs) && $childs && count($childs) > 0 && is_object($childs[0]) && $childs[0]->type == 'bp2wp_sync') {   if ( null !== bp_displayed_user_id() && bp_displayed_user_id() > 0 ) $this->bp_user_id = bp_displayed_user_id();   $this->synced = true; update_user_meta( $this->bp_user_id, $childs[0]->name, $value ); } } return $value; }     So something like this should be added to the custom registration form I guess. Preferably as a function in the child theme to make it update proof. If its considers a bit of work would it be possible to take it up as a paid customization? Kind regards  
    in reply to: Instructor commission decimal #182304
    dantwah
    Spectator
    Okey, would be great if that could be added in the upcoming update! A rounded percentage doesn't work for us sadly. Thanks,
    in reply to: Custom registration form terms & conditions #182094
    dantwah
    Spectator
    Thanks! I tried the snippet but it breaks the site (cannot load it anymore).  Also I am not really sure what you mean with adding an extra field? Do you mean adding a buddypress field? If so what type and name? Kind regards
    in reply to: LTI integration #181737
    dantwah
    Spectator
    Any updates for this?
    in reply to: Auto allocation courses with woocommerce membership addon #181543
    dantwah
    Spectator
    Hi Alex, Thank you very much! Tested and put to our live environment. All works as expected, great work!
    in reply to: Auto allocation courses with woocommerce membership addon #180531
    dantwah
    Spectator
    This reply has been marked as private.
    in reply to: Very slow query get user count #180047
    dantwah
    Spectator
    Hi The problem is that courses and order are both stored in the same table (post-meta). This makes the database use, and the query of the user count slow because it also needs to look through not relevant data (like the orders). Isn't there any possiblity maybe to have a separate database table for the courses, to make the query into courses very quick? Kind regards
    in reply to: Auto allocation courses with woocommerce membership addon #180046
    dantwah
    Spectator
    This reply has been marked as private.
    in reply to: Auto allocation courses with woocommerce membership addon #179490
    dantwah
    Spectator
    This reply has been marked as private.
    in reply to: Very slow query get user count #179323
    dantwah
    Spectator
    Hi Alex, Thanks for the quick reply. We are using a strong server, based on the Google Cloud platform (Kinsta, Business2). The posts table (and postmeta with it), are indeed large. (50k+, 1.6mln+). This is mainly due to WooCommerce orders (+50 p/d). Just a quick count - in postmeta, getting WooComm orders out of it would mean a 30% reduction in size. To do this, we have found this: https://github.com/liquidweb/woocommerce-custom-orders-table. Will WPLMS work with this? Or will it screw something up (or do we need to alter the code somewhere?). Thanks in advance.
    in reply to: Very slow query get user count #179127
    dantwah
    Spectator
    I think one of the main reasons that the query is slow is of all the woocommerce data that is in the wp post table. Do you think this solution may work and is applicable with wplms: https://github.com/liquidweb/woocommerce-custom-orders-table
    in reply to: Auto allocation courses with woocommerce membership addon #179123
    dantwah
    Spectator
    This reply has been marked as private.
    in reply to: Very slow query get user count #179121
    dantwah
    Spectator
    This reply has been marked as private.
    in reply to: Auto allocation courses with woocommerce membership addon #178348
    dantwah
    Spectator
    This reply has been marked as private.
    in reply to: Edit course not working in multisite main site #178346
    dantwah
    Spectator
    Hi Diana, I am not so sure what you mean. Do mean the plugin WPML (because I am not using this). How would I copy this page? Kind regards,  
Viewing 15 posts - 1 through 15 (of 203 total)