Is possible to use <?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'); } ?> For product 1 Am_Controller::redirectLocation('/url/where/user/should/be/redirected'); Product 2 Am_Controller::redirectLocation('/url/where/user/should/be/other'); Etc.
Sure possible. PHP: $invoice = $event->getInvoice();$products = $invoice->getProducts();$product = $products[0];if($product->pk()==1) Am_Controller::redirectLocation('/url/where/user/should/be/redirected');if($product->pk()==2) Am_Controller::redirectLocation('/url/where/user/should/be/other');
Of course. Unzip & Upload attached file to amember/application/default/plugins/misc/ folder enable plugin at aMember CP -> Setup -> Plugins : Misc Then you have new field in product settings: Thanks Page URL
Hi Alex. I have this error <b>WARNING:</b> Error loading plugin [thanks-redirect-1]: Error in plugin misc/thanks-redirect-1: class [Am_Plugin_ThanksRedirect1] does not exists! in line 115 of file /home/infoconc/www/amember/library/Am/App.php trigger_error [ library/Am/App.php : 115 ] Am_Plugins->getAllEnabled [ library/Am/App.php : 1695 ] Am_App->initHooks [ library/Am/License.php(19) : eval()'d code(1) : eval()'d code : 100 ] Am_License->init [ library/Am/App.php : 1661 ] Am_App->initFront [ library/Am/App.php : 1371 ] Am_App->bootstrap [ bootstrap.php : 25 ] require_once [ index.php : 42 ]
You get this error because you have modified plugin code . There is no Am_Plugin_ThanksRedirect1 inside original file.