Optin Box Shows All Groups In System & Need To Stop It

Hi

I’ve setup the newsletter signup page and added the code [enewsletter_subscribe show_name=”1″ show_groups=”0″ subscribe_to_groups=”1″]

So people can sign up to the general mailing list but not the lists for the memberships.

But on that page I can see the option for logged in users to check a box to register for newsletters associated with the membership groups I’ve created. They’re not members of those groups because they haven’t paid for them hence shouldn’t see those details.

How do I only present just the form to require name and email then have the system add them to the general newsletter group I’ve setup?

Thanks

William

  • Patrick Cohen
    • Technical Docs Wrangler

    Hi there @William

    Welcome to the forums, glad to have you aboard!

    Set the default group in e-Newsletter > Settings > General Settings.

    Then add the shortcode without specifying any group, like so:

    [enewsletter_subscribe show_name="1" show_groups="0"]

    I hope this helps! And thanks for being a member :slight_smile:

    [attachments are only viewable by logged-in members]

  • DavidM
    • DEV MAN’s Mascot

    Hi @William,

    Sorry for the delay. Just noticed your email and wanted to step in and see if I could help. :slight_smile:

    As you’re using Membership, you wouldn’t technically “need” any Groups in that case. Unless perhaps there’s some other reason you need Groups?

    With Membership and e-Newsletter integrated, when you go to send out newsletters, you’ll have the option of specifying an Access Level from Membership that you want to send those newsletters to.

    No Group needed for that. :slight_smile:

    Does that make sense?

    Or perhaps I’ve misunderstood. Please feel free to let me know and I’ll have another look!

    Cheers,

    David

  • William
    • New Recruit

    I think I got it.

    I was trying to have a general newsletter subscription form.

    Basically, you mean I could for instance create a free membership so general site visitors can sign up to it then I’d send out emails to them via that membership.

    Is that the case?

  • DavidM
    • DEV MAN’s Mascot

    Hi William,

    Awesome! And yeah, kinda strange how it works out that they’re technically not subscribing to the newsletter per se, but they’re basically subscribed through Membership. :slight_smile:

    Glad that worked for ya and thanks for letting us know!

    Cheers,

    David

  • Patrick Cohen
    • Technical Docs Wrangler

    Hi again @William

    I just went through this thread again, and I think I understand now what the actual issue is.

    You were trying to get the form to display with no groups showing when logged in. The shortcode with the show_groups parameter set to "0" will only apply to users who view the page when logged out.

    [attachments are only viewable by logged-in members] [attachments are only viewable by logged-in members]