Your cart is currently empty!
Group Expiration
—
by
We set the expiration date at 1 year when adding users to groups. Is there a way to set this when using the import plugin?
Posted in Groups Import Export
—
by
We set the expiration date at 1 year when adding users to groups. Is there a way to set this when using the import plugin?
Comments
7 responses to “Group Expiration”
Perfect!
Thanks George! I think I got everything worked out here. I appreciate your help with this.
The second time, check the option to Update existing users before importing.
Cheers,
George
Hi George,
Thanks for your help here. I used the method you recommended, but ran into some issues. I’m adding some users to mutliple groups. I have a file for each group, with a list of users. When I add them to the second group I lose the expiration date on the previous group. Is there any way I can format the data so this doesn’t happen?
Thanks so much,
David
Hi David,
The expiration for groups memberships can be added with the metas
_groups_buckets
and_groups_product_groups
.If you visit Groups > Export Users, choose the above metas, enable Include extended user profile data and optionally enable Use separate columns and Include a column header (recommended if separate columns are used) and export the users list for at least one user id, you will see how is the membership exported.
The system uses Unix timestamp so when you will create your import file you should convert dates accordingly before adding.
Long story short, I would recommend it only for an advanced user.
Alternatively, what I would do if I were you would be to split the import file.
For example:
Users with IDs from 1 till 100 should be added to Group A with a 2-month-duration subscription.
I would then use a test user, buy the subscription and export that user with the meta fields I mentioned before. Then in my import file, I would copy these records to all the users from ID 1 till ID 100.
The import file would be ready to be imported.
Kind regards,
George
Hi David,
That would depend on how the expiration date is stored on your site. If it’s a meta key you can have a look at the documentation on how to use meta key columns on your files.
Kind regards,
George
Hi George,
Sorry I wasn’t clear. I’m talking about the expiration functionality built in to the Groups Woocommerce add-on:
https://woocommerce.com/products/groups-woocommerce/
I’m not sure how its stored.
Thanks!