• Resolved sks412

    (@sks412)


    I successfully upgraded from STB to Boxzilla a short time ago and also use Mailchimp for WP. I have a form with a local Mailchimp form imbedded. It works great as long as I set “Cookie expiration days” to zero. The subscription response returns in the same box and the original Mailchimp form is hidden (see https://www.suiteeffects.com …. I have double opt-in set).

    What I want to happen is that if the sign-up is successful, the Boxzilla box goes away … even if it’s only for that session on the site and the user X’s out of the box. I’m afraid the solution is way outside the scope of my programming skills, but thought I would inquire. I’ve been leary of adding a child theme since I have added Simple Custom CSS and have a lot of style changes. I am afraid of clobbering my site with a child theme after reading some posts regarding the theme that I’m using (Sugar & Spice Pro).

    I tried having a separate thank you form, but it’s an URL and I couldn’t get it to “magically disappear” or add a “click here to return to the site”, so the form just stayed out there … it just wasn’t a very clean solution.

    Sorry for the length of this, but am trying to provide enough info for you to tell me if I’m asking for the moon or there is a slick Boxzilla/Mailchimp feature that I have overlooked.

    https://www.ads-software.com/plugins/boxzilla/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Danny van Kooten

    (@dvankooten)

    Hi sks412,

    The easiest solution here would be to purchase our Premium add-on for the MailChimp for WordPress plugin which still stop the page from reloading when you submit the sign-up form.

    This will make it so that the box appears, you fill the sign-up form and submit this (while the box stays on the screen) and then the success message appears right away. Then you can choose to redirect to a custom thank you page or people can just dismiss the box and be on their way.

    You could even auto-dismiss the box after a successful sign-up and have the box hidden for the “cookie expiration days” setting. This can be done by adding the following lines of code to your form.

    <script>
    mc4wp.forms.on('success', function() {
    	Boxzilla.dismiss();
    });
    </script>

    Hope that helps. If not, let me know!

    Thread Starter sks412

    (@sks412)

    Hi Danny …

    I’m going to play around with this code a bit and see if I can make it work, but I want to be clear on this … you mean to put this code in my Boxzilla form, correct? And does it matter where the code is placed? My assumption is to just put it at directly following the imbedded Mailchimp shortcode.

    I will look at the add-on, but my budget is hemorrhaging, so I may have to wait on that, but at least it’s a viable option.

    Will try to get to this later today, but wanted to thank you so much for your quick reply and solution/option.

    Warm regards, Sue/sks412

    Thread Starter sks412

    (@sks412)

    I couldn’t get the code that you gave me to work. I may not be using it correctly or … I just don’t know. I may just have to change the form to have no Thank You reply and be done with it until I can upgrade. Was hoping for a magic solution, but couldn’t make it work.

    Thanks again, Sue

    I would love to know where to insert that code, too, please.

    Cheers,

    Plugin Contributor Lap

    (@lapzor)

    You can add this code to your theme’s footer or trough a plugin that allows you to add custom Javascript code.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Trigger to Close Box and Set Cookie’ is closed to new replies.