jennifersanchez
Forum Replies Created
-
Forum: Plugins
In reply to: [WCFM Marketplace - Multivendor Marketplace for WooCommerce] enquiryHi! i can resolved it with the templates! but i cant prevent the double reply by the vendor.
I added this code in my funtion.php but it hide always the form. Any suggest?
Thanks!!add_action( 'wcfmcap_is_allow_enquiry_reply', function() { ?> <script> jQuery("#wcfm_inquiry_reply_send_button").click(function(e)) { e.preventDefault(); jQuery('#wcfm_new_reply_listing_expander').hide(); } }); </script>
Forum: Plugins
In reply to: [WCFM Marketplace - Multivendor Marketplace for WooCommerce] enquiryHi! In the product page, in section of enquiry.
Thanks very much Carlos!
RegardsForum: Plugins
In reply to: [OTP Login Woocommerce (Login with OTP)] Field PhoneHi! I have been trying for hours and came to the conclusion:
all this option when i used it bring this error: https://ibb.co/C0sFSNB
xoo-ml-cu-form-register
xoo-ml-phone-form
class xoo-el-action-btn (in the buttom make it be a field requiered)only works the register (without verify of phone) when i added this [xoo_ml_phone_field].
i tried with add the class to the button ant it didn t work..
if you have any other idea i will thanks you!!Forum: Plugins
In reply to: [OTP Login Woocommerce (Login with OTP)] Field PhoneHi there! Thanks for the help.
I tried in several ways to use the code, without success.
this error appears in console and sends the sms but then the page is loading without success.
Might an action to the button be necessary to recognize?
it does not even take it as an obligation to complete the field.
Thank you very much for your help!i share to you the code of form https://codeshare.io/2jwEmD
Forum: Plugins
In reply to: [OTP Login Woocommerce (Login with OTP)] Field PhoneGreat! this works but it not verified when i register.
I added to the code of the button submit of to be vendor of WCFM the class *xoo-ml-phone-form-btn* but it didnt work, only if i add it to the ID but it only verified the number but not did the register the user.
thanks for your help!!The code of vendor:
`<div id=”wcfm_membership_registration_submit” class=”wcfm_form_simple_submit_wrapper”>
<?php if( wcfm_is_allowed_membership() ) { ?>
<input type=”submit” name=”save-data” value=”<?php if( $user_id ) { _e( ‘Confirm’, ‘wc-multivendor-membership’ ); } else { _e( ‘Register’, ‘wc-multivendor-membership’ ); } ?>” id=”wcfm_membership_register_button” class=”wcfm_submit_button xoo-ml-phone-form-btn” />`- This reply was modified 4 years, 8 months ago by jennifersanchez.
- This reply was modified 4 years, 8 months ago by jennifersanchez.
Forum: Plugins
In reply to: [OTP Login Woocommerce (Login with OTP)] Field PhoneThanks! In the registration form of woocommerce appears but not in the registra vendor ( WCFM).
May be i can add the field phone with any shortcode?Forum: Plugins
In reply to: [OTP Login Woocommerce (Login with OTP)] Field PhoneSorry, is it possible aplly the field to the register of WC too?
Forum: Plugins
In reply to: [BP Profile Search] Autocomplete the locationHi Andrea.
Im using a complement to add repeater fields of locations to the profiles.
im bring the group fields with $group_values, but it didnt work, can you guide me what im doing wrong please?how i can do for this code is in a directory (page) different than the above code?
add_filter ('bps_hidden_filters', 'directory_filters'); function directory_filters ($filters) { $group_values = wbbpp_get_group_values( $group_name = 'bprm_grp_edu'); $group_values = array(); $user_id = get_current_user_id(); $bprm_rs_data = array(); $bprm_rs_data = get_user_meta( $user_id, 'wbbpp_userdata', true ); global $wpdb; $user = bp_loggedin_user_id (); if (empty ($user)) return $filters; $table_name = $wpdb->prefix. 'bds_locations'; $query = "SELECT * FROM $table_name WHERE user_id = $user AND $bprm_rs_data[$group_name];"; $value = $wpdb->get_row ($query); if (!empty ($value)) { $filters['field_46_distance']['distance'] = 100; $filters['field_46_distance']['units'] = 'km'; $filters['field_46_distance']['location'] = $value->location; $filters['field_46_distance']['lat'] = $value->lat; $filters['field_46_distance']['lng'] = $value->lng; } return $filters; }
reference: https://pastebin.com/JFSLG2mi
Thanks very much!!
- This reply was modified 4 years, 12 months ago by jennifersanchez.
Forum: Plugins
In reply to: [BP Profile Search] Autocomplete the locationHi Andrea, I’m looking for the compatible way that a user field has 5 places loaded and search it with the address of another.
example:User 1 field_5:
Paris France,
Buenos Aires, Argentina,
Madrid, SpainUser 2 field_6:
Madrid, SpainHow have you helped me, one location of a user with another I can find it, but is it possible with more? for example the user 2 find the user 1 because it have Spain?
Is it possible with repeater fields or should I do with a checkbox or text box with comma and a unique name field?
Thanks very much!- This reply was modified 5 years ago by jennifersanchez.
Forum: Plugins
In reply to: [BP Profile Search] Autocomplete the locationAwesome!! Thanks!
Forum: Plugins
In reply to: [BP Profile Search] Autocomplete the locationsorry the code im using is it
add_filter ('bps_hidden_filters', 'directory_filters'); function directory_filters ($filters) { $user = bp_loggedin_user_id (); if (empty ($user)) return $filters; $filters['bps_directory'] = bps_current_page (); $location1 = xprofile_get_field_data (46, $user ); if (!empty ($location1)){ $filters['field_62'] = empty ($_REQUEST['field_62'])? addslashes ($location1): $_REQUEST['field_62']; return $filters; }}
how i can do to determine the distance of 100Km?
Forum: Plugins
In reply to: [BP Profile Search] Autocomplete the locationHi Andrea! Thanks for your answer!
I was thinking.. is it possible a hide filter like [bps_directory field_5=”field_30″] .
Field 30 is a xprofile of a user.I tried with the given code but I don’t know how to determine the distance
add_filter ('bps_hidden_filters', 'my_hidden_filters'); function my_hidden_filters ($filters) { $user_id = bp_loggedin_user_id (); if ($user_id != 0) { //place is the xprofile of the location a user $place= xprofile_get_field_data (46, $user_id); //field_247 is the location of users who should show that they are closer to 40 km from them $filters['field_247'] = $place; } return $filters; }
Thanks!!
- This reply was modified 5 years ago by jennifersanchez.
Forum: Plugins
In reply to: [Email posts to subscribers] cURL error 28:Hi. Yes. Because when I activate the plugin this error appears.
I added it in fuction.php and it disappeared.
However, the cron that automatically sends the emails is not working (or even copying the url in the bar or with the server) any suggestions?
The cron every 1 hour does work.Forum: Plugins
In reply to: [Email posts to subscribers] cURL error 28:Hi!
I could solve it with this code<?php
//For PHP 5.x
session_start();session_write_close();
?>From https://stackoverflow.com/questions/4333209/session-start-hangs