Value: ID# [e2pdf-wp key=”pods_id”]-[e2pdf-format-date format=”Y”][e2pdf-wp key=”post_date”][/e2pdf-format-date]
– If I use [e2pdf-user key=”ID”] it provides a single digit number which is listed in both member and wp user lists. (If I update member plan, will the # change? I can’t recall but I think when trying this out in Member Press the number changed.)
– If I use [e2pdf-wp key=”id”] it provides a 4 digit number I want, but what is generating it? I cannot find the root so I don’t trust it won’t change later on. It has to be fixed per user. (Maybe it was this one that changed when I updated my testuser member plan).
SECOND PART
Can PODS create a URL link to a verification web page:
– page has a E2PDF viewer window displaying that is then populated with the users data
– according to the users id number in the URL – generates this without logging in to the site, e.g. value: [URL/verificationpage?]nnnn-2022
Any help is appreciated.
Thank you.
add_filter( ‘pdb-before_csv_store_record’, array( $this, ‘manage_new_member_id_csv’ ) );
public function manage_new_member_id_csv($record) {
global $wpdb;
$sql = ‘SELECTid
FROM ‘ . Participants_Db::$participants_table . ‘ WHERE ‘ . last_name . ‘ = “%s” AND ‘ . first_name . ‘ = “%s” AND ‘ . email . ‘ = “%s”‘;
$result = $wpdb->get_col( $wpdb->prepare( $sql, $record[“last_name”], $record[“first_name”], $record[“email”] ) );
if ( $wpdb->num_rows === 0 ) {
$record = $this->generate_new_member_id($record);
} else {
$record[$this->id_field] = null;
}
return $record;
}
When I import a new csv with the member_id field in the csv file, it works properly. However, when the member_id field is not in the csv file, the member_id is not inserted in the database (even though the member_id is generated successfully )
While trying to debug, I noticed in the plugin code that, the csv fields which were treated were only those in the csv file :
class PDb_CSV_Import extends xnau_CSV_Import
[…]
function store_record( $post ) {
[…]
// add the record data to the database
$id = Participants_Db::process_form( $post, ‘insert’, false, $this->column_names );
Is there a way to force the treatment of a field when importing a csv file even if the field name is not in the csv file ? If it is not possible currently, would it be possible to add a filter in the plugin so that we would be able to add extra fields which are not in the csv file ?
I would be needing that because I would like to force the member_id to be generated and inserted in database even if the field name is not in the csv file, so that, even if the users who are importing the csv file forget to include this field in the file, the member_id would still be generated
Thank you
Have a nice day
I followed this tutorial to generate un member ID : https://xnau.com/generating-unique-member-ids-for-new-registrations/
Is there a way to also genarate this ID when importing csv data ?
Thank you
]]>I am wondering if the sequential order numbers plugin (free or pro) can be used alongside a membership plugin to limit only one lifetime membership purchase.
Then I would want to display the “order number” on the user profile as their membership number with a php snippit.
]]>My first question is:
Is the WP user ID saved in any of the corresponding Member tables in order to tie the two accounts together, or is there anything else that ties the two accounts together?
Secondly:
I’ve noticed the user name is the same in both tables. When the member completes registration and gives a user name does the plugin check to see if that user name already exists as a username in WP users and if it does exist does it prompt the member to try another user name?
Thanks.
]]>I need assistance to accomplish the following:
1. A user logs in to WP and selects a product to purchase.
2. On the WooCommerce checkout page I ask the person to enter a valid member ID (for various reasons, this cannot be stored in the user’s WP profile, and needs to be entered for each purchase).
3. I need to verify the entered member ID against the list of valid IDs in the Participants Database. Also would like to verify the user’s last name if possible (double search in Participants Database).
4. If the ID is verified, a discount will be applied to the purchase. If the ID is not verified, the user is notified and the purchase can continue without a discount.
Does anyone have ideas to offer or suggestions for other options?
Thanks,
Floyd
https://www.ads-software.com/plugins/participants-database/
]]>That way, when the member shows someone my site, they get credit for the sales of x instead of me.
Is there a plugin that will do this? I’ve searched and searched for something that will do this and I can’t find anything. I’m not sure what to search for.
Thanks in advance for the help!
]]>