gransfor
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] The interceptor works strangelyThis problem is in version 3 restApi
Forum: Plugins
In reply to: [WooCommerce] The interceptor works strangelyThe request is sent to the server if you place an order without a coupon, and if you place an order with it, then nothing…
Forum: Plugins
In reply to: [WooCommerce] The interceptor works strangelyIt works, but it doesn’t work if you enter the coupon code.
Forum: Plugins
In reply to: [WP-Recall - Registration, Profile, Commerce & More] Слетает navigation-barПонял, спасибо!
Forum: Plugins
In reply to: [WP-Recall - Registration, Profile, Commerce & More] Слетает navigation-barОтключил.
- This reply was modified 4 years, 8 months ago by gransfor.
Forum: Plugins
In reply to: [WP-Recall - Registration, Profile, Commerce & More] Слетает navigation-barYes. Thanks, it worked. Can you help me with this page? https://profender.site/account/?user=100&tab=user_info
Forum: Plugins
In reply to: [Participants Database] Nothing is displayedI found the mistake. I can not set the order or check whether to display at all. Only the first two fields “first_name and last_name” are visible when the plugin has just installed, the new fields are not visible
Forum: Plugins
In reply to: [Participants Database] Nothing is displayed[pdb_list]
https://profender.site/table-datas-users/Forum: Plugins
In reply to: [Participants Database] get more datai make other way, write this code
function stay_date_to_users() { global $wpdb; $current_user = wp_get_current_user(); $get_main_phone = $wpdb->get_var("SELECT phone FROM wp_participants_database WHERE id_private = '$current_user->id' "); // получает телефон компании $give_phone_to_users = $wpdb->query("UPDATE wp_users SET main_phone = '$get_main_phone' WHERE id = '$current_user->id'"); // даёт юзеру его телефон $get_activity = $wpdb->get_var("SELECT activity FROM wp_participants_database WHERE id_private = '$current_user->id' "); // получает деятельность компании $give_activity = $wpdb->query("UPDATE wp_users SET activity = '$get_activity' WHERE id = '$current_user->id'"); // даёт юзеру его деятельность $wpdb->query("UPDATE wp_users SET company = '$all_datas' WHERE id = '$current_user->id'"); // даёт юзеру его company $wp_user_id = get_current_user_id(); $wp_username = $current_user->user_login; $wp_email = $current_user->user_email; $wp_main_phone = $current_user->main_phone; $wp_activity = $current_user->activity; $wp_display_name = $current_user->display_name; $all_datas = $wp_display_name.' '.$wp_main_phone.' '.$wp_email.' '.$wp_activity; } stay_date_to_users();
but ‘$wpdb->query(“UPDATE wp_users SET company = ‘$all_datas’ WHERE id = ‘$current_user->id'”);’ do not make update
P.S all_data = current_user->companyForum: Plugins
In reply to: [Participants Database] get more dataForum: Plugins
In reply to: [Participants Database] get more dataI download php snippet plugin
Forum: Plugins
In reply to: [Participants Database] get more data$data[‘all_data’]=$all_data;
Still a mistake
Forum: Plugins
In reply to: [Participants Database] get more dataYou can then display this on the front end using
echo $all_data;I want output this field in total table (pdb-list), dont und how me using echo, also
There are a few small errors such as $data for the array.
what with her make?
Code give error what there strange array
Forum: Plugins
In reply to: [Participants Database] get more dataand what stay in Default Value in field all_data?