How do I show a message (or template) to only free users? I'm trying to use this code, but it's not distinguishing between paid and free accounts (at least not on the test accounts I manually upgraded to premium/paid from the admin console): Code: if ( !Am_Lite::getInstance()->haveSubscriptions(Am_Lite::PAID) && preg_match('#^/page.*#i', $_SERVER['REQUEST_URI']) ) { include $this->_script('_upsell.phtml');
Hello, This code looks correct. Are you sure your test user has active paid subscription? Please note user should has payment record. In event of you manually added access to paid product (without payment) then this condition does not match. You can manually add invoice/payment: http://www.amember.com/docs/Frequen...ayment.2Faccess_from_aMember_Control_panel.3F Best Regards.
Yes, you can check if user has access to particular products by its IDs: Code: Am_Lite::getInstance()->haveSubscriptions([1, 2, 3]); where 1,2,3 is IDs (most left column # in page with products list) of product you want to check. Best Regards.