• Can you offer any guidance on how the 2-step process is setup up with AgeGate on https://medmen.com — where they confirm their age, then on a second screen they get the option to subscribe? I’ve poked around a lot in the code but not sure how to make this work. Ideally I’d like to just embed the subscribe form from another tool and then just have a “no thanks” link that is part of the age gate plugin to bypass subscribing if desired.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Brightwork

    (@brightwork)

    Alternatively, can you tell me where/how I could access the agegatepassed event so that it executes a function after successful age confirmation that loads a form popup?

    Plugin Author Phil

    (@philsbury)

    Hi @brightwork,

    Sorry for the delay. I’m on the verge of releasing a new version of the plugin so a lot of time has been absorbed by that (and the day job!)

    You can access the event in a javascript file, it fires on the window, so something like:

    
    window.addEventListener('agegatepassed', function(){
       // trigger your popup here
    });

    This will also work in v3

    Thanks
    Phil

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘2-step Gate with Optional Form on 2nd step’ is closed to new replies.