OPS Posted March 7, 2012 Share Posted March 7, 2012 Hi I need check from a CMS page if the user is logged. ¿How could I implement? Thanks Link to comment Share on other sites More sharing options...
OPS Posted April 16, 2012 Author Share Posted April 16, 2012 o,K, One possible solution is... on the CMS page we redirect to a php page were we check if the user is logged, for example: On the CMS page: <script type="text/javascript" language="javascript">// <![CDATA[ location.replace("modules/module_name/page.php") // ]]></script> On the php page: if (!$cookie->isLogged(true))Tools::redirect('authentication.php?back=order.php'); So if the customer isnt logged is redirected to authentication page. Best regards 1 Link to comment Share on other sites More sharing options...
vekia Posted September 1, 2015 Share Posted September 1, 2015 solution for PrestaShop 1.6 is here: cms pages for logged customers only Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now