Support » Plugin: Popups - WordPress Popup » Redirection not working

  • Hi

    I have added mailchimp plugin shortocde and its working fine but i have set redirection in mailchimp form settings after submitting form but redirection not working at all. Can you please check. I have added same short code in pages/post and redirection is working fine. So issues only with popup window.

    Please advice.

    Thanks
    LR

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support gonzalesc

    (@gonzalesc)

    Hi.
    In the popup any event is executed by ajax.
    Submit the form is in the tasks of popup plugin and after it shows the form answer. All this is by ajax.

    But others tasks, like the redirect or refresh or others is not contemplated.

    You can developed it using the trigger :
    jQuery(document).on('spu.box_close',function(e,id){ ... })

    Other solution:
    With the popup premiun you can put a native Mailchimp form with several designs.
    https://imgur.com/a/JbzK6HL

    And, you can put a URL to redirect when it do a convertion.
    https://imgur.com/a/mitskqD

    Regards

    • This reply was modified 9 months, 1 week ago by gonzalesc.

    Hi

    Thanks for your reply.

    jQuery(document).on('spu.box_close',function(e,id){ ... });
     jQuery(document).on('spu.box_open',function(e,id){ ... });
     jQuery(document).on('spu.form_submitted',function(e,id){ ... });

    but close event trigger is not good because if i close without entering anything into form then it will redirect to that page. but you have no form_success event in code ?

    jQuery(document).on('spu.form_success',function(e,id){

    Thanks
    LR

    Plugin Support gonzalesc

    (@gonzalesc)

    Hi.
    The event success is decided by Mailchimp plugin in this case, because only they know when the form was sent success.

    For example, the success event in CF7 is mailsent.wpcf7

    $('body').on('mailsent.wpcf7', {.....});

    And if you want to show/hide a popup, you can use :
    https://gist.github.com/timersys/a8568e1848a49ae2fe0c

    Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Redirection not working’ is closed to new replies.