• graichura

    (@graichura)


    Hi,

    As part of some site changes, I have transitioned from using an isolated newsletter form on a dedicated page and instead looking to integrate a newsletter preferences block with MailPoet into a new customer dashboard page.

    So far, I have used the shortcode: [mailpoet_manage_subscription] to try and achieve the goal.

    However, when the status is changed from subscribe to unsubscribe in this shortcode block, the user is redirected to a 404 page, which means the block is not working to update the user preferences.

    Can you help?

    Thanks

    GR

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 26 total)
  • Thread Starter graichura

    (@graichura)

    This is now resolved – thanks

    Thread Starter graichura

    (@graichura)

    Hi MailPoet Team,

    Coming back to this request, which I thought I’d resolved last night… On further testing, the [mailpoet_manage_subscription] shortcode that I have implemented on the new customer dashboard page only seems to work for me as a site admin, when I am testing the functionality from a desktop computer.

    When I change preference from subscribe to unsubscribe and vice versa, I get a success message appearing the same block and it works as it should do, without redirecting to another page or anything. It also updates the user status in the mail poet users lists too.

    However, on testing with people who sign-up to the site (non-admin) and then try to adjust their newsletter subscriber preferences via this shortcode block, they are redirected to a 404 page. This has been tested on apple phone, ipad and laptops, all with the same issue 404 redirect.

    As part of this shortcode block, I have also implemented the following code snippet to remove a couple of fields from being display as follows:

    <?php
    add_filter( 'mailpoet_manage_subscription_page_form_fields', 'mp_remove_manage_fields', 10);
    function mp_remove_manage_fields( $form ) { 
    
     unset($form[0]); // First Name
     unset($form[1]); // Last Name
         
     return $form;
    }

    Can you help resolve the issue?

    Thanks,
    GR

    Plugin Support Ramona – a11n

    (@namona)

    Hi @graichura

    I understand that people who want to adjust their subscription preferences end up on a 404 page.

    If you remove the custom code you added do you still experience the same problem?

    I created a new page on my test site, added [mailpoet_manage_subscription] and I was able to access the page and edit my preferences without any problems.

    Thread Starter graichura

    (@graichura)

    Hi Ramona,

    I figured out there was a setting from another plug that was blocking the page from updating. After adjusting it, the form works with a save message.

    The shortcode does not seem to work properly. Currently the Status* drop down list that allows the user to select ‘Subscribe’ or ‘Unsubscribe’ does not show the actual subscriber status of users who are unsubscribed. It simply defaults to ‘Subscribed’.

    Therefore when the newsletter list checkbox is shown under this Status drop-down field, if a user who is not yet subscribed to the newsletter visits the customer dashboard page with this mailpoet shortcode enabled, it leads them to believe that they are already subscribed to the email newsletter letter list.

    This is also the case even if within the mailpoet settings, we have enabled for the user to receive double opt-in email, and also the ‘enable user to sign-up on new wordpress user registration.

    The way that I thought I could solve this, was to use the code snippet to hide the Status and therefore the user will only see the newsletter list, with the checkbox next to it. However, in this scenario, when the user selects the checkbox only for the newsletter, they get appended behind the scenes in the actual mailpoet list as ‘unconfirmed’.

    So at the moment, the shortcode provided for general mailpoet users who have access to your free tool are not really able to make much use of it in a customer dashboard page.

    This poses a problem, since if I create a separate newsletter page for the user to sign-up to, they have to add their email address again with a new form and then be redirected to a different thank you page, etc, which ruins the user experience.

    It also means that when an existing member signs-up in this way, it adds to the mailpoet user count restriction in the free tool.

    I thought I had a possible solution to resolve part of this issue by using the sureTRIGGERS plugin, which mailpoet have recently integrated with. However, the reason this cannot be used at the moment is that I do not know how to show members in the customer dashboard page their current actual newsletter subscriber status.

    Is there a separate shortcode you can provide just that displays current newsletter subscriber status? If I can dynamically pull the current subscriber status (based on the user’s email address), then I can create an opt-in, opt-out form and connect it to sureTRIGGERS to solve the problem.

    Best,
    GR

    Thread Starter graichura

    (@graichura)

    Hi Ramona, as it’s been a few days since I submitted the above, please let me know if your team can help with this issue?

    Plugin Support B C. a11n

    (@battouly)

    Hi @graichura,

    I’m not aware of a separate shortcode to display current newsletter subscriber status, but let me dig further for you by asking our developers. I do know that it is possible to create a custom shortcode following this guide: https://kb.mailpoet.com/article/160-create-a-custom-shortcode

    I will keep you posted here. We will also attempt to replicate what you are experiencing and let you know.

    Thread Starter graichura

    (@graichura)

    Thanks for your response and I look forward to hearing back… I did actually see that post previously but it seems it only works for newsletters and I don’t think it includes subscriber status either.

    Best,
    GR

    Plugin Support Ojoma a11n

    (@geraltrivia)

    Hello again @graichura,

    We’d like to ask some questions, particularly about the use of the Manage Subscription shortcode:

    Are you planning to use the Manage Subscription shortcode on your customer dashboard page for signing up new customers to your MailPoet list? If yes, please note that this shortcode was primarily designed to manage existing users’ subscriptions rather than registering new subscribers.

    Can you provide more details on how you have configured your MailPoet forms and how you’re integrating them with the customer dashboard page? Are you using any custom themes or plugins that could influence the behavior of MailPoet shortcodes?

    Looking forward to hearing back from you.

    Thread Starter graichura

    (@graichura)

    Hi,

    The dashboard is there for people who have already signed-up as a customer to the website. In the process of subscribing they need to add their email address.

    Once they are in the dashboard as a customer, the shortcode is there to allow them to choose to update their subscription preferences to the newsletter in the dashboard. We do not use the MailPoet setting to automatically opt-in the user to the newsletter in the customer sign-up process. Therefore it’s vital to ensure that the opt-in to the newsletter for customers is explicit and therefore this shortcode should allow them to subscribe or unsubscribe to the newsletter accordingly according to their preferences.

    Plugins: SureMEMBERS and sureCART.

    Thread Starter graichura

    (@graichura)

    Hi @geraltrivia

    Link to screenshot of how it currently looks in the dashboard. You will see I have added instructions, since if a user does not follow the instructions, the shortcode will not work the way it’s meant to. The thing is that it shouldn’t need to have instructions.

    https://drive.google.com/file/d/1EPGjB6d1uM_26pMSt11qN5R52TL32ke5/view?usp=sharing

    Please request access from the link and I will enable it from there. I have blacked-out the email address that is pre-populated in the short-code.

    Thanks,
    Gopesh

    Plugin Support Sol J. a11n

    (@solstudioim)

    Hi @graichura

    Can you please upload it to QuickForget.com and share the link here?

    It helps us speed up checking for you. It’s safe and our team no longer needs manual approval from you.

    Look forward to your reply.

    Thread Starter graichura

    (@graichura)

    Thread Starter graichura

    (@graichura)

    Use this one:

    https://quickforget.com/s/f48d3dbaa5fb55ef5a195937e49c63d8403b6debd8c1d978

    Plugin Support Saravanan S, a11n

    (@simplysaru)

    Hi @graichura,

    Sorry, none of the quickforget.com links you shared are working(expired/forgotten). If privacy is a concern, please email us directly with a link to this forum thread.

    Thread Starter graichura

    (@graichura)

Viewing 15 replies - 1 through 15 (of 26 total)
  • The topic ‘Subscribe and unsubscribe block for Customer Dashboard Page’ is closed to new replies.