How to redirect user to different thanks page after payment

From aMember Pro Documentation
Revision as of 06:09, 31 January 2013 by Caesar (Talk | contribs)

Jump to: navigation, search

Create /amember/application/configs/site.php with this code:

<?php
        Am_Di::getInstance()->hook->add(Am_Event::THANKS_PAGE, 'onThanksPage');
        function onThanksPage(Am_Event $event){
            $di = Am_Di::getInstance();
            Am_Controller::redirectLocation('/url/where/user/should/be/redirected');
        }
?>