Group Expiration

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?

7 Responses to Group Expiration

  1. George May 11, 2018 at 7:20 am #


  2. David May 10, 2018 at 7:52 pm #

    Thanks George! I think I got everything worked out here. I appreciate your help with this.

  3. George May 10, 2018 at 9:40 am #

    The second time, check the option to Update existing users before importing.


  4. David May 9, 2018 at 9:06 pm #

    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,

  5. George May 9, 2018 at 5:32 pm #

    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,

  6. George May 9, 2018 at 8:32 am #

    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,

We use cookies to optimize your experience on our site and assume you're OK with that if you stay.
OK, hide this message.

Affiliates · Contact · Jobs · Terms & Conditions · Privacy Policy · Documentation · Downloads · Useful Plugins · My Account